Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »


Table of Contents


Poland Localization Settings

To configure the correction invoices feature:

  1. Global search: Poland Localization Settings to see the list.

  2. Click the Edit link next to the related subsidiary.

  3. Go to the Sales Invoicing tab.

  4. Under the Correction Invoices field group:

    1. Correction Invoice Snapshot Folder ID — enter the internal ID of the folder where the snapshots will be saved.

    2. Correction Invoice Snapshot JSON Fields — enter the fields to be included in the invoice information snapshot.

    3. Correction Invoice PDF Template — select the template to be used.

  5. 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.

  • No labels