What an imported item really costs, landed costs included
Freight, insurance, customs duty, port fees: a selling price built on the supplier price alone loses money. How FlexiERP works out the real cost of an import.

The foreign supplier’s invoice has just come in. The buyer converts the price into dirhams at the day’s rate, applies the usual mark-up and passes the selling price to sales, who start offering the item. Three weeks later the freight forwarder’s invoice lands on the accounts desk. Then the haulier’s, then the customs duty paid when the DUM was filed. Nobody thinks of going back to the price customers have already been given.
On paper the item makes a healthy margin. In the accounts that margin melts away, and nobody can quite say on which products.
What the supplier price leaves out
Between the supplier’s factory and your warehouse, imported goods pick up costs: freight, transport insurance, customs duty, port and clearing fees. Together they make the landed cost. That figure, not the supplier price, is what the item costs you once it is on the shelf.
These costs come in on separate invoices, from different providers, often after the goods themselves. They tend to end up in general expense accounts, far from the items that caused them, while the stock stays valued at the supplier price.
Import VAT is a separate matter: when it is recoverable, it is reclaimed and does not belong in the item’s cost.
An example, with invented amounts
Take an order of 1,000 pieces, paid to the supplier at 100,000 MAD once converted. Freight costs 12,000 MAD, insurance 1,500 MAD, customs duty 17,500 MAD, port and clearing fees 4,000 MAD. That is 35,000 MAD of costs on top, so the lot really costs 135,000 MAD.
Each piece costs 135 MAD, not 100. If the selling price was built on 100 MAD plus a 30% mark-up, so 130 MAD, every piece sold loses 5 MAD, before selling costs and overheads are even counted.
With several items in the same container, the question becomes who carries what. A heavy, cheap item does not use freight the way a light, expensive one does. Spreading every charge by the same percentage favours some items at the expense of others, and gets the margin of both wrong.
What FlexiERP does
In FlexiERP the purchase order can be placed in euros or dollars, with exchange rates handled by the application. When the goods arrive, the purchase receipt brings them into stock.
The extra costs then go through the “Landed Cost” document. You link the purchase receipts concerned, enter the charges (freight, insurance, customs, port fees) and choose how to spread them across the items, by value or by weight. Each item’s stock cost then includes its share of the charges, and when the forwarder’s invoice turns up after the goods, it is attached to the receipts it relates to.
Stock is valued by FIFO or moving average, and moving average is the method recommended for imported goods, precisely because it absorbs landed costs and exchange-rate movements. Since cost price and margin appear on sales documents, a salesperson preparing a quote sees the margin worked out on the landed cost rather than on the supplier price.
Cost invoices that have to hold up
Invoices from the forwarder, the haulier or the port agent are Moroccan invoices, with their required details, the ICE among them. An irregular invoice can make the expense non-deductible for the buyer. The DGI has also developed a portal to issue, send and receive invoices, and it has announced, pending its decree, electronic invoicing: a model in which every invoice is checked before it reaches the customer; the calendar will be set by the decree. In FlexiERP a purchase invoice is matched with its order and its receipt before it is posted. FlexiERP keeps that data structured and complete, and FlexiGlob sets up the connection with the tax platform as part of the deployment, once the format is published.


