Recalculation, release and partial posting
Turn recalculation on release on
- Open Surcharge Automation Setup.
- In the group Behaviour, switch on Calc. Doc. Surch. on Release — the master switch.
- Switch on Calc. Sales Surch. on Release for sales documents and Calc. Purch. Surch. on Release for purchase documents.
- Release a document: the surcharges are calculated again before the release continues.

Example. JD changes the percentage of the FREIGHT rule from 8.75 to 9.00. AS opens the released order of Adatum Corporation, chooses Recalculate Surcharges, and the line moves to 112.50; releasing the order does the same on its own.
What happens. On release the app recalculates the item surcharge lines from their item lines and matches the document surcharge lines again — dates, customer or group, tiers. Recalculate Surcharges on an open order runs the same calculation at once.
Prorate a surcharge over partial invoices
- Open Surcharge Automation Setup.
- In the group Behaviour, switch on Recalc. Surch. Partial Posting.
- Switch on Auto Delete Zero Surcharge so that a line that falls to zero disappears.
- Invoice the order in parts. Each partial invoice carries its share of the surcharge; the last one takes the remainder.

Example. The order of 1,250.00 is invoiced in two parts. The first invoice covers 980.75 and carries 85.80 of the 109.38 surcharge; the second invoice carries the remaining 23.58, so the two together are exactly the surcharge of the order.
What happens. Before posting, each document surcharge line is reduced to its share of the lines being invoiced; the rest stays on the order. The last partial invoice takes the remainder. With the switch off, the full surcharge posts with the first partial invoice.
