--- title: "Field mapping - Setup" slug: "catalogue-modèle-pdf-facture-all-inclusive-portrait-mise-en-place" updated: 2025-12-31T15:24:45Z published: 2026-01-07T10:04:05Z canonical: "help.frisbii.com/catalogue-modèle-pdf-facture-all-inclusive-portrait-mise-en-place" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.frisbii.com/llms.txt > Use this file to discover all available pages before exploring further. # Field mapping - Setup The goal of this article is to enable the implementation of the PDF template provided on [GitHub](https://github.com/sofacto/templates). Please read and follow this article carefully, as adhering to the API names is essential for saving the Visualforce Page. To keep these prerequisites focused on the most relevant information, you will not find implementation procedures here, but rather links to Salesforce help or other articles in our knowledge base. ## Template overview Here are the features of this PDF invoice template. | This PDF template allows you to display the following options: - *Billing address + Shipping address*  - *Conditionally additional columns:* - Discount rate: Invoice line discount. - Discount amount: Amount of discount on invoice line. - Milestone: Percentage of the line, for example in the case of a detailed invoice.  - *Tables with conditions :* - VAT breakdown: Total VAT amount by VAT rate  - *Footer discount* - *Payment schedule* By checking the check box Show payment schedule on the invoice, the payment schedule will be displayed on the third page of the template. - *GTC* By adding your GTCs as an image in static resources, you can easily set them up in this PDF template. |   | | --- | --- | In order to register the Visualforce page, you first need to set up these custom labels and the fields you've created that didn't yet exist in the Frisbii package. These fields may become available in a future version of Frisbii. ## Custom labels to create Please set up these personalized labels and, if necessary, their translation. ### Label lists | Short description *Spelling to be respected* | Categories | Value | Language | Translation text | | --- | --- | --- | --- | --- | | Sofacto_Address1 | PDF | Billing address | English | Billing address | | Sofacto_Adresse2 | PDF | To the attention of : | English | C/O : | | Sofacto_Address3 | PDF | Shipping address | English | Shipping address | | Sofacto_IssueDate | PDF | Issued on | English | Issued on the | | Sofacto_DeliveryDate | PDF | Delivery scheduled for | English | Shipping scheduled for | | Sofacto_SchedulePayment | PDF | Payment schedule | English | Payment plan | | Sofacto_ExclTaxLine | PDF | Excl. VAT | English | Before Tax | | Sofacto_Indexes | PDF | Price revised according to the formula P1 = P0 x (S1 / S0) | English | Price recalculated according to this formula P1 = P0 x (S1/S0) | | Sofacto_Milestone | PDF | Milestone | English | Proportion | | Sofacto_OrderNumber | PDF | Order number : | English | Order Number: | | Sofacto_UnitPrice | PDF | P.U.H.T. | English | Unit Price | | Sofacto_NextPage | PDF | See next page... | English | See next page... | | Sofacto_Proforma | PDF | Proforma | English | Proforma | | Sofacto_Quantity | PDF | QTY | English | QTY | | Sofacto_RaisonRemise | PDF | Reason | English | Discount Description | | Sofacto_Discount | PDF | Discount | English | Discount | | Sofacto_BottomDiscount | PDF | Footer discount | English | Discount applied after all other adjustments | | Sofacto_VATrate | PDF | VAT | English | VAT Rate | | Sofacto_IncludingTax | PDF | NET A PAYER TTC | English | DUE BALANCE | | Sofacto_VAT | PDF | VAT | English | VAT | | Sofacto_VAT2 | PDF | VAT breakdown | English | VAT Distribution | | Sofacto_VAT3 | PDF | Excl. VAT | English | Amount before Tax | | Sofacto_VAT4 | PDF | VAT amount | English | VAT Amount | Here are some articles that explain how to apply labels: - [Custom labels](https://help.salesforce.com/articleView?id=cl_about.htm&type=5) - [Translate custom labels](https://help.salesforce.com/articleView?id=cl_translate_edit.htm&type=5) **Please note:** - Writing the **Short Description** is important because if the names don't match, you can't save the Visualforce page. - All other values in this table are suggestions that you can personalize and adapt to your needs. ## Fields to be created To set up the following fields, please follow this Salesforce procedure: [Creating custom fields](https://help.salesforce.com/articleView?id=adding_fields.htm&type=5). ### Field lists | Subject | Field type | Field label | Field name *Spelling* | Details | Filter criteria | Decimals | | --- | --- | --- | --- | --- | --- | --- | | Invoice | Check box | Show discount amount | Show_discount_amount | ./. | ./. | ./. | | Invoice | Check box | View Payment Schedule | Display_Payment_Schedule__c | ./. | | | | Invoice | Cumulation summary | Total 10% VAT | TotalVAT10 | Invoice line: VAT amount Summary type: SUM | VAT rate EQUAL TO 10 | ./. | | Invoice | Cumulation summary | Total 20% VAT | TotalVAT20 | Invoice line: VAT amount Summary type: SUM | VAT rate EQUAL TO 20 | ./. | | Invoice | Accumulation summary | Total 5.5% VAT | TotalVAT55 | Invoice line: VAT amount Summary type: SUM | VAT (%) CONTAINS 5 | ./. | | Prerequisites | Formula (Currency) | Amount excl. VAT | Montant_HT | sofactoapp__Montant__c /( 1+ TVA__c) | ./. | 2 | | Prerequisites | Formula (Currency) | VAT amount | Montant_TVA | sofactoapp__Facture__r.sofactoapp__TVA_pc__c | ./. | 2 | This Trailhead unit is also available: [Creating custom fields](https://trailhead.salesforce.com/fr/content/learn/projects/lemonade-stand-workshop/make-custom-fields). **Please note:** Please fill in this information carefully. Writing **Field Names** is very important, as you can't save the Visualforce page if Salesforce doesn't recognize the API field names. Note: Don't forget to display the *Show Payment Schedule* and *Show Discount Amount* checkboxes on the invoice page layout, ideally in the **Invoice Layout** section. ## How to set up terms and conditions **Note:** If you don't want to set up the GTC's, you have two options: 1) Add the static resource anyway, but without the file. 2) Remove the code from the Visualforce page. If you don't follow one of these two options, you won't be able to save the Visualforce page. The code that displays the terms and conditions is at the very bottom of the Visualforce page: ```xml