Track on-behalf payments for customers

Guide information

Audience: Accounting, Sales
Time required: about 25 minutes
Outcome: The customs duty and quarantine fee Hai Long pays on behalf of a customer is tracked as a separate collection, kept out of the shipment’s gross profit, and the amount paid out is cleared against the money received from the customer.

Requirements

This tutorial requires the installation of the following applications/modules:

  • Onbehalf Payment in Freight (installs Sale On-Behalf Management and On-behalf Payments automatically - the second one is what actually records the disbursement payment in Step 2)

A forwarder regularly pays money to a customs office, a quarantine authority or a carrier that the customer - not the forwarder - actually owes. If that amount is invoiced like an ordinary service line, it picks up a service VAT rate it should not have and inflates the shipment’s gross profit with revenue the forwarder never earned. Mark On-Behalf keeps that amount out of the customer invoice and out of gross profit, and records it as a separate amount still to be collected. If a term below is new to you, see the Freight forwarding glossary.

Running scenario: on the FCL import shipment for Minh Phat Engineering (container CSNU8123450, see Import a full container load by sea), Hai Long Logistics pays the import duty and the quarantine fee to Cơ quan Hải quan & Kiểm dịch Hải Phòng so the container can clear customs: import duty 65,000,000 VND plus quarantine fee 13,000,000 VND, a combined 78,000,000 VND that Hai Long must recover from Minh Phat Engineering afterwards.

Before you start

  • Sale On Behalf is turned on in the Freight Features section of Freight Forwarding ‣ Configuration ‣ Settings.

  • The Minh Phat Engineering shipment is Confirmed and has a sale order linked to it, priced in VND. Create Quotation on the shipment reuses its three charge lines: Ocean Freight 29,900,000 VND, THC 3,200,000 VND and CIC 100 USD converted to 2,600,000 VND at the agreed rate of 26,000, a total of 35,700,000 VND. The two service invoices, 33,100,000 VND and 100 USD, are posted and linked to this order; do not invoice the services again. See Import a full container load by sea.

  • The customs office or quarantine authority and the customer already exist as contacts. On the Accounting tab of each contact, Account Other Receivable and Account Other Payable hold the accounts that on-behalf amounts are booked to; a contact without them uses its standard receivable and payable accounts instead.

  • Tuan, the accountant in this example, needs User: All Shipments (edit the shipment), Sales: User: All Documents (edit the order) and the Accounting right Invoicing (create and post invoices and payments). Step 4 also needs the Accounting right Bookkeeper. Your administrator sets them under Settings ‣ Users & Companies ‣ Users.

Step 1: Mark the on-behalf amount on the sale order

Marking the line before you invoice anything is what removes it from the customer invoice and from gross profit. Adding it as an ordinary line first and fixing it later means correcting an invoice that has already gone out.

  1. Go to Sales ‣ Orders ‣ Orders and open the sale order of the Minh Phat Engineering shipment.

  2. In Order Lines, open the column options (the sliders icon at the top-right of the list) and turn on Mark On-Behalf and Collection Partner - both are hidden by default.

  3. Add a new line:

    • Product: Import Duty & Quarantine Fee (Disbursement).

    • Mark On-Behalf: ticked.

    • Collection Partner: Cơ quan Hải quan & Kiểm dịch Hải Phòng - the party the duty and fee are owed to. Never pick the customer who pays: the amount is not the customer’s revenue, it belongs to the third party.

    • Quantity: 1, Unit Price: 78,000,000 VND.

Minh Phat Engineering sales order with the three service lines and the on-behalf line Import Duty & Quarantine Fee (Disbursement), Mark On-Behalf ticked and the customs and quarantine authority as Collection Partner; total order value is VND 113,700,000.

Warning

Ticking Collection Partner without ticking Mark On-Behalf first is rejected on save: “You cannot select a collection partner for a non-onbehalf line.” Tick Mark On-Behalf first, then fill in Collection Partner.

The Collection Partner also decides how the charge behind the line is handled, so a wrong choice later changes what the purchase side does:

  • A charge with an agent is an on-behalf charge. The agent follows the Collection Partner on the line: change or clear the partner and the agent changes with it.

  • To turn the line back into an ordinary resale line, clear the Collection Partner and untick Mark On-Behalf; the agent is taken off its charge.

  • A charge cannot have both a vendor and an agent. Marking a line on-behalf is rejected while its charge still has a vendor.

  • An on-behalf line with no Collection Partner yet does not generate a purchase order.

After you save:

  • The line’s quantity to invoice is zero - it never appears when you click Create Invoice on this order, now or later.

  • Click Trackings on the shipment: the On Behalf Items panel of the tracking sidebar shows one row for this line. It reads in the company currency (USD in this guide), so 78,000,000 VND at the rate of 26,000 appears as Expected $ 3,000.00 and Collected $ 0.00, with Remaining $ 3,000.00 in red.

On Behalf Items panel of the Minh Phat Engineering shipment: Collected $0.00, Remaining $3,000.00 shown in red and Expected $3,000.00.

Tip

Step 1 is done when:

  • Clicking Create Invoice on the sale order does not include this line.

  • The On Behalf Items panel on the Minh Phat Engineering shipment shows Expected $ 3,000.00 for this line.

Step 2: Record the payment made to the customs and quarantine authority

This is money Hai Long actually pays out of its own bank account - it must be booked as a disbursement owed back by Minh Phat Engineering, not as a shipment cost, or the shipment’s cost figures will be wrong and nothing will remind Accounting to collect it back.

  1. Go to Accounting ‣ Vendors ‣ Payments and click New.

  2. Fill in:

    • Payment Type: Send.

    • Vendor: Cơ quan Hải quan & Kiểm dịch Hải Phòng.

    • Amount: 78,000,000 VND.

    • Date: 2026-11-10 - the disbursement date in this example.

  3. Tick On-Behalf Payment, which appears right under Amount. An On-behalf payment distribution tab appears on the form.

  4. On that tab, add a line: On-behalf of: Minh Phat Engineering, Amount: 78,000,000 VND. Percentage reads 100% and Transfer to Account shows the customer’s Other Receivable account.

Draft vendor payment of VND 78,000,000 to the customs and quarantine authority with On-Behalf Payment ticked and one distribution line for Minh Phat Engineering, 100 percent, transferred to the Other Receivable account.

Important

Nothing here reads Step 1’s amount automatically - the two mechanisms are independent (see Known limitations). If the amounts do not match, no error is raised; the mismatch only shows up later as a wrong Remaining balance in Step 3.

  1. Click Confirm.

After you confirm:

  • The payment moves to In Process, and a transfer entry books 78,000,000 VND as an Other Receivable under Minh Phat Engineering. The customs authority’s Other Payable account ends at zero.

  • The On-behalf Not Paid ribbon on the payment stays until Step 4 clears the receivable.

Tip

Step 2 is done when: the payment is In Process and Minh Phat Engineering’s Other Receivable account carries 78,000,000 VND, separate from any cost account of the shipment.

Step 3: Collect the money from the customer

The Sales Orders field on the customer payment is what triggers the system to build the distribution for you from Step 1’s on-behalf line. A payment recorded any other way for the same amount looks identical on the bank statement but never clears the Remaining balance on the shipment. The customer’s receipt in this example covers both the service charges and the 78,000,000 VND, at the agreed rate of 26,000 VND/USD.

  1. Go to Accounting ‣ Customers ‣ Payments and click New.

  2. Set Date to 2026-11-12, the receipt date in this example, and use the bank journal.

  3. In Sales Orders, select the sale order used in Step 1.

After you select the sale order:

  • Customer fills in from the order. With no earlier customer payment in this example, Amount is 113,700,000 VND: 35,700,000 for services plus 78,000,000 for the on-behalf line. Keep the full amount only when it matches the money actually received.

  • On-Behalf Payment ticks itself, and the distribution line (On-behalf of: the customs and quarantine authority, Amount: 78,000,000 VND) is created for you - you do not enter it by hand. The distribution names the Collection Partner, never the customer: a distribution line naming the paying customer is rejected.

  1. Click Confirm.

After you confirm:

  • The On Behalf Items panel shows Collected $ 3,000.00 and Remaining $ 0.00 in green.

  • The receipt books the 78,000,000 VND as collected for the Collection Partner: an Other Payable owed to the customs authority. Both this receipt and the payment of Step 2 still show the On-behalf Not Paid ribbon, because Minh Phat Engineering’s Other Receivable from Step 2 is still open.

  • The 35,700,000 VND service portion sits as an unmatched credit on Minh Phat Engineering’s receivable account. Reconcile it with the two posted service invoices: open each invoice and add the outstanding credit, or select the lines in Accounting ‣ Accounting ‣ Journal Items and use Actions –> Reconcile. Both invoices then read Paid.

Warning

The shipment panel is not proof that the disbursement has been reimbursed. Collected and a green Remaining only show that the order’s receipt carries the amount; the reimbursement receivable of Step 2 is cleared in Step 4.

Step 4: Clear the reimbursement receivable

The receipt owes the 78,000,000 VND to the customs authority, while the authority was already paid in Step 2. Moving that amount back to Minh Phat Engineering’s Other Receivable lets it offset the receivable of Step 2. This step needs the Accounting right Bookkeeper.

  1. Go to Accounting ‣ Accounting ‣ Journal Items and filter on the customs authority. Select its open Other Payable line of 78,000,000 VND (credit) created by the receipt.

  2. Click Actions –> Change Partner. Set Destination Partner to Minh Phat Engineering, check that To shows the customer’s Other Receivable account, then confirm the transfer.

  3. Filter on Minh Phat Engineering, select its two open Other Receivable lines (the debit of 78,000,000 VND from Step 2 and the credit just transferred) and click Actions –> Reconcile.

After you reconcile, the payment of Step 2 and the receipt both read On-behalf Paid.

Tip

Step 4 is done when: the two service invoices read Paid, the Other Receivable of Minh Phat Engineering and the Other Payable of the customs authority are both at zero, and the payment of Step 2 shows On-behalf Paid. The shipment panel reads Collected and a green Remaining $ 0.00 as well.

See also

Once this amount is settled, check the shipment’s remaining charges and overall margin: Record charges, invoice the customer, and bill vendors.

Decide how much of this to track

Option

Use when

What changes

Only Step 1 (sale order line)

You only need Ops and Sales to see the pending amount on the shipment, and Accounting will book the reconciling entry separately when the money actually moves

The On Behalf Items panel is accurate, but no Other Receivable/Other Payable entry is created automatically

Only Steps 2-4 (payment distribution)

Accounting only needs the books to be correct, and no one else needs to see the pending amount on the shipment

Posting the disbursement creates its accounting entries and Step 4 clears them. The On Behalf Items panel never shows this amount without a sale order line.

All four steps

Both the books and the shipment record need to be right - the usual case for money this size

You enter 78,000,000 VND on both the sale order and the payment; nothing in the system checks that the two match

Use all four steps only when company procedure requires both the shipment record and the accounting entries. This flow does not check that the sale-order amount equals the distributed payment amount, so reconcile the two amounts against supporting documents before posting. If the required accounting treatment is unclear, ask Accounting which steps to use before entering the transaction.

Known limitations

Step

What Viindoo does today

What you do instead

Recording the disbursement (Step 1 and 2)

The sale order line and the payment distribution are two separate mechanisms with no link and no amount cross-check between them

Enter the same amount on both, and note the tax/customs receipt number in the Chatter of both the sale order and the payment so the two can be traced back to each other later

Tracking recovery (Step 3)

The On Behalf Items panel counts an amount as Collected when it comes in through a payment linked to the order, or through a payment that matches the order’s invoice (a partial payment counts too). With several on-behalf lines for the same Collection Partner, the collected amount is shared between those lines

Collect this money through a payment with Sales Orders set to the order used in Step 1; a payment recorded any other way for the same amount may not be read by the panel

Reimbursement of an amount already paid out (Step 3)

The receipt books the on-behalf amount as owed to the Collection Partner; it does not clear the receivable of the disbursement by itself

Clear it with Step 4 once the receipt is posted

Field names

Collection Partner (Step 1) and On-behalf of (Step 2-3) sound alike but point in opposite directions - the first is who the money is ultimately owed to, the second is who Hai Long is recovering it from

Read each field’s own help text before filling it in; do not assume the two fields take the same partner

Troubleshooting

Saving the sale order line raises “You cannot select a collection partner for a non-onbehalf line.”

Symptom: the exact message above appears when saving the order.

Cause: Collection Partner was filled in before Mark On-Behalf was ticked on the same line.

Fix: tick Mark On-Behalf first, then fill in Collection Partner again.

Confirming the payment raises “You checked the On-Behalf Payment option but did not specify a partner…”

Symptom: “You checked the On-Behalf Payment option but did not specify a partner of which the payment was made on-behalf. Please specify one.”

Cause: On-Behalf Payment is ticked, but the On-behalf payment distribution tab has no line.

Fix: add at least one distribution line with a partner and an amount before confirming.

“The total on-behalf payment amount must not be greater than the payment amount.”

Symptom: the message above appears when saving the payment. A single line larger than the payment shows “The on-behalf payment percentage must be positive and less than or equal to 100%.” instead.

Cause: the distribution lines add up to more than the payment’s own Amount - for example, two lines of 40,000,000 VND against a payment of 70,000,000 VND.

Fix: correct either the payment Amount or the distribution line’s Amount so the distribution total stays within the payment.

“The on-behalf partner ‘…’ must not be of the same commercial entity as the payment’s.”

Symptom: the exact message above appears, naming the partner on the distribution line.

Cause: the distribution line’s partner is the same company as the payment’s own partner - for example, paying the customs authority but naming the customs authority again as the party being collected on behalf of, or recording the customer’s receipt on behalf of the customer.

Fix: the payment’s own partner and the distribution’s On-behalf of partner must be two different companies. In Step 2 the payment is to the customs and quarantine authority and the distribution is on behalf of Minh Phat Engineering; in Step 3 the receipt is from Minh Phat Engineering and the distribution is on behalf of the customs authority.

Remaining stays red although the customer already paid

Symptom: the On Behalf Items panel on the Minh Phat Engineering shipment still shows a red Remaining amount after Minh Phat Engineering’s transfer has landed.

Cause: the customer’s payment was recorded without the Sales Orders field set to Step 1’s sale order - a plain payment or one linked only to an unrelated invoice never reaches the on-behalf calculation.

Fix: cancel or adjust that payment and re-record it through Accounting ‣ Customers ‣ Payments with Sales Orders set to the sale order used in Step 1.