Your invoices, with what each one cost and made.
The invoice total is in the currency it was raised in. Revenue, cost and margin are in the books’ own currency: revenue at the rate on the invoice date, cost at the rate each lot arrived at.
No invoices yet
Raise one below. It ships the stock, posts the receivable and the revenue, and costs the goods from the lots they came out of — in one entry.
The whole invoice is one entry, so the receivable, the revenue, the tax and the cost of the goods cannot disagree. If any line is short of stock, nothing is written.