EDI Invoice Export (Freeway Commerce format)

DOWNLOAD SAMPLE FILE: SInvEDIXML.csv

Exported filename is EDI_Invoice_Export.csv. In the tables below, remarks relating to Infoplex are in blue, whereas as those relating to Freeway’s specifications are in black or other colours.

The Invoice export format can contain up to nine record types, not all of which are processed by TASBooks.

#Record TypeNote
1StructureFixed Length. 1 record per file.
2HeaderCSV – Uses Header ID from structure record. 1 record per Invoice
3BranchCSV – Not processed (ignored so not detailed here)
4Detail (Product)CSV – Uses Detail ID from structure record. 1 or more records per Invoice
5Complex Line DiscountCSV – Not processed (ignored so not detailed here)
6Text LineCSV – Not processed (ignored so not detailed here)
7VATCSV – Uses VAT ID from structure record. 1 record per VAT Rate used per Invoice
8TrailerCSV – Uses Trailer ID from structure record. 1 record per Invoice
9ReconciliationCSV – Not processed (ignored so not detailed here)

Structure Record

1 per file. The first record in the file will be this string:

CSV DD/MM/YY HHMM HEAD DTL VAT TLR NN

Header Record

Mandatory, one per Invoice

FieldLabelData TypeMax SizeRequired?Remarks
1Record IDA5Yalways = HEAD. [Fixed value indicating new header record]
2Company CodeA20YMultiTAS Central Info “Company Representation Code” if completed, otherwise nothing. [Internal representation of company issuing invoice 1]
3Customer CodeA20YTAS or MultiTAS Mapped Customer Code. [Internal accounting code for invoice recipient]
4Location CodeA20CTAS or MultiTAS Mapped Customer’s Delivery Code. [Internal accounting code for delivery point 2. Must include at least one of fields 4, 23 and 24]
5Invoice NumberA25YTAS Invoice (or Credit Note) Number
6Invoice DateD11YTAS Invoice Date as DD/MM/YY
7Customer Order NumberA25YTAS Order Ref (i.e. Customer’s)
8Customer Order DateD11YTAS Sales Order Date as DD/MM/YY
9Proof of Delivery NumberA25CEither (a) uses the number assigned in MultiTAS program 6.1.6 or (b) If the special Proof of Delivery dummy TAS Product Code (“POD”) exists in one of the body lines, then the TAS Invoice line Description value for that trimmed to 25 chars, otherwise nothing. [May be required by trading partner]
10Proof of Delivery DateD11CValue ignored. [May be required by trading partner]
11Delivery Note NumberA25CEither (a) uses the number assigned in MultiTAS program 6.1.6 or (b) If the special Delivery Note dummy TAS Product Code (“DN”) exists in one of the body lines, then the line Description value for that trimmed to 25 chars, otherwise nothing. [May be required by trading partner]
12Delivery DateD11CTAS Invoice Date as DD/MM/YY. [May be required by trading partner]
13Delivery TimeT8NValue ignored – no TAS equivalent
14Payment Terms (Text)N50NTAS Invoice Settlement days (no decimal)
15Payment DateD11YCalculated as = Invoice Date + settlement Days, as DD/MM/YY
16Settlement PercentageN6NTAS Invoice/Order Settlement discount percentage (2 decimal places). [Settlement Discount %]
17Delivery Address Line 1A40NTAS Invoice/Order Delivery Address Line 1
18Delivery Address Line 2A40NTAS Invoice/Order Delivery Address Line 2
19Delivery Address Line 3A40NTAS Invoice/Order Delivery Address Line 3
20Delivery Address Line 4A40NTAS Invoice/Order Delivery Address Line 4
21Delivery PostcodeA8NTAS Invoice/Order Delivery Address Postcode
22Credit Note IndicatorA1YN if TAS Order/Invoice type = I (Invoice), Y if type = N (Credit Note). [Y or N – ‘Y’ if this is a credit note]
23Location ANA CodeA13CFrom MultiTAS Mapped Delivery Code’s “ANA Code” if completed, otherwise nothing. [Must include at least one of fields 4, 23 and 24 ]
24Customers Location CodeA17CMultiTAS “Mapped Delivery Code” if completed, otherwise nothing. [Must include at least one of fields 4, 23 and 24 ]
25File Generation NumberN4NNext Export Run Number from MultiTAS Central Info (no decimal)
26File Version NumberN4NAlways = 1 (no decimal)
27File Creation DateD11NSystem date (i.e. today) as DD/MM/YY
28Original Invoice NumberA25CValue ignored; TAS does not have the notion of forcing a Credit Note to be associated with only one Invoice. [Only required for credit notes]
29Original Invoice DateD11CValue ignored; TAS does not have the notion of forcing a Credit Note to be associated with only one Invoice. [Only required for credit notes]
30Debit Note NumberD25NValue ignored. [Credit note raised to cover a debit note from a customer]
31Debit Note DateD11NValue ignored.
32Collection Note NumberA25NValue ignored.
33Collection DateD11NValue ignored.
34Payment ReferenceA25NValue ignored.
35Reference CurrencyA3NValue ignored. [3 character ISO code for the Reference Currency]
36Invoice CurrencyA3NValue ignored. [3 character ISO code for the Invoice Currency]
37Exchange RateN12NValue ignored. [Decimal value indicating the Exchange Rate]
38Supplier Order NumberA25NValue ignored.
39Supplier Order DateA11NValue ignored.
40Contract ReferenceA20NValue ignored.
41Supplier IDA10NValue ignored.
42Transport Document No.A25NValue ignored.
43Carrier CodeA10NValue ignored.
44Customer Address Line1A40NValue ignored.
45Customer Address Line 2A40NValue ignored.
46Customer Address Line 3A40NValue ignored.
47Customer Address Line 4A40NValue ignored.
48Customer Post CodeA8NValue ignored.

Detail (Product) Record

Mandatory. Repeated as required

Fields 4-9 are handled slightly differently, depending whether the TAS line item’s Product Unit Desc 1st 4 chars’ value <> “Meas…” (Type A, e.g. Each) or = “Meas…” (Type B, e.g. “Meas Kg” or “Meas Metre”)

FieldLabelData TypeMax SizeRequired?Remarks
1Record IDA5Yalways = DTL [Fixed value indicating new detail record]
2Product CodeA30YTAS Product Code or MultiTAS Mapped Product Code. [Your internal system product code – what you call it]
3Product GroupA20NTAS Product Group. [Your internal system product group]
4Pack SizeN5CIf Type A, use TAS Product Unit Qty (no decimal places), if Type B, nothing. [See notes below e.g. 24]
5Unit of MeasureN10CIf Type A, nothing, if Type B then = 1.00 (2 decimal places). [See notes below e.g. 0.5 (e.g. 0.5kg)]
6Measure IndicatorA5CIf Type A then nothing, if Type B then use TAS Unit Weight Description trimmed to 5. [See notes below e.g. kg]
7QuantityN10CIf Type A then TAS Inv Qty (no decimal places), if Type B then nothing. [See notes below e.g. 5]
8Total MeasureN10CIf Type A then nothing, if Type B then TAS Inv Qty (2 decimal places). [See notes below e.g. 2.5 (for above example this is 5 units)]
9Measure Indicator (Total)A5CIf Type A then nothing, if Type B then use TAS Unit Weight Description trimmed to 5 Same as Fld 6 above. [See notes below e.g. kg]
10Gross PriceN10YTAS Invoice Unit Price before any line discount (as 4 decimal places). [Standard Price, excluding VAT, excluding discounts etc. Price per Unit of Measure, or Price per Pack Size]
11Discount PercentageN6CTAS Invoice Line Discount percentage (2 decimal places)
12Discount ValueN10CTAS Invoice Line Discount monetary amount (2 decimal places). [Total Discount for the Line]
13Net PriceN10CCalculated as: TAS Net Line Amt ÷ Inv Qty (rounded to 4 decimal places). [Only required if discounts specified at line level]
14VAT CodeA5YTAS Invoice VAT Rate Code (i.e. 1-20 for Standard, Lower, Zero etc). [Internal VAT code]
15Total Value (Gross)N10YCalculated as: TAS Gross Line Unit Price x Inv Qty (rounded to 2 decimal places)
16Total Value (Net)N10CTAS Invoice Line Item Net Amount (2 decimal places). [Only required if discounts specified at line level]
17Subject to Settlement FlagA1YAlways set = N. [Y or N]
18Traded Unit EANA13NValue ignored. [If available, these can reduce the amount of maintenance]
19Partner Product CodeA30NValue ignored. [required externally]
20‘Display Until’ DateD11NValue ignored – no TAS equivalent
21‘Best Before’ DateD11NValue ignored – no TAS equivalent
22Traded Unit EAN Code [No. of Boxes]A13NTAS Product ANA Code (Bar Code) if completed, otherwise nothing. [Used to specify the number of boxes a weighted product has been packed in]
23Traded Unit DUN CodeA14NValue ignored – no TAS equivalent
24Customers Product Code [Spare Field]A17NMultiTAS Customer’s “Mapped Product Code” if completed, otherwise nothing. [Spare field]
25Description (Line 1)A40NTAS Invoice Line description, trimmed to 40 if required
26Description (Line 2)A40NValue ignored.
27Credit Reason (Code)A2NValue ignored – no TAS equivalent. [Must equate to a specific set of codes]
28Credit Reason (Text)A40NValue ignored – no TAS equivalent.
29Mixed VAT Rate IndicatorA1NValue ignored – no TAS equivalent. [Value as per Tradacoms specifications]
30Credit/Debit Line IndicatorA1NIf Invoice Line then = N, if Credit Note Line then = Y. [Y or N, Y Indicates a credit line within an invoice or a debit line within a credit]
31Customer Order NumberA25NValue ignored – see Field 7 in Header above. [Not required if invoicing by order]
32Customer Order DateA11NValue ignored – see Field 8 in Header above.
33Proof of Delivery NumberA25NValue ignored – see Field 9 in Header above.Maximum of 25 characters, though field width is 35
34Proof of Delivery DateD11NValue ignored – see Field10 in Header above.
35Delivery Note NumberA25NValue ignored – see Field 11 in Header above.
36Delivery DateD11NValue ignored – see Field 12 in Header above.
37Delivery TimeT8NValue ignored
38Line VAT AmountN9NValue ignored. [The VAT value for this line]
39Order Line NumberN4NValue ignored. [From the order being invoiced]

VAT Record

Mandatory – 1 record per VAT Rate used – similar to TAS printed Invoice VAT Summary Analysis. Repeat VAT record as necessary (one per VAT code used). All values are sub totals calculated from lines specified against the corresponding VAT code

FieldLabelData TypeMax SizeRequired?Remarks
1Record IDA5Yalways = VAT [Fixed value indicating new VAT summary record]
2VAT CodeA5YTAS Invoice VAT Rate Code (i.e. 1-20 for Standard, Lower, Zero etc). [Internal VAT code]
3Line CountN4YCount (for this VAT rate) from line items during export. [No. Of Lines using relating to this VAT Code]
4Total of Gross ValuesN10YNet+VAT value calculated (for this VAT rate) during export of line items (2 decimal places)
5Total of Net ValuesN10YNet excluding VAT calculated (for this VAT rate) during export of line items (2 decimal places). [Only required if discounts specified at line level]
6Total Settlement DiscountN10YFor 1st VAT rate only that has a Gross Amount > 0, the TAS Invoice Settlement Discount value (total for invoice – 2 decimal places)
7VAT Amount PayableNN10YVAT value calculated (for this VAT rate) during export of line items (2 decimal places). [The value of the VAT Payable is expected to be calculated on the invoice total net of settlement, e.g. Total Goods = £100 at standard rate (20%). Settlement = 5%. VAT would actually be calculated against £95, giving a value of £19, not £20 if calculated against the total goods value of £100. This is standard accounting practice, but resulting invoices/credits will fail Spectrum internal validation checks if this criterion is not met.]
8Invoice Discount AmountN10NValue ignored – no TAS equivalent. [‘Off Invoice’ Discounts for this VAT rate Invoice discount in addition to discount applied to lines
9Invoice Discount PercentageN6NValue ignored – no TAS equivalent. [‘Off Invoice’ Discount Percentage for this VAT rate

Trailer Record

Mandatory – one TRAILER record per invoice/credit.

FieldLabelData TypeMax SizeRequired?Remarks
1Record IDA5Yalways = TLR [Fixed value indicating new trailer record]
2Total of Net ValuesN10YTAS Invoice total net amount, i.e. excl VAT (2 decimal places). [Net (excluding VAT)]
3Charge1N10NValue ignored – no TAS equivalent. [Any other charges relating to invoice]
4Charge2N10NValue ignored – no TAS equivalent. [Any other charges relating to invoice]
5Charge3N10NValue ignored – no TAS equivalent. [Any other charges relating to invoice]
6Total Settlement DiscountN10YTAS Invoice total Settlement Discount amount (2 decimal places)
7Total VAT PayableN10YTAS Invoice total VAT (2 decimal places)
8Total Invoice DiscountN10NValue ignored – no TAS equivalent. [‘Off Invoice’ Discounts. Invoice discount in addition to discount applied to lines]
9Payment AmountN10NValue ignored [Total invoice amount to be paid, includes VAT]
10Invoice Discount PercentageN7NValue ignored [Off Invoice’ Discount Percentage]