Invoices
While you only need two query strings on the URL, you will most likely want to specify a few other Invoice level fields, such as the Invoice Date, Due Date, etc.
Date Fields
You can optionally populate the Invoice Date and/or the Due Date, using a Date field (or a Date/ Time field, from which we will obtain the date). A Formula field with a Date or Date/Time field type will also work.
If you leave the Invoice Date blank, Breadwinner will populate the Invoice Date with today’s date.
If you leave the Due Date blank, Breadwinner will check to see if the corresponding customer record in your accounting system has Invoice terms specified (this must be set in your accounting system, not in Breadwinner). If the corresponding customer record does not have Invoice terms specified, Breadwinner will use the Breadwinner-wide default Invoice terms as specified in the Breadwinner tab under Invoice Configuration Settings. If those settings are also blank, then Breadwinner will leave the Due Date blank.
&invoice_date=invoice_date_api_field__c
&due_date=invoice_date_api_field__cReference
Xero has a single Reference field on the Invoice
&invoice_reference=reference_api_field__cCustom Invoice Number
You can also set the Invoice Number.
&custom_invoice_number=custom_field__cBranding Theme
You can also set the Branding Theme.
&branding_theme=branding_api_field__cAmounts Are (Tax Treatment)
You can also set the "Amounts are" field. Please ensure that you pass the value in the mapped field according to the following format.
- Tax Inclusive = Inclusive
- Tax Exclusive = Exclusive
- No Tax = NoTax
&tax_treatment=tax_treatment_field__cSummary of all fields available for a New Invoice (excluding Line Items)
The structure of a Button URL to create a new Invoice is as below, with all possible fields shown.
/apex/bread-winner__NewInvoicePage
?originating_record={!salesforce_record_ID}
&parent_account=api_field_name__c
&branding_theme=branding_api_field__c
&tax_treatment=tax_treatment_field__c
&invoice_date=invoice_date_api_field__c
&due_date=invoice_date_api_field__c
&invoice_reference=reference_api_field__c
&testing=true