When generating trade documents on the basis of warehouse documents, determination of due date in trade documents by the system depends on whether the warehouse document has been generated from an order:
- if a warehouse document has been generated from an order, payment conditions of an invoice/receipt generated from this warehouse document are retrieved, by default, from the warehouse document.
- if a warehouse document has been generated from and order, payment conditions of an invoice/receipt generated from this warehouse document are retrieved from the order – the settings derived from the warehouse document are not included
Warehouse documents do not generate payments. However, it is possible to generate payment conditions, i.e. payment method and due date, in SOR documents and their corrections.
The process of setting due date on the basis of EOM formula during document generation is described in Due date at the end of the mont – EOM.
In case of generating advance invoices from orders, payment method in generated document is set on the basis of:
- payment method from order header (source document) – if it has been indicated in the order
- payment method from customer form – if payment method <Different> is indicated in the order
In the case of such a generation, the number of days is always set as 0, so due date in advance invoices is always equal to the date of issue of a document.