Grouping of items in sales order/outbound document recordsKCS: Cross Segments - TOTVS Backoffice (Protheus Line) - SIGAFAT (Billing) - Grouping of items in billing
When a given product is added to the Sales Order and it has references, such as Batch and Sub-batch, the information is registered in "N" lines in Table "SC9 - Sales Order Releases" and in Table "SD2 - Outgoing Invoice Items", in order to maintain data integrity and set up the proper relationships of each quantity with their respective reference.
Even if, for example, a sufficient quantity of the same product is available to meet an Order; however, it is apportioned by 2 distinct Batches or Sub-batches, generating 2 different records (2 lines) in SC9 (in order to list each quantity with its respective batch and perform the system integrations correctly).
Aviso |
---|
| Thus, you cannot group the quantities of the same product in the invoice when two or more records are generated in Table SC9 for registration of references (DANFE is based on data from Table SD2, so it is generated the same way). |
Yet Series and Address controls are not recorded in Tables SC9 and SD2, but in SDC. Thus, when releasing the Stock, the system automatically selects the Addresses and Series (based on the FEFO concept), generating only one line in SC9.
However, if manually released, it is imperative to manually select each Address/Series, then the release sequences C9_SEQUEN are generated in distinct lines of SC9. Likewise, if it is imperative to manually select each Address/Series (including "n" records for each address / series) when adding the order, they also proceed to SC9 and SD2 in different lines and are not grouped in the Invoice later.
Dica |
---|
| If you need to change the criteria, the RDMAKE of Danfe is open for customizations. Request your GAR, Service and Relationship Manager with TOTVS, for our Software Factory to develop a solution that meets your needs.
|
|