Table of Contents
Poland Localization Settings
To configure the correction invoices feature:
Global search: Poland Localization Settings to see the list.
Click the Edit link next to the related subsidiary.
Go to the Sales Invoicing tab.
Under the Correction Invoices field group:
Correction Invoice Snapshot Folder ID — enter the internal ID of the folder where the snapshots will be saved.
Correction Invoice Snapshot JSON Fields — enter the fields to be included in the invoice information snapshot.
Correction Invoice PDF Template — select the template to be used.
Click the Save button.
Default Localization Setting Values
Expand to see the table below for the default values on the fields indicated above:
Field | Default Values |
---|
Correction Invoice Snapshot Fields | { "itemFields": ["item", "description", "quantity", "units", "rate", "amount", "taxrate1", "tax1amt", "grossamt"] } |
Correction Invoice PDF Template | Correction Invoice PDF/HTML Template |
Custom Fields
Transaction Column fields
The following fields are required to be shown in the form:
Field Name | Field ID | Form |
---|
[STA] PL UU_ID | custcol_sta_pl_uu_id | Invoice transaction form |
The field display can be disabled or inline if the fields are not hidden at the field and form levels. If the fields need to be hidden, they can only be hidden via a script.
Advanced PDF Templates
The default PDF template is provided for users and covers all basic information required to report on corrected invoices. However, for businesses that require more than what is readily available, users can customize their own template and use it to print a correction invoice. The default Advanced PDF Template is named PL Correction Invoice PDF/HTML Template (id: custtmpl _sta_pl_correction_invoice) and can be used as the base of your own customized template.
Use the following variables to access the fields:
Expand to see the list of variables:
Variables | Description | Example |
---|
previousInvoice | Previous invoice or credit memo
fields | To get the native transaction date of the previous invoice: previousInvoice.trandate |
correctionInvoice | Current invoice or credit memo fields | To get the native transaction date of the current invoice: correctionInvoice.trandate |
customer | Customer record of the current invoice | To get the company name from the customer record: customer.companyname |
subsidiary | Subsidiary record of the current invoice | To get the legal name from the subsidiary record: subsidiary.legalname |
snapshot | The before correction, after correction and correction table are sourced from the JSON file attached to the current invoice. The column fields that will be part of the JSON file are defined in Poland Localization Settings > Sales Invoicing subtab > Correction Invoice JSON Fields field. Default value:
{
"itemFields": ["item", "description", "quantity", "units", "rate", "amount", "taxrate1", "tax1amt", "grossamt"]
}
| <#list snapshot.beforeCorrection.lineItems as item> ${item.quantity} </#list>
{
"beforeCorrection": {
"lineItems": [{“item”,”quantity"}],
"totals": {
amount: '',
amountValue: 0,
tax1amt: '',
tax1amtValue: 0,
grossamt: '',
grossamtValue: 0
}
},
"correction": {
"lineItems": [{“item”,”quantity"}],
"totals": {
amount: '',
amountValue: 0,
tax1amt: '',
tax1amtValue: 0,
grossamt: '',
grossamtValue: 0
}
},
"afterCorrection": {
"lineItems": [{“item”,”quantity"}],
"totals": {
amount: '',
amountValue: 0,
tax1amt: '',
tax1amtValue: 0,
grossamt: '',
grossamtValue: 0
}
}
}
|
Send an email to support@staria.com for questions or concerns regarding this topic.