1. Pull the freight and duty invoices. Forwarder invoices, customs declarations, broker bills.
2. Pull the GL actuals. Posted freight and duty entries from your accounting system.
3. Reconcile invoice vs GL. Flag anything posted but not invoiced or invoiced but not posted.
4. Pull the transfer orders. SKU, quantity, and value for every shipment.
5. Allocate freight and duty. Distribute each invoice across the SKUs that shipped, by value or by weight, your choice.
6. Output per-unit landed cost. SKU, base cost, allocated freight, allocated duty, total landed cost. Plus the reconciliation report for finance.