Partial Line Items
3 min
excluding specific lines / records from the child object it is possible to pass only a subset of the child records as line items on the invoice you may need to pass only a subset of child object records to the invoice, with other lines ignored breadwinner achieves this by allowing you to specify a checkbox field if you specify this checkbox field, only checked records will be passed to the invoice, and unchecked records will not be passed this checkbox field can be either a formula field of type checkbox or a regular checkbox (which can be populated manually or via apex/workflow) if you want to pass unchecked records and exclude checked ones, just create a second checkbox that is the opposite of the first, and pass the second checkbox to breadwinner please note that breadwinner allows multiple custom url buttons on a single object so you might have 2, 3, or many more buttons to choose from and you might have multiple checkbox fields used with different buttons an example real world scenario a typical scenario for this would involve combining recurring services with one off services on an opportunity or custom object in this scenario, the first invoice to the customer would include all child records (including one off professional services), and subsequent invoices would include only the recurring records (such as a monthly subscription) to achieve this example, the first custom url button would not specify partial line items, and thus all child records would be on the invoice a second custom url button would specify the checkbox field when the first invoice was created (which includes all line items), a button that does not use the partial line item query string would be used then, for additional invoices, a second button that uses the partial line item query string would be used the query string is below button url \&child object partial invoice=partial invoice field c