DUD Calculation (IM4)
The DUD Calculation (IM4) function in the Customs module is used to calculate import costs and distribute all additional expenses across the items of the import invoice. This is the main customs calculation document in the system, as it includes not only the value of goods invoices, but also additional import invoices such as transport, forwarding, insurance, veterinary/control services, and other expenses.
In this document, the system calculates and distributes costs based on the selected method, calculates customs bases according to configured codes, VAT, additional costs, real cost, and facilitates the setup of sales pricing policies.
Important: The IM4 document is the foundation for determining the real cost of imported goods in stock. Therefore, all invoices, values, customs code configurations, and distribution methods must be carefully reviewed before final calculation.
Necessary Steps
-
Opening the IM4 calculation documentFrom the Customs module, in the Import section, click on Calculation and select IM4.Result: The DUD calculation document opens with all necessary sections for including invoices, distributing costs, and performing final calculations.
Read more
IM4 is typically used for standard import cases where goods are cleared through customs and enter stock. The document provides a complete overview of import cost before final posting. -
Reviewing basic document informationOn the right panel, the basic calculation data is displayed:
- Calculation No.
- Calculation Date
- DUD No.
- DUD Date
- Distribution Method
This information identifies the document, links it with customs documentation, and defines how additional costs will be distributed across imported items.
-
Adding uncalculated invoicesAt the top section Invoices, click the search field or icon to open the Uncalculated Invoices list.This list contains invoices previously registered in the Customs module but not yet included in any calculation. These may include:
- M – Goods Invoice
- T – Transport Invoice
- SH – Forwarding Invoice
- V – Veterinary / Control Invoice
- S / m – Insurance Invoice
- O – Other Invoices
Select the invoices related to this import and confirm inclusion.
-
Verifying included invoicesAfter selection, invoices appear in the top table with fields such as:
- Type
- Invoice No.
- Date
- Supplier
- Value
- Currency
- Exchange Rate
- Value in Currency
- Over/Under valuation
This table is the base for all further calculations.
-
Understanding distribution methodThe Distribution Method defines how additional costs are allocated:
- By Value – costs are distributed proportionally based on item value.
- Manual – user defines values manually.
This directly affects unit cost accuracy.
-
Analyzing the main items tableThe central table represents each item and is divided into logical blocks:
- Supplier Invoice
- Customs Valuation
- Accounting View
- Adjusted Cost
- Real Cost
- Sales
Hovering over columns (A, B, C, etc.) shows formulas and dependencies.
-
Supplier invoice columnsThis section includes base purchase data:
- Invoice No.
- Item Code & Name
- Quantity
- Purchase Price
- Discount
- Net Value
This represents the base (FOB-like) value before additional costs.
-
Customs valuation and codesThis section calculates duties such as Customs, Excise, and VAT.The key element is the Customs Code assigned to each item.Selection: Choose from predefined codes.Quick add: Use “+ Customs Code” to create new.Apply to all: Apply the same code to all items.⚠️ Codes must be configured in Settings > Customs Codes and marked Active.
-
Defining the VAT codeIn the Customs Valuation block, the system automatically fills the VAT Code column with the standard code 35 - Imports with the 18% rate. This is the most commonly used code for imports with the regular VAT rate.If a different VAT code must be used for the item, click the code field on the item row. The VAT Code List modal opens, where you can select the appropriate code, for example codes for imports with the 8% rate, investment imports, exempt imports, or other cases based on the customs treatment.Important: The VAT code must match the customs declaration and the type of goods. Changing the code affects the VAT rate, the VAT value, and the summary totals at the bottom of the document.
Read more
If all items have the same VAT treatment, the code can be checked and applied consistently to avoid unintended differences between rows. For mixed cases, each item should be reviewed separately. -
Entering excise manually for items subject to exciseFor goods subject to excise, the user must review the item row in the main table and manually fill in the relevant excise field. Depending on how the customs declaration was issued, fill in either the Excise Value column or the Excise % column.These fields are important because excise is included in the calculation of customs obligations and affects the real cost of the item. If the goods are subject to excise and the value or percentage is not entered, the document may produce incorrect costs and totals.Practical check: Before final calculation, reconcile the excise value on item rows with the physical DUD or the official customs document.
Read more
Items without excise should remain at 0.00 in the excise columns. Enter excise only for goods that actually have an excise obligation according to the customs documentation. -
Distribution of additional costsCosts such as Veterinary, Forwarding, Insurance, and Others are distributed here.With By Value, distribution is automatic. These values form the accounting entry.
-
Real cost calculationThis section shows the final cost flow:
- Value excluding/including VAT
- Real Cost: Final stock entry value including all duties and expenses.
-
Sales and margin managementYou can define sales pricing directly:
- Margin (%) → system calculates price
- Sales Price → system calculates margin
-
Summary sectionBottom and side panels show totals:
- Transport, Forwarding, Customs, VAT
- Total cost
- Expected sales value
These must match the official DUD declaration.
-
Column formulas explanationEach column has a letter (A, B, C, etc.) representing formulas.Hovering reveals dependencies, ensuring full transparency and auditability.
-
Final validation and calculationAfter verifying invoices, customs codes, distribution method, and pricing:Result: Posting IM4 records stock entry with real cost and updates sales prices.
Key Benefits
-
Complete import cost overview
- Combines the goods invoice with all additional import costs in a single document.
-
Accurate 'By Value' distribution
- Provides accurate allocation by balancing transport and insurance expenses in proportion to each item's base price.
-
Immediate sales management
- Allows margins and sales prices to be set directly at the moment the incoming cost is calculated.
-
Transparency and error-free calculation
- The link with configured Customs Codes and the column letters reduces manual errors and provides traceability.