LC Optify ERP
Optify ERP · Landed Cost Voucher

The price on the supplier invoice is not the item's true cost

A complete practical scenario showing how a trading company that imports its goods from abroad uses Optify ERP — with no additional development — to load freight, customs, clearance and transport costs onto item costs, and how this flows straight through to cost of goods sold and true gross profit.

Invoice price + International freight + Customs duties + Clearance + Inland transport = True item cost
175,000
EGP of import costs on a single shipment
65%
gross-profit inflation without the landed cost voucher
100%
ready out of the box — no custom development
Costs Capitalized
CAPITALIZED · MAT-LCV

1 · The Problem

What happens if import costs are not loaded onto the items?

In imports, freight, customs and clearance charges usually arrive after the goods are received, are paid to several different parties, and are sometimes in currencies different from the supplier invoice. Ignoring these costs, whether deliberately or by oversight, distorts three financial statements at once:

▤ Inventory on the balance sheet

It appears below its true value, because the valuation rate is limited to the invoice price and leaves out the cost of getting the goods to the warehouse.

◑ Cost of goods sold (COGS)

It appears lower than reality at the time of sale, producing an inflated, unreal gross profit on imported goods.

✕ The accounting matching principle

Import costs are booked as a full expense in the period they are paid, instead of being released gradually as the goods are actually sold.

The system closes this gap with a single document built for exactly this purpose: the Landed Cost Voucher, which is the focus of this entire document.

2 · One-Time Setup

Steps configured only once, before the first import

All of these settings already exist in the standard system screens — no external development is needed.

Currencies and exchange rates
Currency Exchange
A record for each (from currency / to currency / date / exchange rate) with the For Buying and For Selling flags. The system uses the latest dated exchange rate when converting to the base currency.
Company base currency
Company Settings → Default Currency
Example: the Egyptian pound (EGP). All stock values and entries are also stored in the base currency, in fields that start with Base….
Default accounts
Company Settings
Default Inventory Account · Default Expense Account · Default Payable Account
Import expense accounts
Chart of Accounts
A separate account for each type of expense (international freight, customs, clearance, inland transport, marine insurance…).
Warehouses
Warehouses
A receiving warehouse (Accepted) and a rejected-goods warehouse (Rejected).
Items and suppliers
Items · Suppliers
The unit of measure and conversion factor for each item, and a default expense account can be linked at the item level itself. Plus the transaction currency for each foreign supplier.
⚠ Strict rule: expense accounts must be leaf accounts, not group accounts. The system explicitly rejects the voucher if a group account is selected.

3 · The Complete Document Flow

From purchase commitment to cost of sales — four stations and one entry that ties them together

The Landed Cost Voucher is not a standalone document, but an intermediate link that connects receiving the goods to recording the cost of selling them.

Purchase Order PO Contract only — no entries Goods Receipt Note Purchase Receipt Stock in + GL entries at initial valuation rate Landed Cost Voucher LCV · Shipping & Landing Raises inventory cost and creates new GL entries MAT-LCV-YYYY-##### Purchase Invoice PINV Liability to the supplier Delivery / Sales Invoice Delivery Note / Sales Invoice COGS at the landed cost

Read from left to right · the voucher is the link that connects receipt to sale

1

Purchase Order

Recorded in the name of the foreign supplier, in a foreign currency (for example USD) with a reference exchange rate. It produces no stock or accounting effect — it is only a contractual commitment and a reference for the other documents.

2

Goods Receipt Note — the moment stock comes in

On posting, the system automatically performs four steps: it increases the actual quantity in the warehouse, increases the stock value by the line amount in the base currency, recalculates the valuation rate using the weighted average, then creates a stock ledger entry and general ledger entries (debit inventory / credit supplier).

Taxes and charges inside the receipt itself: the Consider Tax or Charge for field sets the effect: Valuation (valuation only) · Total (document total only) · Valuation and Total (both together). If a charge is known at the time of receipt and is owed to the same supplier, it is loaded directly from here. But customs, clearance and freight charges that are paid to other parties or become known later — the majority in imports — belong properly in the landed cost voucher.
3

Landed Cost Voucher The heart of the scenario

Path: Stock → Landed Cost Vouchers → New. The document number is generated automatically in the pattern MAT-LCV-YYYY-#####.

1 Voucher details

Posting date, the basis for distributing charges, and total charges in the base currency (calculated automatically).

2 Selecting the target documents

Filter by document type, supplier, purchase order number and date range — with the option to select more than one document in a single voucher for a shipment that arrived on more than one receipt.

3 Items of the selected documents

Once selected, the system fetches the item lines automatically (code, description, quantity, rate, amount) into a table that charges can be loaded onto.

4 Charges table

A line for each expense: the expense account, its currency and exchange rate, the description, and the amount in the account currency and in the base currency.

5 · Basis for distributing charges across items

OptionFormula applied to each itemWhen to use it
QuantityItem share = total charges × (item quantity ÷ total quantities)Charges tied to volume or weight: transport, handling
AmountItem share = total charges × (item value ÷ total values)Charges proportional to value: ad valorem customs, insurance
ManualYou enter each item's share yourself in the Applicable Charges columnWhen the customs category differs from one item to another
The distribution is recalculated instantly on screen when you change the basis or edit any charge amount.
4

Purchase Invoice

It records the final financial liability to the foreign supplier, separate from the charge-loading movement that was already handled through the landed cost voucher.


4 · What exactly happens on posting?

One effect that cascades through four layers of system data

These are the actual formulas the system executes the moment the voucher is posted — not a theoretical simplification.

A · PurchaseReceiptItem

The original purchase document line

PurchaseReceiptItem.LandedCostVoucherAmount += item_share

The effect of the landed cost stays visible and traceable on the original document, and accumulates if more than one voucher is loaded against the same receipt.

▼
B · Stock Ledger Entry

Stock ledger entry

IncomingRate += item_share ÷ quantity ValuationRate += item_share ÷ quantity after transaction StockValue += item_share StockValueDifference += item_share
▼
C · WarehouseItem

The item's balance in the warehouse

StockValue += item_share ValuationRate = StockValue ÷ ActualQty

This is the new loaded valuation rate that cost of sales will be calculated with later.

▼
D · GL Entries

General ledger

The original debit entry (the inventory entry of the purchase document) is raised by the loaded charges, and a credit entry is created for each expense account, distributed in proportion to that document's share. The new entries are stamped with the number and date of the original purchase document, with the voucher number written in the Remarks field — so the effect stays traceable in the General Ledger report.

Dr. Stock In Hand ........................................ xxx Cr. International Freight ................................ xx Cr. Customs Duties ...................................... xx Cr. Clearance Expenses .................................. xx Cr. Inland Transport .................................... xx

In other words, import costs leave the income statement and are capitalized inside inventory, and turn into an actual expense only when the goods are sold.


5 · A Complete Worked Example

"Al Nour Trading" imports water pumps from a Chinese supplier

Base currency: the Egyptian pound (EGP) · Purchase order PUR-ORD-2026-00041

5-1 · Receipt MAT-PRE-2026-00087 — exchange rate 48.50

ItemQuantityRate (USD)Value (USD)Value (EGP)
ITM-A — Water pump 0.5 HP600106,000291,000
ITM-B — Water pump 1 HP400208,000388,000
Total1,000—14,000679,000

Valuation rate immediately after receipt (assuming no prior balance): ITM-A = 291,000 ÷ 600 = 485.00 EGP/unit · ITM-B = 388,000 ÷ 400 = 970.00 EGP/unit

5-2 · Landed Cost Voucher MAT-LCV-2026-00019

Expense accountDescriptionAmount (EGP)
International freightSea freight bill of lading60,000
Customs dutiesCustoms release certificate90,000
Clearance expensesCustoms broker fees15,000
Inland transportTransport from the port to the warehouse10,000
Total charges175,000

Distribution basis chosen: Amount — because customs here are ad valorem

ITM-A
75,000 EGP
42.857%
ITM-B
100,000 EGP
57.143%
For comparison only — had the Quantity basis been chosen instead of Amount, the distribution would have been completely different:
ITM-A
105,000 EGP
60%
ITM-B
70,000 EGP
40%
Amount basis (actually applied) Quantity basis (for comparison only)

This shows why choosing the distribution basis is a real accounting decision, not a cosmetic detail on the screen.

5-3 · Valuation rate after loading

ItemValue before+ ChargesValue afterQuantityNew valuation rateIncrease
ITM-A291,00075,000366,000600610.00+25.8%
ITM-B388,000100,000488,0004001,220.00+25.8%

5-4 · The resulting journal entry

Dr. Stock .............................................. 175,000 Cr. International Freight ................................ 60,000 Cr. Customs Duties ...................................... 90,000 Cr. Clearance Expenses .................................. 15,000 Cr. Inland Transport .................................... 10,000

6 · The Impact on Cost of Goods Sold

Selling 200 units of ITM-A at EGP 800 — a direct comparison

When the delivery note or sales invoice is posted, the system reads the item's current valuation rate in the warehouse and records cost of sales with it automatically, then reduces the quantity and value in the warehouse by the same amount.

✕ Without a landed cost voucher

Revenue160,000
Cost of sales (200×485)97,000
Gross profit63,000
Gross profit margin39.4%
Import expenses on the income statement175,000 in one go
Remaining stock value582,000
True
cost

✓ With the landed cost voucher

Revenue160,000
Cost of sales (200×610)122,000
Gross profit38,000
Gross profit margin23.8%
Import expenses on the income statement0 — capitalized in inventory
Remaining stock value732,000
Without loading
39.4%
Gross profit
With loading
23.8%
True gross profit
Bottom line: without loading, the statements show a gross profit 65% higher than the truth on the goods sold, while the current period absorbs the entire import cost even though 80% of the goods are still in the warehouse. The landed cost voucher corrects both sides at the same time.

7 · Verifying the Results in the System

Every number in this document can be traced in a real report

▤

Stock Balance / Item Warehouse Report

The new valuation rate for each item in each warehouse.

≣

Stock Ledger Report

The item's movement entry by entry, and the voucher's effect on it.

§

General Ledger Report

The resulting expense and inventory entries, shown under the purchase document number with the voucher number in the remarks.

=

Trial Balance Report

The balance of the accounts after posting.

%

Profit and Loss Statement

The effect of loading on actual gross profit.

▦

Balance Sheet Report

The capitalized stock value in the financial position.

⇄

Supplier Purchases History

The foreign supplier's purchase history.

↻

Inventory Turnover Ratio

Inventory turnover efficiency at the true landed cost.

☰

Landed Cost Vouchers → Index

A list of all vouchers, filterable by number, expense account and date range.


8 · Operating Rules You Must Follow

Seven items that separate a correct cost from a distorted one

RULE 01
Post the voucher before selling the shipmentThe system corrects only the value of existing stock and its valuation rate; units already issued were closed at the valuation rate at the time of issue. If charges usually arrive late, make it a policy not to release goods for sale before the voucher is posted.
RULE 02
Expense accounts must be leaf accountsThe system rejects the voucher with an explicit message when a group account is selected, because the resulting balance cannot be posted within the period-closing entry.
RULE 03
Choose the distribution basis deliberatelyQuantity for volume-related charges, Amount for value-based charges, and Manual when customs categories differ between items.
RULE 04
More than one voucher can be loaded on the same shipmentEach voucher adds to LandedCostVoucherAmount and recalculates the valuation rate; a late clearance invoice is posted with a second, separate voucher.
RULE 05
Weighted-average valuation at the (item × warehouse) levelIf the item has an older balance at a different cost, valuation rate = total stock value ÷ total quantity, not the new shipment's cost alone.
RULE 06
Record the exchange rate on its dateThe system uses the latest recorded exchange rate; a missing record means a 1:1 rate is applied and the values are distorted.
RULE 07
No double loadingDo not load the same expense twice — once as a Valuation line inside the receipt, and again inside the landed cost voucher.