Post documents with surcharges
When you post documents that contain surcharges, the system performs additional calculations to ensure surcharge amounts reflect actual invoice quantities and amounts. The posting behavior varies based on the surcharge calculation method. The system updates the Quantity, Unit Price, or Direct Unit Cost field value, and recalculates item charge assignments to reflect only the quantities being invoiced.
The surcharge posting logic ignores the Auto Post Non-Invt. via Whse. field value on the Sales & Receivables Setup and Purchases & Payables Setup pages, because posting the full surcharge quantity during the first warehouse shipment or receipt is not supported. The system adjusts surcharge line quantities to match the quantities being invoiced, and does so only when you post the invoice.
Post documents with amount per weight surcharges
For surcharges with the Calculation Method field value set to Amount per Weight Unit, the system recalculates the surcharge quantity during invoice posting to reflect the actual invoice quantity.
The system performs the following calculation:
Invoice Surcharge Quantity = (Invoiced Quantity ÷ Ordered Total Quantity) × Original Order Total Gross Weight
Surcharge line price or cost changes on invoice posting
When the Threshold Basis field value is set to Qty. to Invoice, the system updates the surcharge line unit price or direct unit cost during invoice posting. This occurs when the total invoiced weight causes a different surcharge line to apply based on the minimum Weight. This ensures the surcharge rate aligns with the total weight of the invoice.
If you do not want the surcharge value to change based on the invoiced weight, set the Threshold Basis field value to Quantity in the surcharge configuration.
Post line surcharges
A line surcharge posts as shipped or received together with its parent item line. The posted shipment, receipt, invoice, and credit memo keep the link between the charge line and the parent item line.
You cannot undo a surcharge shipment or receipt on its own. Undo the parent item line. The system adjusts the surcharge lines with it. If you try to undo the surcharge line directly, the system returns: "You cannot undo a surcharge line directly. Undo the parent item line instead, and its surcharges will be adjusted automatically."
When a line surcharge has already been partially shipped or received, removing surcharge lines leaves the posted quantity in place. The system shows a message that only the unshipped or unreceived quantity is removed. For the message text, see Apply surcharges for documents.
Invoice from posted shipments or receipts
Document surcharges are not included on the shipment or receipt. They are calculated when you invoice.
You can create a sales invoice or a purchase invoice and use Get Shipment Lines or Get Receipt Lines. When you select an item line, the system also selects its linked line surcharge. When you select the surcharge line, the system also selects the parent item line.
The new invoice calculates its own document surcharge. When you post that invoice and the source order has no remaining quantity to invoice, the system deletes the document surcharge lines that were never shipped or received on the source order. Those lines are not left behind to be billed again.
Credit memos and return orders
Releasing a credit memo or a return order does not create new line surcharges. Document surcharges are still calculated when the document creation method is On Release. Use Get Posted Document Lines to Reverse. When you select the posted item line, the system also selects the linked line surcharge and copies it at the amount that was originally posted. The same selection works from a posted shipment, invoice, return receipt, credit memo, receipt, or return shipment.
If you then change the parent line quantity, the surcharge quantity changes with it. The Unit Price or Direct Unit Cost stays at the original amount. It is not recalculated from the surcharge setup, because a credit quantity is often lower than the quantity that was originally charged.
Editing Qty. to Invoice on the parent line updates Qty. to Invoice on the linked surcharge line in the same way.