Bill export drivers
This page explains the windows of the export drivers. Three of them save bill items: the standard file (in a format that the standard import driver reads), DataMax (prepares the data of a label printer) and Excel 2013. Two of them save entry lines: XML and Excel 2013. The entry import driver reads the XML file. Drivers in general are in Hardware and exchange drivers.
Opening the window
| What you save | The command that opens it | The source window and its list |
|---|---|---|
| Bill items | Export Bill (Ctrl+S) in the row or corner menu of the bill items grid, and the same command in the bill window. It needs the Export Bill Using Commands of Bill Grid Menu permission. See Bill. | "Saving invoice items". The Source list: "Export File Driver(Excel 2013)", "Export To DataMax Printer Driver" and "Standard Export File Driver". |
| Entry lines | Export Entry (Ctrl+S) in the corner menu of the entry grid (see Grid menus). | "Export Entry". The Source list: "Export File Driver(Excel 2013)" and "Standard XML Export File Driver". |
The source window itself (its list, buttons and titles) is explained in Import bills. The window of the chosen source appears in one of two ways:
- Click Setup in the source window: it always appears, and the program saves what you change.
- Click Ok in the source window: the window of the source appears only if no file name was saved. After a name is saved, the program writes the saved file directly and replaces it without asking. To change the file click Setup. With DataMax the window does not appear the first time (see DataMax).
The program saves the file name for the current Windows user on this computer. The Excel fields are saved with this computer in the open file.
Standard file
The window title is "Export Bill". This source writes the bill items in a text file in a format that the import source "Standard Import File Driver" reads in another file of the program.
| Field | Description | Required | Values and rules |
|---|---|---|---|
File (Alt+F) | The path of the file to write. | Yes | Example: D:\Export\bill-export.txt. It starts with the last file the program saved with this source. |
| Browse button | Opens a save-file window. | No | The filter is Text files (*.txt) or All files (*.*). |
| Button | What it does |
|---|---|
| Ok | Checks the file name and whether the file exists (see Messages), then saves the name and closes the window so the program writes the file. |
| Cancel | Closes the window without writing. |
What the program writes, line by line. Each line starts with a character that gives its kind, and its values are separated by the Tab character:
| Character | What it carries |
|---|---|
V | The version of the format, 2.0. |
B | The branches of the source file: the branch number and code. |
C | The currencies of the exported materials: code, name, parity and the other currency data. |
G | The groups of the exported materials with their parent groups. |
M | Each exported material: its code, name, group, barcodes, units, conversion factors, its eighteen prices and its settings. |
I | The bill item: the material, quantity, unit, price, gifts, discount percentage, warehouse, notes, length, width, height, count, quantities 2 and 3, value added, cost center, category, production and expiry dates, addition percentage and category sale price. |
S | A serial number of the previous item. |
The program always exports the groups and materials with the items, so the standard import source can create what is missing in another file. After the writing the message "Successfully exported to file:" appears with the path.
DataMax
The window title is "Export Bill". This source prepares a data file for a DataMax label printer: for each item it writes the number of labels required and the values of the fields you ticked. Then it loads the label library prntlabel.dll if it exists and runs its printlabel function. If the library does not exist the export ends when the file is written.
| Field | Description | Required | Values and rules |
|---|---|---|---|
File (Alt+F) | The path of the data file. | Yes | Example: D:\Labels\data.txt. |
| Browse button | Opens a save-file window. | No | The filter is Text files (*.txt) or All files (*.*). |
| Design | The number of the saved set of choices. | Yes | Design1 to Design5. It starts with the last design you used. When you change it, the program loads the choices saved for that design. |
| Fields contain Arabic characters | An option in the Options group. | No | Always disabled, so it cannot be ticked. |
| Text | A fixed text written as the last line of each label. | No | Leave it empty if you do not need it. |
| Button | What it does |
|---|---|
| Ok | Checks the file name and whether the file exists (see Messages), then saves the choices and closes the window. |
| Cancel | Closes the window without saving. |
Show Fields
The Show Fields group has ten fields. Tick what you want in the label. Each of the first nine fields has three options on its row, which become enabled according to the one before:
| Option | Description | Values and rules |
|---|---|---|
| The field box | Adds the field to the label. | The fields: Item Code, Material Title, Latin Name, Barcode 1, Barcode 2, Barcode 3, Sequence No, Expiry Date and Production date, and Price, which has no other options. The price written is the consumer price of the material. |
| Barcode | Prints the field in the label as a barcode. | Enabled only after the field is ticked. |
| Print as EAN | Writes the value in the EAN format: a prefix that gives its kind, which is (1) for the code and the barcodes, (21) for the serial number, (17) for the expiry date and (11) for the production date, and the date in the form yymmdd. | Enabled only after Barcode is ticked. It has no effect on Material Title and Latin Name when writing. |
| Merge | Joins the values written in the EAN format in one line that is written first. | Enabled only after Print as EAN is ticked. It has no effect on Material Title and Latin Name when writing. |
If you untick an option, the options that depend on it are unticked and disabled.
Writing rules
- For each item without serial numbers the program writes a line
LabelCount=followed by its quantity, then the values of the fields. For each serial number in the item it writesLabelCount=1and the values of the fields with that number. - The program saves the choices of each design in a file
labelconf1.initolabelconf5.iniin the Windows folder, and copies the file of the chosen design overlabelconf.iniin the same folder. - The first time, click Setup before Ok. If no setup was saved, the window does not appear at Ok, and the program writes a file named
0with no fields.
Export an entry in XML
The window title is "Export Bill" although it saves entry lines. This source writes the entry lines in an XML file that the XML entry import driver reads.
| Field | Description | Required | Values and rules |
|---|---|---|---|
File (Alt+F) | The path of the XML file. | Yes | Example: D:\Export\entry.xml. |
| Browse button | Opens a save-file window. | No | The filter is XML Files(*.xml). |
| Button | What it does |
|---|---|
| Ok | Checks the file name and whether the file exists, then saves the name and closes the window so the program writes the file. |
| Cancel | Closes the window without writing. |
The program writes in the file a header with the version of the format and the information of the source file, then the branches, the currencies of the lines, their accounts and their cost centers, then the lines. Each line has the account, debit, credit, notes, customer name, currency and its parity, category, contra account, cost center and date. Only the lines that have an account are written. After the writing the message "Successfully exported to file:" appears with the path.
Export a bill to Excel 2013
The window title is "تصدير المواد إلى ملف". Its title and its two buttons are in Arabic in every program language. This source writes the bill items and their data in an Excel sheet in the xlsx format.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| File | The path of the Excel file. | Yes | Example: D:\Export\bill.xlsx. |
| Browse button | Opens a save-file window. | No | The filter is Excel 2013 files (*.xlsx). |
| The six tabs | Each tab is a list of fields of one kind (see Fields). | No | No field is ticked the first time. |
| The field list | A check box for each field. Tick what you want to appear in the sheet. | Yes | Tick at least one field in one tab. |
| The two arrows | Move the field selected in the list up or down. | No | They decide the order of the columns of the sheet in the group of this tab. |
| Button | What it does |
|---|---|
| Ok (shown in Arabic) | Checks the file name and whether the file exists (see Messages), then saves the choices and their order and closes the window so the program writes the file. |
| Cancel (shown in Arabic) | Closes the window without saving. |
Fields
The tabs of the window and their fields, in the order in which the list starts:
| Tab | Fields |
|---|---|
| Bill Fields | Bill No, Bill Date, Customer, Payment Type, Invoice Currency, Bill Parity, Notes, Warehouse, Address |
| Bill Items | Material Name, Qty, Gifts, Unit, Unit Price, Total, Warehouse, Percentage Discount, Discount Value, Addition %, Addition Value, Notes, Quantity 2, Second Unit, Quantity 3, Third Unit, Production Date, Expiry Date, Cost center, Category, Length, Width, Height, Cnt, Value Added, Category Sale Price, Combination, Purchase Value, Reverse Charge, Excise Tax, Customs Assessment. The last four fields (Purchase Value, Reverse Charge, Excise Tax and Customs Assessment) appear only if your licence includes the Gulf tax system feature and the Gulf tax system is enabled in Program Options. |
| Discounts and Additions | Account, Discount, Percentage Discount, Additions, Addition %, Note, Currency, Parity, Equivalent, Category, Cost Center Name, Contra account |
| Fields of Totals | Subtotal, Discounts, Additions, Value Added, Sales Tax, Net invoice value, Down payment, Remainder |
| Material fields | Group Code, Group Name, Material Code, Latin Name, Barcode, Second Unit Barcode, Conversion Factor of Unit 2, Third Unit Barcode, Conversion Factor of Unit 3, Material Type, Specifications, Size, Source, Location, Manufacturer, Color, Provenance, Type, Model, VAT rate, Wholesale, Semi wholesale, Distributor, Export, Retail, Consumer, Last Purchase. The last seven prices (Wholesale to Last Purchase) appear in the list with "(Bill Unit)" added after each name. |
| Customer fields | Client Account Name, Cost Center Name, Card No, Barcode, Prefix, Latin Name, Suffix, Nationality, Phone 1, Phone 2, Fax, Telex, Mobile, Pager, Notes, Email, Website, Percentage Discount, Country, City, Region, Street, Details, ZIP Code, Post Box, Building No, Floor No, Latitude, Longitude, Certificate, Work, Nature of Work, Field 1, Field 2, Field 3, Field 4, Date of birth, Gender, Hobbies, Tax Number. The address fields (from Country to Longitude) appear with "(Default)" added after each name. |
Writing rules
- The data is written in one sheet named "Sheet 1". Each group of fields is a table with a gray row of headings, and an empty row between it and the next table. The order is: Bill Fields, then Customer fields, then Bill Items, then Discounts and Additions, then Fields of Totals.
- The Bill Items table has a row for each item, with the Material fields that you ticked added as columns. The Discounts and Additions table has a row for each discount or addition account.
- Numbers are shown with decimal places according to the program options: two for ordinary numbers, the price places for prices and the quantity places for quantities. The direction of the sheet is right to left if the program language is Arabic.
- The headings of the columns of the sheet may differ a little from the names of the fields in the window.
- The program saves the ticked fields and their order with this computer in the open file. It saves the file name for the current Windows user.
- After the writing the message "Successfully exported to file:" appears with the path, and under it "Do you want to open the file?" with Yes and No. Yes opens the file in the program associated with the
xlsxextension.
Export an entry to Excel 2013
The window title is "تصدير سند إلى ملف". Its title and its two buttons are in Arabic in every program language. This source writes the entry lines and their data in an Excel sheet.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| File | The path of the Excel file. | Yes | Example: D:\Export\entry.xlsx. |
| Browse button | Opens a save-file window. | No | The filter is Excel 2013 files (*.xlsx). |
| The four tabs | Each tab is a list of fields of one kind. | No | No field is ticked the first time. |
| The field list | A check box for each field. | Yes | Tick at least one field. The order of the columns is fixed, and this window has no arrows. |
| Button | What it does |
|---|---|
| Ok (shown in Arabic) | Checks the file name and whether the file exists, then saves the choices and closes the window so the program writes the file. |
| Cancel (shown in Arabic) | Closes the window without saving. |
| Tab | Fields |
|---|---|
| Entry Header | Entry No., Entry Date, Posting Date, Entry Currency, Parity, Notes, Default Account |
| Entry Fields | Account Code, Account Name, Notes, Debit, Credit, Currency, Parity, Equivalent, Category, Cost center, Date, Contra account |
| Account Fields | Latin Account Name, Budget Type, Value of the budget, Account Currency, Final account, Main Account |
| Customer fields | Client Account Name, Cost Center Name, Card No, Barcode, Prefix, Latin Name, Suffix, Nationality, Phone 1, Phone 2, Fax, Telex, Mobile, Pager, Notes, Email, Website, Percentage Discount, Country, City, Region, Street, Details, ZIP Code, Post Box, Building No, Floor No, Latitude, Longitude, Certificate, Work, Nature of Work, Field 1, Field 2, Field 3, Field 4, Date of birth, Gender, Hobbies, Tax Number. The address fields (from Country to Longitude) appear with "(Default)" added after each name. |
- The data is written in one sheet: the Entry Header table, then a table with a row for each entry line with the fields you ticked from Entry Fields, Account Fields and Customer fields.
- The program saves the ticked fields with this computer in the open file. It saves the file name for the current Windows user.
- After the writing the message "Successfully exported to file:" appears with the path.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| "File Name Missing" | You clicked Ok in the source window and the path is empty. | Type or choose the path. |
| A question with only the path of the file, with Yes and No (the default is No) | You clicked Ok in the standard file window and the file exists. The question has no text. | Yes replaces the file, and No returns you to the window. |
| "The file already exists on the disk. Do you want to replace it" or "File already exists. Do you want to replace it?" with the path, with Yes and No (the default is No) | You clicked Ok in the DataMax, XML or Excel window and the file exists. | Yes replaces the file, and No returns you to the window. |
| "Successfully exported to file:" with the path | The export ended in the standard file, DataMax or XML. | Nothing. |
| "Successfully exported to file:" with the path | The export to Excel ended. Under it in the export of a bill the question "Do you want to open the file?". | Yes opens the file. |
| "An error occured during writing to file:" with the path | Writing failed in DataMax or XML. | Check the folder and the permission to write in it. |
| "Error Creating File:" with the path | The DataMax file could not be created. | Check the path and the permission to write. |
| A message with only the path | Creating or writing the standard file failed. The message has no text before the path. | Check the path and the permission to write. |
| "Error In Loading Library" | The library prntlabel.dll exists but the print function is not in it (DataMax). | Put the correct library. |
| "No quantity found for the materials, cannot export" | Export Bill and the bill has no items. It appears before the source window. | Enter items. |
For the forms of messages see Messages and callouts.
Related
This page applies to alameen ERP 10, version 10.1.79.764.