IMS Documentation

Purchases

Purchases creates Purchase and Purchase Return documents, manages landed cost and finalization, and records the supplier VAT/tax treatment when VAT is enabled.

Open the screenInventory → Purchases.
Current financial integration Where supported financial integration is configured, finalized purchases can prepare and post their accounting journals through IMS Financial Posting.

Purchases and Purchase Returns

The same screen handles two transaction types:

TypePurposeMain behavior
PurchasesReceive inventory from a supplier.Supports foreign/local currency, exchange rate, discount, purchasing expenses and landed-cost calculation.
ReturnsReturn inventory to a supplier.Uses the local currency/current item cost workflow and disables purchase-only currency, expense and discount controls.

Select the purchase context

Use the selection buttons to choose the required Branch/Center, Supplier and Statistical Period. When finalizing a purchase, also select the Store that will receive the stock. Available locations follow the user's configured access.

IMS keeps purchase and purchase-return voucher numbering separately by transaction type and center. A Shipment No. is also associated with the selected Statistical Period.

Review existing invoices

The invoice list is filtered by the selected Center, transaction type, and—when selected—Supplier and Statistical Period. Selecting an invoice loads its header, items, totals, state, posting information, transaction log and purchasing-expense details.

Invoice states

StateMeaning
OpenThe invoice has been saved but has not yet updated the final stock/cost balances. It can still be edited or deleted according to user rights.
On HoldAn invoice displayed as On Hold is unavailable for normal editing, deletion and financial posting. Have an authorized administrator review its status before continuing.
FinalizedInventory and costing have been committed. The invoice can no longer be edited or deleted and becomes eligible for financial posting.
DeletedThe open invoice was deleted from normal use and its item details/totals were cleared.

Create a new purchase invoice

  1. Select Purchases.
  2. Select the Center, Supplier and Statistical Period.
  3. Click New.
  4. Confirm or change the invoice date when required.
  5. Add the purchase items manually or use Import Items.
  6. Select the Currency and confirm the Exchange Rate.
  7. Enter any purchase discount.
  8. Add applicable Purchasing Expenses.
  9. Review quantities, amounts, Cost Rate and Net Cost.
  10. If VAT is enabled, confirm the Supplier Invoice details, Supplier VAT No. and Tax Treatment, then review the calculated Taxable Amount, VAT Amount and Supplier Total.
  11. Save the invoice. It remains Open until it is explicitly finalized.

Item details

The purchase grid stores Item Code, Description, Style, Color, Size, Current Retail, Unit, Qty, Price and line Net amount. The screen recalculates invoice totals as item quantities and prices change.

When adding a single line through the input field, the current purchasing workflow looks up the IMS Item Code. The new line starts with quantity 1, the item's normal unit and its last purchase price, which can then be adjusted while the invoice is being prepared.

Import Items

For larger invoices, use the Purchase import file. IMS reads a tab-delimited text file, skips the first/header row and validates the file before loading the grid.

TransactionRequired columnsNotes
PurchaseItemCode · Unit · Qty · PriceItem Code must exist as an inventory item, Unit must exist, Qty must be greater than zero, and Price must be a valid non-negative number.
Purchase ReturnItemCode · Unit · QtyThe return uses the item's current IMS cost rather than an imported purchase price.
Example purchase file
ItemCode	Unit	Qty	Price
30225010001	1	12	4.250
30225010002	1	6	5.100

IMS rejects invalid Item Codes, missing/unknown units, invalid quantities and invalid purchase prices. Duplicate item rows are also rejected. When row validation fails, IMS creates an -ErrorLog.txt file next to the import file showing the row and reason.

Purchasing Expenses

Click Expenses to add costs configured in Financial → Purchasing Expenses. Each expense type can be added once to the invoice. IMS shows the original invoice amount, Total Expenses and the resulting Net Amount/landed amount.

Purchasing Expenses are included in landed/local cost and later participate in the accounting journal using the account configured for each expense type.

Currency, exchange rate and Cost Rate

Purchase invoices support the currencies and current currency-rate setup maintained in IMS. The local currency uses an exchange rate of 1; a foreign currency loads its configured cost/exchange rate, which can be reviewed as part of the purchase.

ValueCalculation / purpose
Total RetailSum of the current retail value of all purchased quantities.
Total QtyTotal purchased quantity.
Total AmountSum of item Qty × purchase Price before invoice discount.
Net AmountTotal Amount less the purchase discount.
Net LocalNet Amount converted by the currency exchange rate.
Cost RateThe landed-cost multiplier used to convert the foreign purchase price into local landed cost. When expenses exist, IMS includes those expenses in the effective rate.
Net CostNet Local plus Purchasing Expenses.

Purchase VAT / Tax

When Enable Value-Added Tax is active in System Settings, Purchases displays a VAT/tax section and loads the active treatments defined in Financial → Integration Setup.

FieldBehavior
Supplier Invoice No.External supplier invoice number. Required for every tax type except OUTSIDE_SCOPE.
Supplier Invoice DateDefaults to the new IMS purchase date and is required for every tax type except OUTSIDE_SCOPE.
Supplier VAT No.Loaded from the selected Supplier. Required for a DOMESTIC treatment with a positive tax rate.
Tax TreatmentRequired active Purchase VAT / Tax Code.
Taxable AmountFor non-manual tax codes IMS uses Net Local. For MANUAL base mode it is entered by the user and must be greater than zero.
VAT AmountAutomatically calculated from Taxable Amount × tax rate for taxable automatic modes. MANUAL base mode permits adjustment on a new document. For an eligible saved purchase, use Edit VAT.
Supplier TotalNet Local + VAT only when the tax code Posting Mode is SUPPLIER; otherwise it remains Net Local.
Tax Reference No.Required for IMPORT_PAID and IMPORT_DEFERRED treatments.
Tax Reference DateOptional date stored with the tax/customs reference.

Automatic calculation

Automatic taxable modes use Net Local as the taxable amount. ZERO, EXEMPT and OUTSIDE_SCOPE calculate zero VAT. Other tax types calculate VAT using the tax code's stored rate and round the result to three decimal places using midpoint-away-from-zero rounding.

When saved, IMS also splits VAT into recoverable and non-recoverable amounts from the tax code's Recoverable %, using the same three-decimal rounding for the recoverable amount.

Default treatment from the Supplier

IMS can suggest an available tax treatment using the selected supplier's VAT registration details. Review the proposed tax treatment against the company's applicable VAT setup before finalizing the purchase.

Tax values are document dataWhen an existing purchase is reviewed, IMS loads the tax code, taxable amount, VAT amount and tax reference saved against that document rather than simply rebuilding the values from today's settings.

Edit an open invoice

An Open invoice can expose separate edit actions according to the user's permissions:

Edit actionPurpose
Statistical PeriodChange the invoice's period/shipment assignment.
DateChange the purchase invoice date.
ItemsAdd, remove or change item quantities/prices/units.
DiscountChange the invoice discount.
CurrencyChange purchase currency/exchange data.
ExpensesChange the purchasing-expense allocation.
Edit VATCorrect only the VAT Amount on an eligible Open purchase; see the VAT correction procedure.
NotesEdit the purchase notes.
FinalizeStart the inventory/cost finalization process.

Finalized, Deleted and currently On Hold invoices cannot be edited. Purchase Returns do not offer the purchase-only Currency and Expenses edit actions.

Correct the VAT amount on a saved purchase

Open Inventory → Purchases, find the invoice and choose Edit → Edit VAT. This action requires the Edit Purchases permission and enabled company VAT. It applies only to an Open purchase with no posted journal, one existing VAT record and an active positive-rate tax treatment. Purchase Returns, Finalized, On Hold or Deleted documents, and ZERO, EXEMPT or OUTSIDE_SCOPE treatments are not eligible.

  1. Compare the saved VAT Amount with the supplier's tax invoice.
  2. Choose Edit VAT and enter the corrected VAT Amount. Only that amount is editable in this mode; the tax treatment, rate, taxable amount and supplier/reference details remain unchanged.
  3. Enter a non-negative amount with no more than three decimal places. For example, if a fictional supplier invoice shows a revised tax amount of 105.000 instead of 100.000 in the company's currency, enter the revised amount supported by that invoice.
  4. Review Supplier Total, then click Save. Reopen/review the invoice and its Log to confirm the saved amount and the named user responsible for the change. Cancel leaves the saved amount unchanged.

Supplier Total includes the corrected VAT only for the SUPPLIER posting mode. Saving recalculates the recoverable VAT using the tax code's current Recoverable %, rounded to three decimals, and assigns the remainder to non-recoverable VAT. These are recalculated tax allocations; Edit VAT does not change merchandise prices, invoice discounts or purchasing expenses.

IMS rejects invalid amounts, invalid recoverable percentages and missing or conflicting VAT records. It rechecks eligibility on Save. If the stored VAT record changed since you opened it, refresh/reopen the invoice, compare the current values and enter the correction again only if it is still needed. Do not repeatedly save from an outdated view. If IMS cannot confirm the save outcome, reopen and reconcile the invoice before retrying.

A saved correction records the before/after VAT amounts against the signed-in responsible user in the transaction Log. Financial posting still requires the configured VAT accounts. If the saved split includes non-recoverable VAT, posting is blocked until it is assigned to inventory/expense cost through the appropriate accounting process; Edit VAT does not perform that cost allocation.

Review VAT after later purchase editsSubsequent changes to items, discounts or currency can recalculate and replace a manually corrected VAT amount. Complete those changes first where possible, then recheck VAT against the supplier invoice before finalizing or posting.

Finalize a purchase

Finalization is the point where an Open purchase becomes an inventory/cost transaction. IMS warns the user that the process is irreversible through normal editing and that average cost will be recalculated.

During finalization, IMS locks the invoice and affected stock/item records, calculates the resulting average costs, updates the selected store's quantities and the affected items' costs, and marks the invoice Finalized in one database transaction. A purchase also updates last-purchase information. Activity logging and display refresh take place after the database transaction.

Review before FinalizeCheck the receiving Store, Statistical Period, Shipment No., Currency/Exchange Rate, Expenses, invoice discount, item quantities and prices before finalizing. After successful finalization the invoice is no longer editable or deletable.

Finalization outcome

Finalization reports whether the database transaction completed, was rolled back, or has an unconfirmed commit outcome. A display-refresh failure after a confirmed commit does not reverse the finalized document.

Interrupted finalizationKeep the invoice identity and any error details. If the commit outcome is unconfirmed, refresh and reconcile the document before retrying. Have an authorized administrator review any status that remains unclear.

Purchase Returns

A Purchase Return follows the same Open → Finalize workflow but removes quantity from the selected store. Before committing the return, IMS verifies that the store has enough quantity for every returned item.

If any returned quantity exceeds the current store balance, IMS rolls back finalization and attempts to write a variance log containing Item Code, Return Qty, Current Balance and Variance. IMS displays a warning if the log cannot be written.

Financial integration

Once a purchase or purchase return is Finalized, users with the Financial Posting permission can open the posting window. IMS sends the approved journal through the configured supported financial integration. When VAT is enabled, the saved purchase-tax record supplies the document tax treatment, tax amount and recoverable/non-recoverable split used by the VAT-aware purchasing workflow.

The posting window builds a balanced journal using the store account/cost-center setup, the selected LC / Supplier Account, the Earned Discount account when an invoice discount exists, and the configured accounts for Purchasing Expenses.

Select the LC / Supplier account

The account selector reads eligible Letter of Credit / supplier accounts from the configured financial integration. Users can search by Account No., Arabic Name or English Name and return the selected account to the purchase-journal window.

Review and post the journal

IMS creates the purchase journal with separate Debit/Credit lines and verifies the journal total before posting. A normal purchase and a purchase return reverse the accounting direction of the relevant entries.

After a successful post, IMS stores the financial Journal No., posting user, posting date/time and posting code against the purchase invoice and records the action in the IMS transaction log.

Interrupted financial postingFinancial journal writes and the IMS posting acknowledgement are separate steps. A displayed success message alone does not prove both systems agree. Keep the invoice identity, journal number when available and error details, and have an authorized finance administrator reconcile the financial journal with IMS posting status before retrying.

Unpost

For a transaction that was posted through IMS, the Post action changes to UnPost. After confirmation, IMS performs the supported unposting action in the connected financial system and updates the purchase posting status.

Integration wording used in this manual Use Financial Posting to review and post the prepared journals through the configured financial integration.

Transaction log

Purchases maintains an activity log for the selected invoice. It records actions such as invoice creation, edits, finalization, posting/unposting and recovery activity. When purchasing expenses exist, their details are also shown with the invoice information.

Permissions

Purchasing actions are controlled separately. Depending on the user's Group Policy, IMS can independently allow or block creating purchases, editing purchases, deleting open purchases, finalizing purchases and financial posting.