Import a bill from a file or device
Use these steps to read the items of one bill from a file or from a stocktaking device into the grid of the open bill. The program adds the items from the line where you stand, and it does not save the bill. To import many bills at once from a text file, see Import bills from a file.
The example uses a text file with two materials from the demo data.
Before you begin
- Open a new or unsaved bill. The command works in the bill items grid, and also in the assembly and disassembly forms.
- You need the Import Bill Using Commands of Bill Grid Menu permission (under Operations in Users Management), and the Modify Quantity permission for the bill form.
- Prepare the file. Make each line an item, and separate the columns with the
Tabcharacter. In the example the fileD:\Import\items.txthas two lines:
| First column (material code) | Second column (quantity) |
|---|---|
P01 | 10 |
P02 | 4 |
- With a stocktaking device, connect it to the computer with a serial port before you begin.
Steps
-
Put the cursor in the grid line from which you want the reading to start.
-
Right-click the row number and choose Import Bill (or press
Ctrl+R). The "Reading bill items" window appears. -
From the Source list choose the description "File import driver (text file)".
-
Click Setup. The "Read Materials from File" window appears. Each of its fields is explained in Text file.
-
Type
D:\Import\items.txtin File. -
In File Fields tick Material Code and Qty. Click Ok. The program saves the file name and the two fields for this user on this computer.
-
Click Ok in the "Reading bill items" window. The program reads the file and adds the items to the grid.
-
Check the items, prices and warehouses, then save the bill in the usual way.
For the next times press Ctrl+O in the grid. The program reads the saved file with the last source and shows no window.
With another source
Steps 1, 2, 7 and 8 are the same. What changes between them:
- Standard file ("Standard Import File Driver"): choose it in step 3 and click Setup to choose the file that the standard export wrote. The program asks you before it creates a group, a currency or a material that you do not have.
- Palm or Psion device: choose the description of the device, click Setup, then choose
COMand the speed of the device in the Select Port window. Click Ok in the source window and the receiving window appears. Send the stocktaking from the device, and the window closes when the end line arrives. With Symbol the window receives nothing in this version, and you close it with Log out (details). - Stocktaking from a smart device: follow Read Items from File (smart device).
Result
The items enter the bill grid from the line where you stood:
- The quantity, gifts and price are always read as positive.
- If the file does not carry the price, the program puts the default price of the material, as if you typed the material by hand.
- If the file does not carry the unit, the program uses the default unit of the material.
The import records no stock movement and no entry. The effect of the bill on stock and accounts appears when you save it and it is posted according to its form.
If something goes wrong
| Message | Why it appears | What to do |
|---|---|---|
| "Material not defined" with the field name, its value and the line number | The program did not find a material with the value of that line. | Correct the value in the file, or tick the field that carries a valid value, then read again. |
| "Total error line = …" | The reading ended, and this is the number of lines whose material the program did not add. The message is in English in every language. | Check the "Material not defined" messages that appeared before it. |
| "Cannot import the bill ! you have no authority to change quantity in the current bill type!" | You do not have the Modify Quantity permission for the bill form. | Ask for the permission. |
| "Can't import the invoice because the materials do not belong to the group specified in the form" | No material of the file is in the group of materials that the form specifies. | Use a file with materials of the group. |
| "There are materials with main warehouse and\or main job cost. Totaling:" followed by the number | The file has items whose warehouse or cost center is a main one, that is, it has sub items. The program did not add them. | Read the next message. |
"Items which contain a Job Cost or a main warehouse have been saved in the following file:" with the path of the file MainImpErr.txt, then "You can modify a Job Cost or a Store and re-import them again" | It appears after the previous message. The program wrote the items it did not add in that file. | Open the file, replace the main warehouse or center with a sub warehouse or center, then read the items again. |
| "File Name Missing", "The file not found", "Must select an item" and "File is empty" | A problem in the setup of the source. | See Messages in the page of the source windows. |
The program saves nothing of these items until you save the bill, so you can close it without saving.
Related
This page applies to alameen ERP 10, version 10.1.79.764.