Materials Cost Card
The materials cost card sets the first cost price of materials that have no cost price yet, as long as those materials have not been used before in bills that affect the cost price and before the card date. You enter a date and a warehouse, then list the materials with a cost for each, or import them from a text file. When you save, the program generates two automatic bills that fix these prices. For the practical steps open the pages linked at the end of this page.
Opening the window
- From the ribbon: Invoices > Working Tools > Materials Cost Card.
- The icon shows for users who have the Materials Cost Card permission in Users Management. It belongs to the Cards group and has four levels: add, browse, modify and delete.
- The card opens only when the option Activate materials cost card is on, in the Save page of the program options (group Systems). See Program options. If the option is off, the program shows the message listed in Messages.
The first time you open the card in a file, the program creates two special bill types: Enter cost and Output cost. It needs both to save the card, and afterwards they appear among the bill types. If it cannot create them, the window closes at once. See How the program saves the card.
Card header
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Navigation buttons | Move between saved cards: first, previous, next, last, with the card number. | — | See Card navigator. |
| Security Level | The security level of the card. The two generated bills get the same level. | No | A user whose permission equals or exceeds the level can open the card. |
| Date | The date the cost starts. The two generated bills carry this date. | Yes | It must be earlier than the first movement of each material in a bill that affects the cost price, otherwise the program refuses to save. See Messages. How to type dates: Date fields. |
| Branch | The branch the card belongs to. | Yes, when shown | The field shows when the file works with branches. If you leave it empty, the program refuses to save. |
| Warehouse | The warehouse both bills enter. | Yes | The field accepts only a warehouse that has no sub-warehouses. See Lookup boxes and search. |
In the middle of the window the text No permissions replaces the grid if the security level of the displayed card is higher than your permission.
Card buttons
| Button | What it does |
|---|---|
| New | Starts a new card and empties the grid. The date, branch and warehouse stay. After Add the data stays on the screen: click New before another card. |
| Add | Checks the fields and the grid, then saves the card and generates the two bills. On success it shows "Operation successfully completed". |
| Modify | Checks the fields and the grid, deletes the two old bills, generates two new ones with the current content and updates the card. The button is disabled until you display a saved card. |
| Delete | Deletes the card and its two bills together. If either bill cannot be deleted, the program undoes the whole deletion. The button is disabled until you display a saved card. |
| Import from file | Opens the wizard that imports cost prices from a text file. See Import from file. |
| Close | Closes the window. The program asks first if there are unsaved changes. |
The usual save, modify and delete questions of cards and the permission check are explained in Card navigator.
Materials grid
The grid lists the materials to cost. The general grid features work in it: see Grids.
| Column | Description | Editable | Values and rules |
|---|---|---|---|
| Material | The material code and name, shown as code-name. | Yes | Type part of the code or name to open a material search window. Select several materials from the first empty row. From a filled row they replace the materials of that row and the rows under it, and the prices stay. If you close the search without selecting, the cell is cleared. |
| Combination | The name of the material combination. | No | The column shows when the file holds materials segmentation data (material combinations). |
| Cost Price | The cost price of the first unit of the material. | Yes | A number greater than zero. Example: 15.50. Choose the material before the price, and fill the rows in order without leaving an empty row. |
| Unit | The first unit of the material. | No | The program fills it when you pick the material. |
Deleting the material cell empties the row: a row without a material stays, and the program ignores it when saving. Deleting the price cell resets it to zero.
Right-click menu
The menu appears when you right-click a row that holds a material. The general grid commands are added to it (see Grid menus).
| Command | What it does |
|---|---|
Material Card (F9) | Opens the material card. |
Material Movement (Shift+F9) | Shows the movement of the material. |
How the program saves the card
After the checks the program generates two bills dated with the card date, in the card's warehouse. Both are cash bills in the default currency with exchange rate 1 and the card's security level. Each bill has a line for every material in the grid, with quantity 1 and a unit price equal to the cost price. The program skips rows that hold no material.
| Bill | Type | Effect |
|---|---|---|
Enter cost (abbreviation Cost.In) | Input bill. | Affects the cost price and the last purchase price. |
Output cost (abbreviation Cost.Out) | Output bill. | Does not affect the cost price. |
Both bills are posted automatically and generate no entry. Because the output quantity equals the input quantity, material balances do not change: the quantity stays as it was, and the cost price of the material starts from the price written in the card at its date.
Example with three rows in a card dated 1-1-2026 for warehouse S01:
| Material | Cost price | Quantity in each bill | Line value |
|---|---|---|---|
P01-A4 Printing Paper | 15.00 | 1 | 15.00 |
P02-Printer Ink | 50.00 | 1 | 50.00 |
M01-Rice | 3.00 | 1 | 3.00 |
Each of the two bills has three lines and totals 68.00 (15.00 + 50.00 + 3.00), and the net movement of each material is zero.
The program protects these prices with two rules:
- When saving: the card does not accept a material with an earlier movement. The program looks for the oldest date of the material in bills that affect the cost price, ignoring the two bills of this card. If the card date equals that date or comes after it, the save is refused. If the card date is earlier, the save goes on, but a warning asks you to re-audit balances and prices.
- After saving: while the option Activate materials cost card is on, the program does not save a bill dated on or before the card date for a material that has a card. In the example, after you save the card dated
1-1-2026, a bill dated31-12-2025or1-1-2026that holdsP01is rejected, and a bill dated2-1-2026is accepted. After you delete the card, the date returns to its earlier state.
The program does not delete a material used in a cost card, and does not let you turn on the material-combinations option for it. A message states the reason.
Import from file
The Import from file button fills the grid from a text file with a two-step wizard. The wizard appends the imported rows to the end of the grid. It does not clear the existing rows and does not stop the same material from appearing in two rows. After the import review the grid, then click Add or Modify.
The wizard reads up to 1000 lines of the file, separates the fields with a Tab character and ignores empty lines. The file must be of the Unicode Text type. The program keeps the last file and the chosen columns on this computer and shows them next time; it saves them only after a successful import. The wizard windows are titled Materials Cost Card.
Step 1: file name
| Item | Description | Required | Values and rules |
|---|---|---|---|
| Enter File Name | The step title, followed by text explaining that the wizard leads you step by step to import a price list from a text file, and that the file must be Unicode Text. | — | — |
| File name box | The path of the text file. | Yes | Example: D:\data\costs.txt. The program shows the last file you imported. |
| Browse button (small square next to the path) | Opens a file picker with the filter Text files (*.txt) or all files. | — | Puts the chosen path in the box. |
Wizard buttons in this step: Next, Back (disabled because this is the first step) and Cancel.
- Next checks that the file exists. If it does not, the message "The file doesn't exist" appears.
- Cancel asks: "Are you sure you want to exit import process?".
Step 2: file fields
| Item | Description | Required | Values and rules |
|---|---|---|---|
| Start line | The number of the first line to import, so you can skip a header line. | Yes | A number greater than zero. The default is 2 every time, so the first line counts as a header. Empty lines are not counted. |
| Fields grid | Its first row holds lists to choose the meaning of each column. Under it are the lines of the file: Row 1 and so on, with Column 1 and so on above. | — | The grid shows the first lines of the file so you can check them. You cannot edit the lines. It shows only the first two columns of the file (Column 1 and Column 2). |
| Progress bar | Advances while the rows are added to the grid. | — | — |
The choices in each column list are: None, Material Code, Material Name and Cost Price. The grid shows only the first two columns of the file, each with a list. Put the material and the cost price in the first two columns of the file; the program does not read the others. A column set to None is ignored.
The text above the grid says: "The materials and price will be imported as exist in the file you import from regardless of any settings in material card or program options."
Buttons of this step: Start, Back and Cancel.
When you click Start the program applies these rules in order:
- Start line: It must be greater than zero.
- Chosen fields: The program does not accept the same field twice, does not accept Material Code and Material Name together (use one of them), and requires a material field and a cost price field. Each violation shows a message (see Messages).
- Price of every line: The program reads the lines from the start line to the end of the file. If the price of any line is zero or less, empty or not numeric, the whole import stops and the message "Invalid value" appears with the field name and the line number under it, such as
Cost Price,Row 4. The row number is the position of the line in the file, empty lines not counted. With start line2the first imported line isRow 2. - Confirmation: The program asks: "Do you want to start importing materials?" (Yes/No, with No as the default).
- Matching materials: The program looks for a material whose code or name equals the text in the material column. If several materials have the same name it takes one of them, so a code is the safer choice.
- Materials not found: A line that matches no material shows no message: it is added to the grid as a row with no material name and the price of the line, and the program ignores it when you save the card. Delete these rows or correct the name before saving.
After a successful import the message "Import is successfully completed" appears and the materials fill the grid.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| "Cannot open the card, because the materials cost card is disabled. You can activate it from: Options - Save" | You clicked the card icon while Activate materials cost card is off. | Turn the option on in the program options. |
| "Should specify the store in the store field" | You clicked Add or Modify with an empty warehouse. | Choose a warehouse. |
| "Should specify the branch in the branch field" | The branch is empty and the file works with branches. | Choose the branch. |
| "Must enter at least one material in the materials table" | The grid has no rows. | Add a material or import the file. |
| "There are materials with a cost less or equal to zero. The cost of materials must be greater than zero." | A material in the grid has a cost price of zero or less. | Type a price greater than zero. |
| "The material has a previous movement" followed by the material name | The material has a movement in a bill that affects the cost price on or before the card date. | Make the card date earlier than the movement date, or remove the material from the grid. |
| "Please note that you should re-audit materials balances and prices to allow program to adopt the entered cost, also regenerate the bill entries in case of using the perpetual inventory" | Some materials have movements after the card date. A warning that does not stop the save. | Continue saving, then re-audit balances and prices, and regenerate bill entries if you use perpetual inventory. |
| "Operation successfully completed" | The add, modify or delete succeeded. | Nothing. |
| "The material "…" has a cost card date later to the bill date." | You are saving a bill dated on or before the cost card date of one of its materials. | Make the bill date later than the card date. |
| "Material is used in a cost card" | You are deleting a material that is in a cost card, or changing it in a way the program refuses for this reason. | Delete the cost card first. |
| "The file doesn't exist" | You clicked Next in step 1 and no file has the name you typed. | Correct the path. |
| "Are you sure you want to exit import process?" | You clicked Cancel in the wizard. | Choose Yes to leave. |
| "You must specify the field: …" followed by the field name (such as Material Code or Material Name or Cost Price) | You did not choose a column for the material or for the price. | Choose a material field (code or name) and a cost price field. |
| "Cannot insert … more than once in the table" | You chose the same field for two columns. | Choose a different field for each column. |
| "Cannot insert Material Code And Material Name in same import process" | You chose Material Code and Material Name together. | Choose only one of them. |
| "Start line must be more than zero" | You typed 0 in Start line. | Type 1 or more. |
"Invalid value" with Cost Price,Row … under it | The cost price on the line shown is zero or less, or not numeric. | Correct the file or change the start line. |
| "Do you want to start importing materials?" | You clicked Start and the fields and prices are valid. | Choose Yes to continue. |
| "Import is successfully completed" | The wizard added the rows to the grid. | Review the grid and save the card. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.