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
  1. Opening the IM4 calculation document
    From 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.
    Opening IM4 calculation

    Read more

  2. Reviewing basic document information
    On 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.
    Basic IM4 data

  3. Adding uncalculated invoices
    At 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.
    Selecting invoices

  4. Verifying included invoices
    After 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.
    Invoices table

  5. Understanding distribution method
    The 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.
    Distribution method

  6. Analyzing the main items table
    The 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.
    Items table

  7. Supplier invoice columns
    This 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.
    Supplier invoice

  8. Customs valuation and codes
    This 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.
    Customs valuation

  9. Defining the VAT code
    In 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.
    Defining the VAT code in IM4

    Read more

  10. Entering excise manually for items subject to excise
    For 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.
    Entering excise on the item row

    Read more

  11. Distribution of additional costs
    Costs such as Veterinary, Forwarding, Insurance, and Others are distributed here.

    With By Value, distribution is automatic. These values form the accounting entry.
    Additional costs

  12. Real cost calculation
    This section shows the final cost flow:
    • Value excluding/including VAT
    • Real Cost: Final stock entry value including all duties and expenses.
    Real cost

  13. Sales and margin management
    You can define sales pricing directly:
    • Margin (%) → system calculates price
    • Sales Price → system calculates margin
    Sales settings

  14. Summary section
    Bottom and side panels show totals:
    • Transport, Forwarding, Customs, VAT
    • Total cost
    • Expected sales value
    These must match the official DUD declaration.
    Summary

  15. Column formulas explanation
    Each column has a letter (A, B, C, etc.) representing formulas.

    Hovering reveals dependencies, ensuring full transparency and auditability.
    Formulas

  16. Final validation and calculation
    After verifying invoices, customs codes, distribution method, and pricing:

    Result: Posting IM4 records stock entry with real cost and updates sales prices.
    Final calculation

Warning: The IM4 document should include only invoices that actually belong to the same import. Including incorrect invoices will result in inaccurate cost distribution.
'By Value' method: This automatic method is based exclusively on the item value. If an item has a large quantity but a low value, it will receive a smaller share of expenses compared to an item with a higher value.
Customs Code Configuration: Make sure customs codes are configured as 'Active' in the Settings module, together with the relevant rate. Otherwise, they will not appear in IM4.
Pricing Setup: Profit and pricing policies can be controlled directly by filling either the Margin (%) or the Sales Price; the system calculates the other value automatically based on Real Cost.
Tip:
Tip: Ensure all related invoices and customs codes are prepared before starting IM4.

Best practice: Use margin (%) to automatically generate consistent sales pricing.
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.