Regarding the different Defcodes XMSALE, HOMESALE, EXPSALE, EUSALE and VATSALE.
All documents as orders, invoices etc. are classified with a specific Defcode.
If it is a sale within the same country as your company it will be considered HOMESALE.
If sold to a country within the European Union, it will be considered EUSALE.
If sold to a country outside your own country and outside the EU it will be considered EXPSALE.
These are the default rules. It is possible to overrule this by changing the TAX-handling on a customer/supplier or a document : order/invoice.
If VAT/TAX-handling is set to YES (always include VAT/TAX), the document will be considered VATSALE.
If VAT/TAX-handling is set to NO (never include VAT/TAX), the document will be considered XMSALE.