I run Focus 6 ERP with materials arriving from international suppliers, so every Material Receipts Note must capture more than the base purchase price. I need a custom formula inside the Voucher Wizard that automatically folds in shipping and handling charges, customs & import duties, plus real-time currency exchange movements, and then updates the running average cost of each item. Once this formula is in place, my team reposts vouchers roughly every hour to refresh inventory. When that repost action fires, I want the new logic to recalculate and lock the correct average cost across all existing stock—no manual touch-ups later, no lingering variances. Deliverable: a tested, plug-and-play formula (or script, if Focus 6 requires one) with clear deployment steps and a quick validation guide so I can compare system output against a manual sample and confirm accuracy. If you’ve tuned average-cost routines in Focus 6 before, even better; show me your approach and let’s get this live.