This section describes form-controlled XML printing in Visma Business.
To print e-invoices to form-controlled XML format to the entry in Visma Business, you must do the following:
Import a form and a layout
Forms
After import, the table Common/Report/Forms is updated with two forms:
The form 998 Dummy XML is included so that the form XML utskrift (Postens eFaktura) shall have form number 999 (next free number after 998), therefore you can delete form 998 after you have imported the form and the setup.
Setup
You have also imported a new setup Postens eFaktura directly in the Setup folder. This setup includes Orders and Order lines. All fields that are to be printed on the order line must be included in the setup you print from.
In the setup Postens eFaktura the form 999 XML utskrift (Postens eFaktura) is specified in the field Form number in the menu choice Home/Print/Print format/Print parameters. The E-document field is also selected under Home/Print/Print preview/Options.
Update the table E-document information
You must complete the following fields in the table Orders/Base data/E-document information:
Relationship between form, setup and imp file
Visma Business eInvoice uses the imp file format in Visma Business to create tags. Many of the tags in the file are the same such as <Name> and <Address1> therefore the fields are changed (mapped) in the form so that Visma Business operates with unique XML tag names.
Values from the Order head
The order head tags are created in the table Form elements in the field XML tag and must correspond with other positions in the imp file. This name must not occur twice in the form.
XML tags link the imp file to the field Text/parameters in the table Form elements. This is the way you select the fields to be included in the file.
Visma Business XML tag is the other parameter in the imp file. See InvoiceNumber that is highlighted in the screen above and InvoiceNumber that is highlighted in the example from the imp file.
Example from the imp file:
a,1,;,1,,,,,,,,,,,
b,OrderHead,1,,1,,,,,,,,,,
c,RecType,1,1,0,,,,,,,,,S,
c,OrderType,2,3,,,OrderType,,,,,,,S,
c,InvoiceNumber,3,20,,,InvoiceNumber,,,,,,,S,
The seventh parameter is the name of the tag that is written in the XML file. Otherwise the parameters can be different with regard to the numbers of characters or type.
c,Supplier,54,20,,,,,,,,,,X,
c,SupplierName,55,40,,,Name,,,,,,,S,
c,SupplierAddress1,56,40,,,Address1,,,,,,,S,
c,SupplierAddress2,57,40,,,Address2,,,,,,,S,
c,SupplierAddress3,58,40,,,Address3,,,,,,,S,
c,SupplierPostCode,59,10,,,PostCode,,,,,,,S,
The above example is from the Suppliers table. There is a difference between the Visma Business XML tag supplier name and the final XML tag name. The reason is that the final XML tag name occurs five times in the XML file. Visma Business must see the difference between these tags when the file is created and the Visma Business XML tag must link to the correct text/parameter in the Form elements table. In this case where the final XML tag occurs more than once, the Visma Business XML tag has the name table name + final XML tag.
Values from order lines
The order lines are created a different way. The order lines are not defined in the Forms table. The order lines must be displayed in the setup from which you start the print. In the imp file the fields are defined with an external number that corresponds to the field in the order line. You can include fields from underlying tables, but you cannot retrieve the same field with two different foreign keys, like Name from the Associates table for example.
c,RecType,1,1,1,0,,,,,,,,S,
c,XML_NoOfOrderLines,2,20,,,OrderLineCount,,,,,,,S,
c,OrderLine,3,20,,,,,,,,,,X,
c,2952,4,32,,,OrderNumber,,,,,,,I,
c,3028,5,32,,,OrderLineNumber,,,,,,,I,
c,2953,6,32,,,OriginalLineNumber,,,,,,,I,
Fields that are calculated in order lines
There are several fields that are calculated in the Order lines table when printed. These fields have their own special macros.
Order lines
XML_NoOfOrderLines => Total number of order lines (see example above)
XML_AmountPrUnit => Discount per unit
XML_Amount => Discount amount
XML_Percentage => Discount percentage
XML_VATPercent => VAT percentage
XML_VATBasisAmount => VAT basis amount
The start and stop segments
Start and stop for the segment are defined in the imp file.
Start => c,Supplier,54,20,,,,,,,,,,X,
Stop => c,/Supplier,67,20,,,,,,,,,,X,
The start line is the name of the segment and the stop line is/or the name. The field type must be an X.
Segments and tags with special rules and processing
Print layout ID for Posten
The default values for layout ID are as follows:
Type | Message type | LayoutID |
---|---|---|
Invoice380WithGiro * | 380 | 38010 |
Invoice380WithoutGiro | 380 | 38020 |
Invoice300WithoutGiroAbroad | 380 | 38030 |
Invoice_WithGraphWithGiro | 380 | 38040 |
Remaining200InvoiceWithGiro | 380 | 38050 |
BatchMessage * | 380 | 38060 |
Agreement giro book | 380 | 38070 |
CreditnoteWithoutGiro * | 381 | 38110 |
The types marked with * are defaults when starting Visma Business.
If you want to use another ID, or have a custom layout ID from Posten, you must change it in the form. Posten knows which ID number you should use, if you do not use the default ID.
Invoice type | Formula | XML tag |
---|---|---|
Normal invoice | =@Girobeløp ()<0?3810:38010 | TemplateID |
Batch invoice | 38060 | TemplateID |
The VAT segment
The VAT segment in the order head is a special case. VAT occurs three times in the form. That is one occurrence for each VAT no. in Visma Business. This is also repeated three times in the imp file. If the customer has more than three VAT codes in use, you must enter them in the form and in the imp file.
If you have more than three VAT codes in use, you must enter them in the form and in the imp file.
The segments Text 1-10
The text segments are processed specially in eInvoice for Posten.
In eInvoice for Posten there are two free text types. Text 1-5 for invoices and Text 6-10 for orders.
The invoice head appears in the address part of the invoice (max. two lines, each line 80 characters).
The invoice end appears on the last page of the giro part (max. three lines, each line 80 characters).
The order head appears before the first order line (max. five lines).
The order end text appears after all the order lines (max. five lines).
To specify whether the line shall appear on the invoice print you must select it in the form with a special code #H or #F.
#H means that it is a head text line (header) for either an invoice or order.
#F means that it is an end text line (footer) for either an invoice or order.
In the form in Visma Business, information 1-6 are included by default. Information 1-6 are not selected with #H or #F, therefore Information 1-6 are included in the XML file and not on the printout. Here you can enter the text that you want. You can write the text directly in the field or you can retrieve it from Free text or other fields in the order form.
Case number (CaseNumber)
The case number is a field that is not used in Visma Business. In this field you can enter an organisational unit, a field from the order head, or a field as from the customer. This field is empty to begin with.
Order line texts and blank lines
If you print order lines in Visma Business that do not have a product number, the order lines are treated as text lines, and only the description is used. If you want to include other information from a text line, it must have a product number so that you do not have to switch off parameters to print the product number and other values.
Product description
If you use the option to export Product description in the relevant language in the dialog box for Order documents/Additions, this will come after the product line but it will be without the order no. and line no. For Postens e-Faktura, this will be interpreted as a text line.
Serial number
The serial number you register in the Serial no. field in the Order lines table is printed in the Order line tag <SerialNumber>. You can also use it in the option to include the Serial number from the Serial number table in the dialog box for Order documents / Additions. Then the serial number is included as a text line in the XML file.
Freight and Freight product
The fields freight 1-4 are included as a total in the XML tag <Freight>. If you use the function to include freight as a separate order line at the end by using Freight product 1-4 in Bedriftsopplysninger, you must delete the macro for freight from the form, as freight comes as a separate additional line in the invoice head.
Order type "2. Direct order"
When you use direct order, the XML tags "QuantityOrdered", "QuantityDelivered" and "QuantityRemainder" will be set to 0.
Limitations
Invoicing from correct setup
This routine uses the information in the table Print setup to print the details from the order lines. Therefore it is important that you use the new setup eInvoice for Posten found in the Setup folder. If you create your own setup for form-controlled XML, you must call up all the fields in the Order lines table. Call up the fields in the sequence you want. These fields can have column width = 0. There is a limit on the values that Posten can receive and process.
Cancel individual invoices
When e-document is selected you cannot use the processing menu choice Cancel in the tables Orders and Order lines to cancel individual invoices.
On account and Fixed price invoicing
You cannot export the total lines in On account/Fixed price, as the total lines are not ordinary order lines. Here all the lines must be transferred without the total lines.
Batch invoice
From version 4.50.2 and the latest version of Visma Exchange, you can print batch invoices to Posten in Visma Business standard XML format.
XML format
This format exports Visma Business to Visma Exchange and is then converted to Posten's own internal format.
Column description:
XML tag | Visma Business Tag | Visma Business Field SQL/Ext. | Visma Business Name | Type | MCO | Comments |
---|---|---|---|---|---|---|
<eInvoiceEnvelope> | <eInvoiceEnvelope> | Main segment | ||||
<SenderInfo> | <SenderInfo> | Sender's information. | ||||
ID | ID | EDocInfo.FrServP | From server provider ID from e-documents | N8 | Unique ID for sender that you agree with receiver/provider. | |
Name | Name | FrmData.Nm | Company name from Bedriftsopplysninger |
A50 | ||
Address1 | Address1 | FrmData.Ad1 | Address 1 from Bedriftsopplysninger |
A50 | ||
Address2 | Address2 | FrmData.Ad2 | Address 2 from Bedriftsopplysninger |
A50 | ||
Address3 | Address3 | FrmData.Ad3 | Address 3 from Bedriftsopplysninger |
A50 | ||
PostCode | PostCode | FrmData.PNo | Post code from Bedriftsopplysninger |
A10 | ||
PostOffice | PostOffice | FrmDat.PArea | Postal area from Bedriftsopplysninger |
A50 | ||
CountryCode | CountryCode | FrmDataCtry -> Ctry.ISO (CtryNo) | ISO code for country no. from Bedriftsopplysninger |
A3 | ||
Reference | Reference | FrmData.BsNo | Organisation no from Bedriftsopplysninger |
A50 | ||
EANLocationNo | EANLocationNo | FrmData.Ad4 | Address 4 from Bedriftsopplysninger |
N13 | ||
CompanyNo | CompanyNo | FrmData.BsNo | Organisation no. from Bedriftsopplysninger |
A50 | ||
VATRegNo | VATRegNo | FrmData.BsNo | Organisation no. from Bedriftsopplysninger |
A50 | ||
BankAccount | BankAccount | FrmData.BGiro | Bank giro from Bedriftsopplysninger |
A50 | ||
PostAccount | PostAccount | FrmData.PGiro | Postal giro from Bedriftsopplysninger |
A50 | ||
</SenderInfo> | </SenderInfo> | |||||
<ReceiverInfo> | <ReceiverInfo> | Receiver's information. | ||||
ID | ID | EDocInfo.ToServP | To server provider ID from e-documents | N8 | ||
</ReceiverInfo> | </ReceiverInfo> | |||||
ShipmentNo | ShipmentNo | Makro | N11 | Same number as file number retrieved from Master table. | ||
ShipmentDate | ShipmentDate | Today's date | Date | Created date for file. | ||
TotalNoOfInvoices | TotalNoOfInvoices | Makro | N9 | Total number of invoices in this file. | ||
TotalInvoicedAmount | TotalInvoicedAmount | Makro | N13.2 | Total invoice amount in this file. | ||
FirstDueDate | FirstDueDate | Makro | Date | First due date in the file. | ||
LastDueDate | LastDueDate | Makro | Date | Last due date in the file. | ||
ProductionYesNo | ProductionYesNo | EDocInfo.RunSt | Run status from e-documents |
N1 | 0 = Normal production, 1 = Test | |
<eInvoice> | <eInvoice> | This segment contains an eInvoice. Create an instance of this segment for each eInvoice. | ||||
SequenceNo | SequenceNo | N9 | One sequence number for each invoice. 1,2,3,4,5,6… | |||
CustomerID | CustomerID | InvoCust | A32 | A unique customer number. Same as CustomerNo in Global. Can also be a CID. | ||
PaymentRef | PaymentRef | Visma Business eInvoice | A50 | Message/information to the bank. | ||
BillersAccountNo | BillersAccountNo | BancAccount from Customer | A50 | Bank's account number. | ||
eInvoiceType | eInvoiceType | In version 4.40.1 this value will always be set to 0. | N1 | 0 = Normal eInvoice, 1 = eInvoice with fixed autopayment. | ||
<Invoice> |
M |
Head tag for Rubicon EDI invoice notification. | ||||
OrderType | OrderType | @Giroamount <0?381:380 |
Calculated value based on whether value is positive or negative. | S3 |
M |
Message type: Invoice =380 (EDIFACT) Credit note = 381
|
InvoiceType | InvoiceType | =@Order (Order pref.)/4%4=1?1:0 | Calculated value based on Orderpref. Selection for batch invoices |
C |
0=Normal invoice 1=Batch invoice (temporary solution for batch invoice) If tag not found it is normal invoice. | |
PrintILayoutD | TemplateID | Optional field in Visma Business. Gr.1-12 etc. |
Gr. 12 | I10 |
C |
Posten's tag for selecting print layout. (InvoicePrintLayoutID) Can use optional fields in Visma Business and you must update it in the form. |
InvoiceNumber | InvoiceNumber | @DocNo | Document no. from printout calculation | S20 |
C |
The document macro @DokNr. () is used and this updates the invoice number in the order. If the option Selected as invoice no. is used, you must make changes to the form. |
ContraEntryNo | ContraEntryNo | Ord.InvoRef | Invoice reference | S20 |
C |
The invoice number for which the Credit note is valid. Can only be used for credit notes. |
OrderNumber | OrderNumber | Ord.OrdNo | Order no. | I10 |
M |
Order number. N10 from Rub, up to A30 from customer/supp. (is saved in your ref. in Rub). |
DespatchAdviceNo | DespatchAdviceNo | Ord.PacNo | Packing slip no. | I10 |
O |
Packing slip number If several packing slips are run before invoicing, only the last one is transferred. |
OrderReferenceNo | OrderReferenceNo | Ord.CSOrdNo | Customer’s order no. | I10 |
C |
Customer's order number. |
CaseNumber | CaseNumber | I10 |
O |
Case number/Agreement number/Contract number Can use optional fields in Visma Business and you must update it in the form. If you use batch invoices, only organisational units can be used in the order break. | ||
KID | KID | @CID | CID Code | S30 |
C |
CID, only on invoice/cr. note and if completed. |
InvoiceDate | InvoiceDate | @DocDate | Document date selected in print dialog box | D8 |
C |
Invoice date, must be used on invoice/cr. note. The document macro @DokDate () is used and updates the invoice date in the order. |
PaymentDate | PaymentDate | @DueDate | Calculated date based on invoice date and payment terms | D8 |
C |
The document macro @DueDate () is used. The due date must be used on invoice/cr. note. |
OrderDate | OrderDate | Ord.OrdDt | Order date | D8 |
M |
Order date |
DeliveryDate | DeliveryDate | = @Ordre (Order type)=1? @Order (Finished date): @Order (Confirmed delivery date) | Finished date if normal order. Confirmed delivery date if direct order | D8 |
M |
Delivery date Finished date is used - this is the date that is closest to the actual delivery date, since the requested delivery date and confirmed delivery date can vary without being checked or altered. |
DeliveryTerms | DeliveryTerms | Ord.DelTrm | Delivery terms (txt) | I10 |
M |
Delivery terms ( EXW,FOB,DDU…..) Here you should use INCOTERMS abbreviations and this must be updated in the text register for delivery terms. |
DeliveryMethod | DeliveryMethod | Ord.Delmt | Delivery method (txt) | I10 |
O |
Delivery method, here the text from the Texts table is used, if it is not present the numerical value is used. |
PaymentTerms | PaymentTerms | Ord.PmtTrm | Payment terms | I10 |
O |
Payment terms, here the text from the Texts table is used, if it is not present the numerical value is used. |
OrderReceivedBy | OrderReceivedBy | Ord.SelBuy -> Actor.Nm (EmpNo) | Seller/buyer's name from Associates (Seller/buyer) |
S40 |
O |
Order recipient |
DepartmentNo | DepartmentNo | Ord.R1 | Organisational unit 1 | I10 |
O |
Organisational unit 1 is normally Department number. If you want to
use one of the 11 other organisational units, you only have to make a
change in the form. Merk: The fields must be able to take up to 40 R7
characters at the recipient.
|
ProjectNo | ProjectNo | Ord.R2 |
Organisational unit 2 |
I10 |
O |
Project number. If you want to use one of the 11 other organisational
units, you only have to make a change in the form. Merk: The fields must
be able to take up to 40 R7 characters at the
recipient.
|
EmployeeNo | EmployeeNo | Ord.EmpNo |
Empl. no. |
I10 |
O |
Employee number |
TotalGoodsExclDuty | TotalGoodsExclDuty | =@Order (Order total net) - (@FreightFee ()+@InvoiceFee ()) |
Order total net - Freight amount + Invoice fee |
F14 |
M |
Total goods excl. Tax, Order total net - macro for freight @Frakt beløp + macro for invoice fee @Fakturagebyr. |
TotalSpecialDuty | TotalSpecialDuty | Ord.SpcTxAm |
Sp. tax amount |
F14 |
O |
Total special tax from line level. |
TotalDutyAmount | TotalDutyAmount | 0,00 | F14 |
C |
In Visma Business there is only one special duty amount, and therefore only one of them is included. If you must report to this field instead of <TotalSpecialDuty> the formula must be replaced in the form. | |
TotalGoodsInclDuty | TotalGoodsInclDuty | =@Order (Order total net) - (@FreightFee ()+@InvoiceFee ()) + @Ordre (Sp. tax amount) |
Order total net - Freight amount + Invoice fee + Sp. tax amount |
F14 |
M |
Total goods incl. Tax, Order total net - macro for freight @Frakt beløp + macro for invoice fee @Fakturagebyr + Sp. tax amount |
InvoiceDiscountAmount | InvoiceDiscountAmount | -- |
O |
Total Invoice discount, this amount is already included in the other total fields. | ||
InvoiceDiscountPercentage | InvoiceDiscountPercentage | -- |
C |
Total Invoice discount percentage, this field is already included in the other total fields. | ||
InvoiceFee | InvoiceFee | @InvoiceFee |
@InvoiceFee() |
F14 |
O |
Document macro @Fakturagebyr () |
Freight | Freight | @Freight |
@FreightFee () |
F14 |
O |
Document macro @Frakt beløp Freight product 1-4 and customs must be registered in the Bedriftsopplysninger table and the product must be exempted from invoice printout. |
TotalAmountExclVAT | TotalAmountExclVAT | =@Order (Order total net)-@Order (Rounding) |
Order total net - Rounding |
F14 |
M |
Sum total excl. VAT. |
TotalVATAmount | TotalVATAmount | = @VATAmount (1) + @VATAmount (2) + @VATAmount (3) |
@VATAmount (1) + @VATAmount (2) + @VATAmount (3) |
F14 |
M |
Total VAT for the order/invoice If there are more VAT numbers than 1-3, the form must be updated so that you can include other VAT numbers. Only add new macros with @VATAmount (VAT no). |
TotalVATBasisAmount | TotalVATBasisAmount | =@VATBasis (1)+@VATBasisAmount (2)+@VATBasisAmount (3) |
@VATBasisAmount(1)+ @VATBasisAmount(2)+ @VATBasisAmount(3) |
F14 |
M |
Total VAT basis amount If there are more VAT numbers than 1-3, the form must be updated so that you can include other VAT numbers. Only add new macros with @MvaGrLag (VAT no). |
TotalVATFreeAmount | TotalVATFreeAmount | =@VATFree (1) + @VATFree (2) + @VATFree (3) |
@VATFree (1) + @VATFree (2) + @VATFree (3) |
F14 |
M |
Total VAT free amount If there are more VAT numbers than 1-3, the form must be updated so that you can include other VAT numbers. Only add new macros with @AvgFritt (VAT no). |
TotalAmountInclVAT | TotalAmountInclVAT | =@Order (Order total gross)-@Order (Rounding) |
Order total gross - Rounding |
F14 |
M |
Sum total incl. VAT. |
RoundingAmount | RoundingAmount | Ord.Trunc |
Rounding |
F14 |
M |
Rounding |
InvoiceTotalAmount | InvoiceTotalAmount | =@Order (Order total gross) |
Order total gross |
F14 |
M |
Sum total to pay |
InvoiceTotalAmountChecksum | InvoiceTotalAmountChecksum | =@AmountCheckDigit () |
@AmountCheckDigit |
I1 |
M |
Document macro for @GirobeløpSjekksiffer |
<VAT> | VAT |
X20 |
C |
VAT specification The segment can occur 0 or more times. Once for each VAT rate. Not necessary when using just one VAT rate. Ref. total fields above. If several rates are used or VAT numbers other than the Norwegian ones that are standard, the form, and if there are additions, also the imp file must be changed. |
||
VATAmount | VATAmount | @VATAmount (VAT no) (1, 2, 3) |
@VATAmount (VAT no.) |
F14 |
M |
Total calculated VAT Document macro for @VATAmount () Included with set See comments on main tag for more or other rates. |
VATPercentage | VATPercentage | @VATPercentage (VAT no.) (1, 2, 3) |
@VATPercentage (VAT no.) |
F14 |
M |
VAT rate in % Document macro for @MvaSats () Included with set See comments on main tag for more or other rates. |
VATBasisAmount | VATBasisAmount | @VATBasisAmount (VAT no.) (1, 2, 3) |
@VATBasisAmount (VAT no.) |
F14 |
M |
VAT basis amount Document macro for @MvaGrLag () Included with set See comments on main tag for more or other rates. |
</VAT> | /VAT |
X20 |
||||
<Currency> | Currency |
X20 |
C |
Currency for settlement |
||
CurrencyCode | CurrencyCode |
Ord.Cur-> Cur.ISO (Cur) |
ISO code from currencies (Currency no.) |
F14 |
M |
Currency code - 3Alpha (NOK, GBP, USD etc.) |
ExchangeRate | ExchangeRate |
Ord.ExtRate |
Exchange rate |
F14 |
M |
Exchange rate: 1 CUR = x NOK |
RateDate | RateDate |
@DocDate () |
@DocDate |
F14 |
M |
Document macro @DocDate |
</Currency> | /Currency |
X20 |
||||
<Supplier> | Supplier |
X20 |
M |
Supplier |
||
Name | SupplierName |
FrmData.Nm |
Company name from Bedriftsopplysninger |
S40 |
M |
Supplier's name |
Address1 | SupplierAddress1 |
FrmData.Ad1 |
Company's Addr. 1 from Bedriftsopplysninger |
S40 |
C |
Supplier's street address |
Address2 | SupplierAddress2 |
FrmData.Ad2 |
Company's Addr. 2 from Bedriftsopplysninger |
S40 |
C |
Supplier's street address |
Address3 | SupplierAddress3 |
FrmData.Ad3 |
Company's Addr.3 from Bedriftsopplysninger |
S40 |
C |
Supplier's street address |
PostCode | SupplierPostCode |
FrmData.Pno |
Company's post code from Bedriftsopplysninger |
S10 |
C |
Supplier's post code |
PostOffice | SupplierPostOffice |
FrmDat.Parea |
Company's Post office from Bedriftsopplysninger |
S40 |
C |
Supplier's post office |
CountryCode | SupplierCountryCode |
FrmData.Ctry -> Ctry.ISO (CtryNo) |
ISO country code from Country table (Country no.) |
S3 |
C |
Supplier's country code. 2Alpha E.g. NO, US, DK, SE |
Reference | SupplierReference |
@Order (Associates [Seller/buyer->Empl. no.] (Name)) |
Seller's name From Associates (EmpNo) |
C |
Supplier's reference person |
|
EANLocationNo | SupplierEANLocationNo |
FrmData.Ad4 |
EAN location no. from Bedriftsopplysninger |
S40 |
M |
Supplier's EAN location number. Before ver. 4.60 Bedriftsopplysninger Address 4 is used. Other fields can be used freely. |
CompanyNo | SupplierCompanyNo |
FrmData.BsNo |
Organisation no. from Bedriftsopplysninger |
S18 |
C |
Supplier's organisation number |
VATRegNo | SupplierVATRegNo |
FrmData.BsNo |
Comp. no. from Bedriftsopplysninger |
S18 |
C |
Supplier's VAT registration number. This field should be removed from the default or change name to EU reg. no. since in Norway there is only one ID |
Phone | SupplierPhone |
FrmData.Phone |
Phone from Bedriftsopplysninger |
S20 |
C |
Supplier's Phone |
Fax | SupplierFax |
FrmData.Fax |
Fax no. from Bedriftsopplysninger |
S20 |
C |
Supplier's Fax |
EmailAddress | SupplierEmailAddress |
FrmData.MailAd |
E-mail address from Bedriftsopplysninger |
S260 |
C |
Supplier's e-mail address |
WWWAddress | SuppliertsWWWAddress |
FrmData.IntAd |
Web page from Bedriftsopplysninger |
S260 |
C |
Supplier's web page |
BankAccount | SupplierBankAccount |
FrmData.BGiro |
Bank giro from Bedriftsopplysninger |
S35 |
C |
Supplier's bank giro number |
PostAccount | SupplierPostAccount |
FrmData.PGiro |
Postal giro from Bedriftsopplysninger |
S35 |
C |
Supplier's postal giro number This field should not be included in the Norwegian default because postal giro accounts no longer exist. They do abroad and therefore the tag is kept. |
</Supplier> | /Supplier |
X20 |
||||
<Buyer> | Buyer |
X20 |
M |
Customer / Buyer |
||
ID | BuyerID |
Ord.CustNo |
Cust. no. |
I10 |
C |
Buyer's ID |
Name | BuyerName |
Ord.Nm |
Name |
S40 |
M |
Buyer's name |
Address1 | BuyerAddress1 |
Ord.Ad1 |
Address 1 |
S40 |
C |
Buyer's street address |
Address2 | BuyerAddress2 |
Ord.Ad2 |
Address 2 |
S40 |
C |
Buyer's street address |
Address3 | BuyerAddress3 |
Ord.Ad3 |
Address 3 |
S40 |
C |
Buyer's street address |
PostCode | BuyerPostCode |
Ord.PNo |
Post code |
S10 |
C |
Buyer's post code |
PostOffice | BuyerPostOffice |
Ord.PArea |
Postal area |
S40 |
C |
Buyer's postal area |
CountryCode | BuyerCountryCode |
Ord.Ctry -> Ctry.ISO (CtryNo) |
ISO code from country table (Country no.) |
S3 |
C |
Buyer's country code. 2Alpha E.g. NO, US, DK, SE |
Reference | BuyerReference |
Ord.LiaAct -> Actor.Nm (LiaAct) |
Contact's name from associates (contact for) |
S40 |
C |
Buyer's reference person Can also be replaced with the field Your ref. in the form if no contact is used |
EANLocationNo | BuyerEANLocationNo |
Ord.CustNo -> Actor.EANLocCd (CustNo) |
EAN location no. from Associates (Customer no.) |
S13 |
M |
Buyer's location number |
CompanyNo | BuyerCompanyNo |
Ord.CustNo -> Actor.BsNo (CustNo) |
Organisation no. from Associates (Customer no.) |
S18 |
C |
Buyer's organisation number |
VATRegNo | BuyerVATRegNo |
Ord.CustNo -> Actor.BsNo (CustNo) |
Organisation no. from Associates (Customer no.) |
S18 |
C |
Buyer's VAT registration number. This field should be removed from the default or change name to EU reg. no. since in Norway there is only one ID (Organisation no.). For EU countries there is the EU organisation no. in addition to the national one. |
CustomerNoFactor | BuyerCustomerNoFactor |
Ord.CustNo -> Actor.FactNo (CustNo) |
Factoring no. from Associates (Customer no.) |
S18 |
C |
Customer no. at factoring company. Only used if factoring employed. |
WWWAddress |
InvoiceWWWAddress |
Ord. CustNo -> Actor.WebPage1 (CustNo) |
Web page 1 from Associates (Cust. no.) |
S260 |
O |
Buyer's web page |
EmailAddress |
BuyerEmailAddress |
Ord.CustNo -> Actor.MailAd (CustNo) |
E-mail address from Associates (Customer no.) |
S260 |
C |
Buyer's e-mail address |
Phone |
BuyerPhone |
Ord.CustNo -> Actor.Phone (CustNo) |
Telephone number from Associates (Customer no.) |
S20 |
C |
Buyer's telephone number |
Fax |
BuyerrFax |
Ord.CustNo -> Actor.Fax (CustNo) |
Fax no. from Associates (Customer no.) |
S20 |
C |
Buyer's fax number |
</Buyer> |
/Buyer |
X20 |
||||
<DeliveryParty> |
DeliveryParty |
X20 |
M |
Recipient |
||
ID |
DeliveryPartyID |
Ord.DelActNo |
Delivery associate no. |
I10 |
C |
Recipient ID |
Name |
DeliveryPartyName |
Ord.DelNm |
Delivery name |
S40 |
M |
Recipient's name |
Address1 |
DeliveryPartyAddress1 |
Ord.DelAd1 |
Delivery address 1 |
S40 |
C |
Recipient's street address |
Address2 |
DeliveryPartyAddress2 |
Ord.DelAd2 |
Delivery address 2 |
S40 |
C |
Recipient's street address |
Address3 |
DeliveryPartyAddress3 |
Ord.DelAd3 |
Delivery address 3 |
S40 |
C |
Recipient's street address |
PostCode |
DeliveryPartyPostCode |
Ord.DelPNo |
Delivery post code |
S10 |
C |
Recipient's post code |
PostOffice |
DeliveryPartyPostOffice |
Ord.DelPArea |
Delivery postal area |
S40 |
C |
Recipient's postal area |
CountryCode |
DeliveryPartyCountryCode |
Ord.DelCtry -> Ctry.ISO (DelCtryNo) |
ISO code from country table (Country no.) |
S3 |
C |
Recipient's country code. 2Alpha E.g. NO, US, DK, SE |
Reference |
DeliveryPartyReference |
-- |
C |
Customer's reference on the order for delivery address No field is defined in the form as contacts are not included in Associates, here you can select a suitable field if you want a value at this point. |
||
EANLocationNo |
DeliveryPartyEANLocationNo |
Ord.DelActNo -> Actor.EANLocCd (DelActNoNo) |
EAN location no. from Associates (Delivery associate no.) |
S13 |
M |
EAN location number for delivery address. |
CompanyNo |
DeliveryPartyCompanyNo |
Ord.DelActNo -> Actor.BsNo (DelActNo) |
Organisation no. from Associates (Delivery associate no.) |
S18 |
C |
Recipient's organisation number |
VATRegNo |
DeliveryPartyVATRegNo |
Ord.DelActNo -> Actor.BsNo (DelActNo) |
Organisation no. from Associates (Delivery associate no.) |
S18 |
C |
Recipient's VAT reg. number This field should be removed from the default or change name to EU reg. no. since in Norway there is only one ID (Organisation no.). For EU countries there is the EU organisation no. in addition to the national one. |
WWWAddress |
DeliveryWWWAddress |
Ord.DelActNo-> Actor.WebPage1 (DelActNo) |
Web page 1 from Associates (Delivery associate no.) |
S260 |
O |
Recipient's web page |
EmailAddress |
DelyveryPartyEmailAddress |
Actor.MailAd (DelActNo) |
E-mail address from Associates (Delivery associate no.) |
S260 |
C |
Recipient's e-mail address |
Phone |
BuyerPhone |
Ord.CustNo -> Actor.Phone (DelActNo) |
Telephone number from Associates (Delivery associate no.) |
S20 |
C |
Buyer's telephone number |
Fax |
BuyerrFax |
Ord.CustNo -> Actor.Phone (DelActNo) |
Fax no. from Associates (Delivery associate no.) |
S20 |
C |
Buyer's fax number |
</DeliveryParty> |
/DeliveryParty |
X20 |
||||
<Invoicee> |
Invoicee |
X20 |
C |
Invoicee Only used for chain invoicing! |
||
ID |
InvoiceID |
Ord.InvoCust -> Actor.ActNo (InvoCust) |
Invoice customer no. |
I10 |
C |
Invoicee's ID |
Name |
InvoiceName |
Ord.InvoCust - > Actor.Nm (InvoCust) |
Name from Associates (Inv. Cust. No.) |
S40 |
M |
Invoicee's name |
Address1 |
InvoiceAddress1 |
Ord.InvoCust - > Actor.Ad1 (InvoCust) |
Address 1 from Associates (Inv. Cust. No.) |
S40 |
C |
Invoicee's street address |
Address2 |
InvoiceAddress2 |
Ord.InvoCust - > Actor.Ad2 (InvoCust) |
Address 2 from Associates (Inv. Cust. No.) |
S40 |
C |
Invoicee's street address |
Address3 |
InvoiceAddress3 |
Ord.InvoCust - > Actor.Ad3 (InvoCust) |
Address 3 from Associates (Inv. Cust. No.) |
S40 |
C |
Invoicee's street address |
PostCode |
InvoicePostCode |
Ord.InvoCust - > Actor.PNo (InvoCust) |
Post code from Associates (Inv. Cust. No.) |
S10 |
C |
Invoicee's post code |
PostOffice |
InvoicePostOffice |
Ord.InvoCust - > Actor.PArea (InvoCust) |
Postal area from Associates (Inv. Cust. No.) |
S40 |
C |
Invoicee's postal area |
CountryCode |
InvoiceCountryCode |
Ord.InvoCust - > Actor.Ctry (InvoCust) -> Ctry.ISO (CtryNo) |
ISO code from Associates country no. (Inv. Cust. No.) |
S3 |
C |
Invoicee's country code. 2Alpha E.g. NO, US, DK, SE |
Reference |
InvoiceReference |
Ord.LiaAct2 -> Actor.Nm (LiaAct2) |
Name from Associates (Contact 2) |
S40 |
C |
Invoicee's reference person Contact 2 is displayed and must be updated manually if required during order registration, as the field is not updated automatically in the order. |
EANLocationNo |
InvoiceEANLocationNo |
Ord.InvoCust -> Actor.EANLocCd (InvoCust) |
EAN location no. from Associates (Inv. Cust. No.) |
S13 |
M |
Invoicee's EAN location number. |
CompanyNo |
InvoiceCompanyNo |
Ord.InvoCust -> Actor.BsNo (InvoCust) |
Organisation no. from Associates (Inv. Cust. No.) |
S18 |
C |
Invoicee's organisation number |
VATRegNo |
InvoiceVATRegNo |
Ord.InvoCust -> Actor.BsNo (InvoCust) |
Organisation no. from Associates (Inv. Cust. No.) |
S18 |
C |
Invoicee's VAT reg. number This field should be removed from the default or change name to EU reg. no. since in Norway there is only one ID (Organisation no.). For EU countries there is the EU organisation no. in addition to the national one. |
CustomerNoFactor |
InvoiceCustomerNoFactor |
Ord.InvoCust -> Actor.FactNo (InvoCust) |
Factoring no. from Associates (Inv. Cust. No.) |
S18 |
C |
Customer no. at factoring company. Only used if factoring employed. |
WWWAddress |
InvoiceWWWAddress |
Ord.InvoCust -> Actor.WebPage1 (InvoCust) |
Web page 1 from Associates (Inv. Cust. No.) |
S260 |
O |
Invoicee's web page |
EmailAddress |
InvoiceEmailAddress |
Actor.MailAd (InvoCust) |
E-mail address from Associates (Inv. Cust. No.) |
S260 |
C |
Invoicee's e-mail address |
Phone |
BuyerPhone |
Ord.CustNo -> Actor.Phone (InvoCust) |
Telephone from Associates (Inv. Cust. No.) |
S20 |
C |
Invoicee's telephone number |
Fax |
BuyerrFax |
Ord.CustNo -> Actor.Fax (InvoCust) |
Fax no. from Associates (Inv. Cust. No.) |
S20 |
C |
Invoicee's fax number |
</Invoicee> |
/Invoicee |
X20 |
||||
<Factor> |
Factor |
X20 |
C |
Factoring company Only used in event of factoring of invoices where the payment method is set to fact. |
||
ID |
FactorID |
@Factor (ActNo) |
@Factoring actor no. |
I10 |
C |
Factoring ID |
Name |
FactorName |
@Factor (Nm) |
@Factoring (Name) |
S40 |
M |
Factoring name |
Address1 |
FactorAddress1 |
@Factor (Ad1) |
@Factoring (Address 1) |
S40 |
C |
Factoring street address |
Address2 |
FactorAddress2 |
@Factor (Ad1) |
@Factoring (Address 2) |
S40 |
C |
Factoring street address |
Address3 |
FactorAddress3 |
@Factor (Ad1) |
@Factoring (Address 3) |
S40 |
C |
Factoring street address |
PostCode |
FactorPostCode |
@Factor (PNo) |
@Factoring (Post code) |
S10 |
C |
Factoring post code |
PostOffice |
FactorPostOffice |
@Factor (PArea) |
@Factoring (Postal area) |
S40 |
C |
Factoring postal area |
CountryCode |
FactorCountryCode |
@Factor (Ctry) -> Ctry.ISO (CtryNo) |
ISO code @Factoring (Country no.) |
S3 |
C |
Factoring country code. 2Alpha E.g. NO, US, DK, SE |
Reference |
FactorReference |
=@Order (Fact. company no./CID-def.)=0?@Firm (Factoring ID): @Order (Factoring company and CID-def. [Fact. comp. no./CID-def.->Fact. company no./CID-def.] (Factoring ID)) |
Factoring ID from Bedriftsopplysninger or from Factoring company and CID def. |
C |
Factoring reference - Fill in agreement no. From Bedriftsopplysninger here, If several factoring companies are used, this must be retrieved from Factoring company no. |
|
EANLocationNo |
FactorEANLocationNo |
@Factor (EANLocCd) |
@Factoring (EAN location no.) |
S13 |
M |
Factoring EAN location number. |
CompanyNo |
FactorCompanyNo |
@Factor (BsNo) |
@Factoring (comp. no.) |
S18 |
C |
Factoring company number |
VATRegNo |
FactorVATRegNo |
@Factor (BsNo) |
@Factoring (comp. no.) |
S18 |
C |
Factoring VAT reg. number This field should be removed from the default or change name to EU reg. no. since in Norway there is only one ID (Organisation no.). For EU countries there is the EU organisation no. in addition to the national one. |
BankAccount |
FactorBankAccount |
@Factor (BGiro) |
@Factoring (Bank giro) |
S18 |
M |
Factoring bank giro number |
WWWAddress |
FactorWWWAddress |
@Factor (Web page 1) |
@Factoring Web page 1 |
S260 |
O |
Factoring web page |
EmailAddress |
FactorEmailAddress |
@Factor (MailAd) |
@Factoring (E-mail address) |
S260 |
C |
Factoring e-mail address |
Phone |
BuyerPhone |
@Factor.Phone (CustNo) |
@Factoring (Telephone no.) |
S20 |
C |
Factoring telephone number |
Fax |
BuyerrFax |
@Factor.Fax (CustNo) |
@Factoring (Fax no.) |
S20 |
C |
Factoring fax number |
</Factor> |
/Factor |
X20 |
||||
<ShipFrom> |
ShipFrom |
Coming in 4.60 |
C |
Ship from Not used with free delivery. This will normally be the warehouse, but it can also be a carrier's goods terminal, subcontractor's warehouse etc. Therefore I think the information should be accessible in the order register so that it can vary from order to order. |
||
ID |
ShipFromID |
M |
Ship from ID (Associate no.) |
|||
Name |
ShipFromName |
Ord.FrStc -> Stc.Name |
Name from Warehouse (Warehouse no.) |
M |
Ship from name |
|
Address1 |
ShipFromAddress1 |
Ord.FrStc -> Stc.Ad1 |
Address 1 from Warehouse (Warehouse no.) |
C |
Ship from street address |
|
Address2 |
ShipFromAddress2 |
Ord.FrStc -> Stc.Ad1 (FrStc) |
Address 1 from Warehouse (Warehouse no.) |
C |
Ship from street address |
|
Address3 |
ShipFromAddress3 |
Ord.FrStc -> Stc.Ad1 (FrStc) |
Address 1 from Warehouse (Warehouse no.) |
C |
Ship from street address |
|
PostCode |
ShipFromPostCode |
Ord.FrStc -> Stc.Ad2 (FrStc) |
Address 2 from Warehouse (Warehouse no.) |
C |
Ship from post code |
|
PostOffice |
ShipFromPostOffice |
Ord.FrStc -> Stc.Ad3 (FrStc) |
Address 3 from Warehouse (Warehouse no.) |
C |
Ship from post office |
|
CountryCode |
ShipFromCountryCode |
Ord.FrStc -> Stc.Ctry -> (FrStc) Ctry.ISO (Ctry) |
ISO code from Warehouse country no. (Warehouse no.) |
C |
Ship from country code. 2Alpha E.g. NO, US, DK, SE |
|
Reference |
ShipFromReference |
Ord.FrStc -> Stc.Rsp -> (FrStc) Actor.Nm (Rsp) |
Name from Associates (Warehouse no. -> Official) |
C |
Ship from reference person |
|
EANLocationNo |
ShipFromEANLocationNo |
Ord.FrStc -> Stc.EANLocCd (FrStc) |
Address 1 from Warehouse (Warehouse no.) |
M |
Ship from EAN location number |
|
CompanyNo |
ShipFromCompanyNo |
FrmData.BsNo |
Organisation no. from Bedriftsopplysninger |
C |
Ship from organisation number Can be added to the official if different from Company |
|
VATRegNo |
ShipFromVATRegNo |
FrmData.BsNo |
Comp. no. from Bedriftsopplysninger |
C |
Ship from VAT reg. number. Can be added to the official if different from Company. This field should be removed from the default or change name to EU reg. no. since in Norway there is only one ID (Organisation no.). For EU countries there is the EU organisation no. in addition to the national one. |
|
EmailAddress |
ShipFromEmailAddress |
Ord.FrStc -> Stc.MailAd (FrStc) |
E-mail address from Warehouse (Warehouse no.) |
C |
Ship from e-mail address |
|
WWWAddress |
ShipFromWEB |
Ord.FrStc -> Stc.Ad4 (FrStc) |
Address 4 from Warehouse (Warehouse no.) |
C |
Ship from web page Address 4 can be used |
|
Phone |
ShipFromPhone |
Ord.FrStc -> Stc.Phone (FrStc) |
Phone from Warehouse (Warehouse no.) |
C |
Ship from telephone number |
|
Fax |
ShipFromFax |
Ord.FrStc -> Stc.Fax (FrStc) |
Fax from Warehouse (Warehouse no.) |
C |
Ship from fax number |
|
</ShipFrom> |
/ShipFrom |
|||||
<Carrier> |
Carrier |
Not included |
C |
Carrier |
||
ID |
CarrierID |
Carrier ID (Associate no.) |
||||
Name |
CarrierName |
Ord.ShpActNo -> Actor.Name |
Name from Associates (Carrier/Tranship.) |
M |
Carrier name |
|
Address1 |
CarrierAddress1 |
Ord.ShpActNo -> Actor.Ad1 |
Address 1 from Associates (Carrier/Tranship.) |
C |
Carrier street address |
|
Address2 |
CarrierAddress2 |
Ord.ShpActNo -> Actor.Ad1 (ShpActNo) |
Address 1 from Associates (Carrier/Tranship.) |
C |
Carrier street address |
|
Address3 |
CarrierAddress3 |
Ord.ShpActNo -> Actor.Ad1 (ShpActNo) |
Address 1 from Associates (Carrier/Tranship.) |
C |
Carrier street address |
|
PostCode |
CarrierPostCode |
Ord.ShpActNo -> Actor.Ad2 (ShpActNo) |
Address 2 from Associates (Carrier/Tranship.) |
C |
Carrier post code |
|
PostOffice |
CarrierPostOffice |
Ord.ShpActNo -> Actor.Ad3 (ShpActNo) |
Address 3 from Associates (Carrier/Tranship.) |
C |
Carrier post office |
|
CountryCode |
CarrierCountryCode |
Ord.ShpActNo -> Actor.Ctry -> (ShpActNo) Ctry.ISO (Ctry) |
ISO code from Associates country no. (Carrier/Tranship. -> Country no.) |
C |
Carrier country code. 2Alpha E.g. NO, US, DK, SE |
|
Reference |
CarrierReference |
Ord.ShpActNo -> Actor.Rsp -> (ShpActNo) Actor.Nm (Rsp) |
Name from Associates (Carrier/Tranship. -> Official) |
C |
Carrier's contact |
|
EANLocationNo |
CarrierEANLocationNo |
Ord.ShpActNo -> Actor.EANLocCd (ShpActNo) |
Address 1 from Associates (Carrier/Tranship.) |
M |
Carrier's EAN location number |
|
CompanyNo |
CarrierCompanyNo |
Ord.ShpActNo -> Actor.BsNo (ShpActNo) |
Organisation no. from Associates (Carrier/Tranship.) |
C |
Carrier's organisation number. |
|
VATRegNo |
CarrierVATRegNo |
Ord.ShpActNo -> Actor.BsNo (ShpActNo) |
Comp. no. from Associates (Carrier/Tranship.) |
C |
Carrier's VAT reg. number. This field should be removed from the default or change name to EU reg. no. since in Norway there is only one ID (Organisation no.). For EU countries there is the EU organisation no. in addition to the national one. |
|
EmailAddress |
CarrierEmailAddress |
Ord.ShpActNo -> Actor.MailAd (ShpActNo) |
E-mail address from Associates (Carrier/Tranship.) |
C |
Carrier's e-mail address |
|
WWWAddress |
CarrierWWWAddress |
Ord.ShpActNo -> Actor.WebPg1 (ShpActNo) |
Web page 1 from Associates (Carrier/Tranship.) |
C |
Carrier's web page |
|
Phone |
BuyerPhone |
Ord.ShpActNo -> Actor.Phone (ShpActNo) |
Phone from Associates (Carrier/Tranship.) |
C |
Carrier's telephone number |
|
Fax |
BuyerrFax |
Ord.ShpActNo -> Actor.Fax (ShpActNo) |
Fax from Associates (Carrier/Tranship.) |
C |
Carrier's fax number |
|
</Carrier> |
/Carrier |
|||||
<TotalMeasurements> |
TotalMeasurements |
X20 |
O |
Dimensions of the goods Each dimension can have the attribute unit=..a3 E.g. <TotalVolume unit=MTQ>....... |
||
TotalVolume |
TotalVolume |
Ord.Vol |
Volume |
F14 |
M |
Total volume for the order |
TotalWeight |
TotalWeight |
Ord.5961 |
Gross weight |
F14 |
M |
Total weight of the order (Gross weight) |
NumberOfPackages |
NumberOfPackages |
Ord.Package |
Pack units |
I10 |
C |
Number of packages |
</TotalMeasurements> |
/TotalMeasurements |
X20 |
||||
<InvoiceFreeText> |
InvoiceFreeText |
X20 |
O |
Free text from orders By default Information 1-5 is used, but this can be edited in the form to other fields, texts to be displayed. To determine if it is a header or footer. When the fields Text 1-5 start with #H[number] or #F[Number] they will be seen as text lines to be printed on the invoice heading or invoice footer. #H1[Text to be printed] #H2[Text to be printed] #F1[Text to be printed] Valid values are #H1-#H5 and #F1-#F5 |
||
Text |
Text1 |
Ord.Inf |
Information 1 |
S70 |
M |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
Text |
Text2 |
Ord.Inf2 |
Information 2 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
Text |
Text3 |
Ord.Inf3 |
Information 3 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
Text |
Text4 |
Ord.Inf4 |
Information 4 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
Text |
Text5 |
Ord.Inf5 |
Information 5 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
</InvoiceFreeText> |
/InvoiceFreeText |
|||||
<OrderFreeText> |
OrderFreeText |
X20 |
O |
Free text from orders By default Information 6 in Text6 is used and others are not defined, but this can be edited in the form to other fields, texts to be displayed. To determine if the text is to appear before the order lines or after the last order line When the fields Text 6-10 start with #H[number] or #F[number] they will be seen as text lines to be printed before the order lines [H] or after the last order line [F]. #H1[Text to be printed] #H2[Text to be printed] #F1[Text to be printed] Valid values are #H1-#H5 and #F1-#F5 |
||
Text |
Text6 |
Ord.Inf6 |
Information 6 |
S70 |
M |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
Text |
Text7 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
||
Text |
Text8 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
||
Text |
Text9 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
||
Text |
Text10 |
S70 |
C |
Free text line, max. 70 characters Here you can freely use other fields, this must be defined in the form |
||
DirectOrder |
DirectOredr |
=@Order (Order type)=2?1:0 |
Calculated from Order type and when it is a direct order has the value 1 |
I1 |
O |
Because the outstanding quantity field is processed differently for normal and direct orders, the field Balance to pick is also included which will then show the correct outstanding quantity for direct orders. Both fields are displayed to avoid two rule files. |
FreeText |
UserDefined1 |
A20 |
O |
Free field 1 Definition to eInvoice for Posten Invoice head. To eInvoice for Posten it is permitted from Visma Business that the customer can define 5 free fields that can be printed on the invoice form. This must be arranged with Posten before it can be used. |
||
FreeText |
UserDefined2 |
A20 |
O |
Free field 2 |
||
FreeText |
UserDefined3 |
A20 |
O |
Free field 3 |
||
FreeText |
UserDefined4 |
A20 |
O |
Free field 4 |
||
FreeText |
UserDefined5 |
A20 |
O |
Free field 5 |
||
</OrderFreeText> |
/OrderFreeText |
|||||
<OrderLines> |
C |
The segment contains all the order lines |
||||
OrderLineCount |
XML_NoOfOrderLines |
XML_NoOfOrderLines |
Special macro for counting order lines |
S20 |
M |
Total number of order lines |
<OrderBreak> |
O |
Optional order break on the line to display total/batch eInvoice. This segment is just additional information for the user. The segment is currently only used by eInvoice. This segment cannot be included in the OrderLineCount element. In Visma Business there is a limit on which fields can be used. All fields that can be used are listed below. |
||||
OrderNumber |
BatchOrderNo |
Ord.OrdNo |
Order no. |
I10 |
O |
Order number. N10 from Rub, up to A30 from customer/supp. (saved in your ref. in Rub) |
DespatchAdviceNo |
BatchDespatchAdviceNo |
Ord.PacNo |
Packing slip no. |
I10 |
O |
Packing slip no. |
OrderReferenceNo |
BatchOrderCustSupOrderNo |
Ord.CSOrdNo |
Cust/suppl. order no. |
I10 |
C |
Customer’s order no. Or order ref. EDI interpreter |
CaseNumber |
BatchCaseNumber BatchOrderR3-6 BatchOrderR7 BatchOrderR8-12 BatchOrderRequisition |
-- Ord.R3-R6 Ord.R7 Ord.R3-R6 Ord.ReqNo |
Organisational unit 8-12 3-6 Organisational unit 7 Organisational unit 8-12 8-12 Requisition no. |
I10 I10 S40 S10 S20 |
O |
Case number/Agreement number/Contract number Here you can enter one of the organisational units or requisition no. from the order. By default nothing is displayed here. Organisational unit 1-6 are numerical if required otherwise R7 is 40 characters and R8-112 are 10 characters Requisition no. 20 characters |
BatchOrderR3-6 |
Organisational unit 3 -6 |
I10 |
O |
Organisational unit 3-6 can be included if required. |
||
BatchOrderR7 |
Organisational unit 7 |
S40 |
O |
Organisational unit 7 can be included if required. |
||
BatchOrderR8-12 |
Organisational unit 8 -12 |
S10 |
O |
Organisational unit 8-12 can be included if required. |
||
OrderDate |
BatchOrderDate |
Ord.OrdDt |
Order date |
D8 |
O |
Order date |
DeliveryDate |
BatchOrderDeliveryDate |
Ord.DelDt |
Required del. date |
D8 |
O |
Delivery date |
DeliveryTerms |
BatchOrderDeliveryTerms |
Ord.DelTrm |
Delivery terms |
I10 |
O |
Delivery terms ( EXW,FOB,DDU…..) INCOMTERMS abbreviations are therefore used here. Separate field for Delivery terms: INCOTERM? Or use Name or Description for this? |
DeliveryMethod |
BatchOrderDeliveryMethod |
Ord.Delmt |
Delivery method |
I10 |
O |
Delivery method |
OrderReceivedBy |
BatchOrderOrderReceivedBy |
Ord.SelBuy -> Actor.Nm (EmpNo) |
Name From Associates (Empl. no.) |
S40 |
O |
Order recipient |
DepartmentNo |
BatchOrderR1 |
Ord.R1 |
Organisational unit 1 |
I10 |
O |
Department no. If you want to use one of the 11 other organisational units, this only has to be done in the form. Merk: The field must be able to take up to 40 R7 characters at the
recipient.
|
ProjectNo |
BatchOrderR2 |
Ord.R2 |
Organisational unit 2 |
I10 |
O |
Project no. If you want to use one of the 11 other organisational units, this only has to be done in the form. Merk: The field must be able to take up to 40 R7 characters at the
recipient.
|
TotalVATBasisAmount |
BatchOrderVATBasisAmount |
Special macro Total net amount for order lines that are taxable |
F14 |
O |
Total amount liable to VAT |
|
TotalVATFreeAmount |
BatchOrderFreeAmount |
Special macro Total net amount for order lines that are taxable |
F14 |
O |
Total amount free of VAT |
|
TotalAmountInclVAT |
BatchOrderAmountIncVAT |
Special macro Total gross amount including all taxes |
F14 |
O |
Sum total incl. VAT |
|
<Buyer> |
Buyer |
X20 |
O |
Customer / Buyer |
||
ID |
BatchOrderBuyerID |
Ord.CustNo |
Cust. no. |
I10 |
C |
Buyer's ID |
Name |
BatchOrderBuyerName |
Ord.Nm |
Name |
S40 |
O |
Buyer's name |
Address1 |
BatchOrderBuyerAddress1 |
Ord.Ad1 |
Address 1 |
S40 |
C |
Buyer's street address |
Address2 |
BatchOrderBuyerAddress2 |
Ord.Ad2 |
Address 2 |
S40 |
C |
Buyer's street address |
Address3 |
BatchOrderBuyerAddress3 |
Ord.Ad3 |
Address 3 |
S40 |
C |
Buyer's street address |
PostCode |
BatchOrderBuyerPostCode |
Ord.PNo |
Post code |
S10 |
C |
Buyer's post code |
PostOffice |
BatchOrderBuyerPostOffice |
Ord.PArea |
Postal area |
S40 |
C |
Buyer's postal area |
Reference |
BatchOrderYourRef |
Ord.YrRef |
Your ref. |
S40 |
C |
Your ref. from the order head |
</Buyer> |
/Buyer |
X20 |
||||
<DeliveryParty> |
DeliveryParty |
X20 |
O |
Recipient |
||
ID |
BatchOrderDeliveryPartyID |
Ord.DelActNo |
I10 |
C |
Recipient ID |
|
Name |
BatchOrderDeliveryPartyName |
Ord.DelNm |
S40 |
O |
Recipient's name |
|
Address1 |
BatchOrderDeliveryPartyAddress1 |
Ord.DelAd1 |
S40 |
C |
Recipient's street address |
|
Address2 |
BatchOrderDeliveryPartyAddress2 |
Ord.DelAd2 |
S40 |
C |
Recipient's street address |
|
Address3 |
BatchOrderDeliveryPartyAddress3 |
Ord.DelAd3 |
S40 |
C |
Recipient's street address |
|
PostCode |
BatchOrderDeliveryPartyPostCode |
Ord.DelPNo |
S10 |
C |
Recipient's post code |
|
PostOffice |
BatchOrderDeliveryPartyPostOffice |
Ord.DelPArea |
S40 |
C |
Recipient's postal area |
|
</DeliveryParty> |
/DeliveryParty |
X20 |
||||
</OrderBreak> | ||||||
<OrderLine> |
OrderLine |
X20 |
M |
Order line One or more lines can follow each other |
||
OrderNumber |
2952 |
OrdLn.OrdNo (2952) |
Order no. |
I10 |
M |
Order number |
OrderLineNumber |
3028 |
OrdLn.Srt (3028) |
Sort seq. no. |
I10 |
M |
Order line number Sort seq no. is used here instead of the original line no. so that the line can appear in the sequence shown on screen unless there is other sorted. Can be replaced with Line no. (Ord.LnNo) to display the original line no. |
OriginalLineNumber |
2953 |
OrdLn.LnNo (2952) |
Line no. |
I10 |
M |
Original line number from the order is created (customer's original line no.) |
ReferenceNumber |
5977 |
Ord.CSOrdNo (5977) |
Cust/suppl. order no. from Orders |
I10 |
C |
Customer's reference no./purchase no. |
DespatchAdviceNo |
5067 |
Ord.PacNo (5067) |
Packing slip no. from Orders |
I10 |
C |
Packing slip number from the order head Only the last run number will be shown here. |
<Item> |
Item |
X20 |
C |
Item information Only used without Text. Text is ignored as <Item> is also used. |
||
EANArticleNumber |
7562 |
Ord.EANItmNo (7562) |
Bar code |
S13 |
M |
Item's EAN13 number This requires that the barcode field is used in order registration |
ArticleNumber |
2613 |
OrdLn.ProdNo (2959) |
Product no. |
S40 |
C |
Supplier's item number |
AltArticleNumber |
-- |
C |
Supplier's alternative item number This field is used for NOB and other industry-related product ID. Here you must use a free field on the order line transferred from Product, such as Trans. information 1-4 or you can import a field from the product such as Information 1-8 Merk: It is important that you also retrieve this field at the same
time in print setup.
|
|||
PLUNumber |
-- |
C |
Item's PLU number Here you must use a free field on the order line transferred from Product, such as Trans. information 1-4 or you can import a field from the product such as Information 1-8 Merk: It is important that you also retrieve this field at the same
time in print setup.
|
|||
ArticleDescription |
2961 |
OrdLn.Descr (2961) |
Description |
S60 |
C |
Item description |
MainGroupNo |
3000 |
OrdLn.ProdTp (3000) |
Product type 1 |
I10 |
C |
Main group Can be replaced with other product related fields like Gr.1-12 or Product category 1-6 etc. IntermediateGroupNo |
5027 |
OrdLn.ProdTp2 (5027) |
Product type 2 |
I10 |
C |
Intermediate group Can be replaced with other product related fields like Gr.1-12 or Product category 1-6 etc. |
|
SubGroupNo |
6105 |
OrdLn.ProdTp3 (6105) |
Product type 3 |
I10 |
C |
Subgroup Can be replaced with other product related fields like Gr.1-12 or Product category 1-6 etc. |
ProductNo |
2991 |
OrdLn.R3 (2991) |
Organisational unit 3 |
I10 |
C |
Product group R3 is selected here by default and can be changed to other organisational units or other group fields like Gr.1-12 etc. |
DepartmentNo |
2989 |
OrdLn.R1 (2989) |
Organisational unit 1 |
I10 |
C |
Department number If you want to use one of the 11 other organisational units, this only has to be done in the form. Merk: The field must be able to take up to 40 R7 characters at the
recipient.
|
ProjectNo |
2990 |
OrdLn.R2 (2990) |
Organisational unit 2 |
I10 |
C |
Project number If you want to use one of the 11 other organisational units, this only has to be done in the form. Merk: The field must be able to take up to 40 R7 characters at the
recipient.
|
EmployeeNo |
2955 |
OrdLn.EmpNo (2955) |
Empl. no. |
I10 |
C |
Employee number |
QuantityOrdered |
4721 |
OrdLn.4721 |
Total quantity |
F14 |
M |
Number of units ordered |
QuantityDelivered |
2968 |
OrdLn.NoInvoAb (2968) |
Quantity |
F14 |
M |
Number of units delivered |
QuantityRemainder |
4759 |
OrdLn.4759 |
Outstanding |
F14 |
M |
Number of units marked as outstanding for normal orders |
QuantityRemainderDirect |
4950 |
OrdLn.4950 |
Balance to pick |
F14 |
O |
Number of units marked as outstanding for direct orders |
Unit |
5590 Alt. 3068 |
OrdLn.Un -> Unit.Descr (Un) (5590) OrdLn.Un -> Unit.EDIUn (5590) |
Description From Unit (Unit) EDI unit From Unit (Unit) |
S40 |
M |
Unit (PCE, KGM, LTR, MTQ?) Field 3068, which is the EDI from the unit table, can also be used so that it agrees with international standards and not the description in the unit table. This must be changed in Print setup and the imp file if it is to be changed. |
UnitQuantity |
5938 |
OrdLn.NoUn (5938) |
F14 |
M |
CLP_Invoiced * CLP_QuantityPerUnit |
|
SerialNumber |
3714 |
OrdLn.Ser (3714) |
Serial no. |
S22 |
C |
Serial no. - MUST use one line serial number Merk: If the serial number table is used, nothing will be shown in
this field. If the option in the Print dialog box to retrieve
Serial no. from the serial number table is selected, these will
appear as a free text line.
|
UseByDate |
3716 |
OrdLn.DurDt (3716) |
Use by date |
D8 |
C |
Use by date |
GrossPrice |
2975 |
OrdLn.Price (2975) |
Price |
F14 |
M |
Basic price before discounts and taxes.
Merk: Not the same as
GrossPrice in RG!
|
NetPrice |
4476 |
Ordln.4476 |
Price after discount |
F14 |
M |
Net price including discounts and taxes e.g. VAT
Merk: Not the same
as NetPrice in RG!
|
GrossAmount |
5621 |
OrdLn.5621 |
Amount before discount |
F14 |
M |
Amount before taxes and discounts. |
NetAmount |
2980 |
OrdLn.2980 |
Amount |
F14 |
M |
Amount including taxes and discounts, e.g. VAT |
DeliveryDate |
OrdLn.CfDelDt (3736) |
Confirmed delivery date |
M |
Confirmed delivery date |
||
<Discount> |
Discount |
X20 |
C |
Discount In Visma Business you can operate with 6 discount % fields and 6 discount amount fields. In a simple solution, all these are combined into a special calculation and show the total. This is found in a special macro in the imp file. If on the other hand you want to present each individual discount, the imp file and invoice setup must be changed. The same values will be presented in the TotalDiscount segment. |
||
AmountPrUnit |
XML_AmountPrUnit |
Price after discount (4476)- Price (2975) |
Special macro |
F14 |
M |
Amount per unit |
Amount |
XML_Amount |
Amount before discount (5621) - Amount (2980) |
Special macro |
F14 |
M |
Line amount |
Percentage |
XML_Percentage |
(1 - (Price after discount (4476) / Price (2975))) * 100 |
Special macro |
F14 |
M |
Percentage |
BasisAmount |
5621 |
OrdLn.5621 |
Amount before discount |
F14 |
M |
Basis for calculating discount |
</Discount> |
/Discount |
X20 |
||||
<Discount> Detaljert alternativ |
Discount |
X20 |
C |
Detailed discount alternative For each discount you want to present for this, a <Discount> tag is defined and within it the external number must be defined for the respective discount no. and the fields must be called up into the invoice setup. Here is an example of discount 1 and in the imp file c,Discount,30,20,,,,,,,,,,X, c,0,31,14,2,,AmountPrUnit,,,,,,,F, c,2977,32,14,2,,Amount,,,,,,,F, c,2976,33,14,2,,Percentage,,,,,,,F, c,5621,34,14,2,,BasisAmount,,,,,,,F, c,/Discount,35,20,,,,,,,,,,X, c,Discount,36,20,,,,,,,,,,X, c,0,37,14,2,,AmountPrUnit,,,,,,,F, c,2979,38,14,2,,Amount,,,,,,,F, c,2978,39,14,2,,Percentage,,,,,,,F, c,5621,40,14,2,,BasisAmount,,,,,,,F, c,/Discount,41,20,,,,,,,,,,X, |
||
Amount |
2977 2979 6765 6768 6771 6774 |
OrdLn.2977 OrdLn.2979 OrdLn.6765 OrdLn.6768 OrdLn.6771 OrdLn.6774 |
Disc. amount Disc. amount 2 Disc. amount 3 Disc. amount 4 Disc. amount 5 Disc. amount 6 |
F14 |
M O |
Discount amount 1-6 A set of discount tags is created for each discount set to be included, which contains AmountPrUnit, Amount, Percentage and BasisAmount. See above example. One <Discount> tag must always be created, more are optional. Merk: In Distributed discounts there is an alternative for the
presentation of total discounts granted per line.
|
Percentage |
2976 2978 6764 6767 6770 6773 |
OrdLn.2976 OrdLn.2978 OrdLn.6764 OrdLn.6767 OrdLn.6770 OrdLn.6773 |
Disc. % Discount 2 % Discount 3 % Discount 4 % Discount 5 % Discount 6 % |
F14 |
M |
Percentage 1-6 |
BasisAmount |
5621 |
OrdLn.5621 |
Amount before discount |
F14 |
M |
Basis for calculating discount This field must be repeated in each <Discount> tag and is the same. Merk: Chain discounts will not be processed correctly with regard to
the discount % basis.
|
</Discount> |
/Discount |
X20 |
||||
<TotalDiscount> |
TotalDiscount |
X20 |
Discount In Visma Business you can operate with 6 discount % fields and 6 discount amount fields. In a simple solution, all these are combined into a special calculation and show the total. This is found in a special macro in the imp file. If on the other hand you want to present each individual discount, the imp file and invoice setup must be changed. This field can be used together with detailed discount and used on the printout. |
|||
AmountPrUnit |
XML_AmountPrUnit |
Price after discount (4476)- Price (2975) |
Special macro |
F14 |
M |
Amount per unit |
Amount |
XML_Amount |
Amount before discount (5621) - Amount (2980) |
Special macro |
F14 |
M |
Line amount |
Percentage |
XML_Percentage |
(1 - (Price after discount (4476) / Price (2975))) * 100 |
Special macro |
F14 |
M |
Percentage |
BasisAmount |
5621 |
OrdLn.5621 |
Amount before discount |
F14 |
M |
Basis for calculating discount |
</TotalDiscount> |
/TotalDiscount |
X20 |
||||
<SpecialDuty> |
SpecialDuty |
X20 |
C |
Special duty |
||
DutyBasisType |
-- |
M |
Basis type: 1 = Amount, 2 = Weight/Volume, 3 = Number |
|||
</SpecialDuty> |
/SpecialDuty |
|||||
<VAT> |
VAT |
X20 |
C |
VAT |
||
VATAmount |
4197 |
OrdLn.VatAm (4197) |
VAT Amount |
F14 |
M |
VAT amount for the line Merk: This field is only shown on the printout for net orders and is
not saved in the order line.
|
VATPercentage |
XML_VATPercent |
XML_VATPercent |
Special macro |
F14 |
M |
VAT percentage |
VATBasisAmount |
XML_VATBasisAmount |
XML_VATBasisAmount |
Special macro |
F14 |
M |
VAT basis |
</VAT> |
/VAT |
X20 |
||||
<Measurement> |
Measurement |
X20 |
O |
Dimensions of the goods Each dimension can have the attribute unit=..a3. E.g. <TotalVolume unit=MTQ>....... |
||
GrossWeight |
5941 |
OrdLn.5941 |
Gross weight |
F14 |
M |
Gross weight |
NettoWeight |
5939 |
OrdLn.NWgtL (5939) |
Net weight |
F14 |
C |
Net weight (NB: Required since the information is to be used for customs clearance) |
Volume |
5944 |
OrdLn.VolL (5944) |
Volume |
F14 |
M |
Volume |
</Measurement> |
/Measurement |
X20 |
||||
FreeText |
FreeText1 |
A20 |
O |
Free field 1 Definition to eInvoice for Posten for invoice line. To eInvoice for Posten it is permitted from Visma Business that the customer can define 5 free fields that can be printed on the invoice form. This must be arranged with Posten before it can be used. |
||
FreeText |
FreeText2 |
A20 |
O |
Free field 2 |
||
FreeText |
FreeText3 |
A20 |
O |
Free field 3 |
||
FreeText |
FreeText4 |
A20 |
O |
Free field 4 |
||
FreeText |
FreeText5 |
A20 |
O |
Free field 5 |
||
</Item> |
/Item |
X20 |
||||
</OrderLine> |
/Orderline |
X20 |
||||
</OrderLines> | ||||||
</Invoice > | ||||||
</eInvoice> | ||||||
</eInvoiceEnvelope> |