+359 888 259 239

Sales Template

The Sales Template provides a detailed structure for managing sales documents, line items, and associated financial and organizational data. Below is an explanation of each section and its fields.

Header and Document Details

This section includes the primary details of the sales document, such as its creation, payment method, and overall context.

FieldDescription
sales.documentNoA unique number assigned to the sales document.
sales.documentDateThe date the sales document was created.
sales.amountTotalThe total amount due, including all items, taxes, and discounts.
sales.currency.codeThe currency code used for the amounts (e.g., USD, EUR).
sales.currencyRateThe exchange rate applied if a multicurrency transaction is involved.
sales.dueDateThe date by which payment is expected.
sales.paymentMethod.nameThe name of the payment method selected (e.g., Credit Card, Bank Transfer).
sales.paymentMethod.parent.nameThe parent category or group of the selected payment method, if applicable.
sales.paymentMethod.descriptionAdditional details about the payment method, if available.
sales.createdBy.namesThe full name of the person who created the sales document.
sales.createdThe exact date and time when the document was created.
sales.commentOptional comments or additional information related to the sales document.

My Company Data

This section contains vendor-specific information, typically representing your organization or business.

FieldDescription
vendorFinancialInformation.nameThe full name of the vendor (company or individual).
vendorFinancialInformation.cityThe first line of the vendor’s address, typically the city.
vendorFinancialInformation.address1The detailed address of the vendor.
vendorFinancialInformation.uicThe vendor’s unique identification code (e.g., registration or national ID).
vendorFinancialInformation.vatThe vendor’s VAT identification number, if applicable.
vendorFinancialInformation.responsiblePersonThe individual responsible for the vendor’s financial matters.

Line Items

This section lists the individual items included in the sales document, along with their details and calculated values.

FieldDescription
line.item.codeA unique code assigned to each item in the sales document.
line.item.nameDocumentThe official name of the item as recorded in the document.
line.itemDescriptionA description of the item. If none is provided, the item's name is used.
line.batch.nameThe batch number or name of the item, if applicable.
line.quantityThe quantity of units for the specified item.
line.measure.nameThe measurement unit for the quantity (e.g., kg, pcs), if applicable.
line.unitPriceOriginalThe original unit price of the item before taxes or discounts are applied.
line.amountDiscountOriginalThe discount amount applied to the item, if any.
line.amountTaxOriginalThe tax amount applied to the item, if any.
line.amountTotalOriginalThe total amount for the item, including discounts and taxes.

Document Summary

This section summarizes the overall financial information for the sales document, including discounts, taxes, and total amounts.

FieldDescription
sales.amountThe total base amount for the document before applying any taxes or discounts.
sales.DiscountThe total discount applied to the document.
sales.amountTaxThe total VAT or tax amount applied to the document.
sales.amountTotalThe final total amount payable, inclusive of taxes, discounts, and line items.
sales.taxRateThe VAT rate applied to the document, expressed as a percentage.