Onyx includes the ability to import sales invoices from CSV formatted files. This facility is located at Maintenance -> More -> Import -> Invoices
The format of the CSV file should be as follows:
Invoice Number
|
Invoice Date
|
Line Type
|
Qty
|
Item Description
|
Retail Price
|
Vat Type
|
Row VAT
|
Row Total
|
Account Name
|
Registration Number
|
1
|
01/03/2019
|
Part
|
1
|
Oil Filter
|
12.90
|
Parts
|
2.58
|
15.48
|
JONES
|
ABC123
|
1
|
01/03/2019
|
Labour
|
1
|
Change oil filter
|
20/00
|
Service
|
4.00
|
24.00
|
JONES
|
ABC123
|
The above would result in a new invoice number 1 being created, it would have 2 items (1 part item and 1 labour item). If the 'JONES' account doesn't exist it would be created, if it exists then it will be updated, the same goes for the vehicle.
Using the data above as an example, if onyx doesn't find invoice number 1 then it will be created. If it already exists then Onyx will update it and add the new lines so it is imperative that you only import the data once.
If Onyx finds an error in the data during the import process then no data will be saved and you will be advised to correct the data and start again.
The fields that must be present in the data (and the optional ones too) are detailed below, it is advisable to name the fields as detailed below, however, if this is not possible, then you can 'Map' the fields during the import process. For example, if Onyx cannot find the 'Invoice Field' in the data to be imported, you will be asked to select the field to be used in it's place.
Field Definitions
Field Name (can differ as you can 'Map' the fields)
|
Status
|
Notes
|
Invoice Number
|
Required
|
Any text will be removed to leave only numbers, i.e. DF1009 will become 1009
|
Invoice Date
|
Required
|
DD/MM/YYYY anything after the date will be removed
|
Line Type
|
Optional
|
'Part' or 'Product' will be added as a part, anything else will be a labour item
|
Part Number
|
Optional
|
Max 15 characters, if set the part will be saved to the inventory, or any existing inventory item will be updated
|
Qty
|
Required
|
Decimal number, will be rounded to 2 decimal places
|
Item Description
|
Required
|
Max 1500 characters
|
Item Discount Percent
|
Optional
|
0-100
|
Cost Price
|
Optional
|
Currency
|
Retail Price
|
Required
|
Currency
|
Purchase Nominal Code
|
Optional
|
Must be a valid nominal code (i.e. 5000), if not set Onyx will use the default as set in Maintenance -> Options -> Tax/Vat/GST Details
|
Sales Nominal Code
|
Optional
|
As above
|
VAT Type
|
Required
|
Must be a valid vat type as saved in Onyx (Maintenance -> VAT Types)
|
VAT Percent
|
Optional
|
If not set Onyx will use the value obtained from VAT Type
|
Row Vat
|
Optional
|
If not set Onyx will calculate this value
|
Row Total
|
Optional
|
If not set only will calculate this value
|
Account Name
|
Optional
|
If not set Onyx will use 'CASH'. If set Onyx will either create a new account, or update an existing one using the data in the following fields
|
Title
Firstname
Surname
CompanyName
Address1
Address2
Address3
City
County
PostCode
ResidentialTelephone
WorkTelephone
Mobile
FAX
Email
|
Optional
|
These values will be used to create or update an account if the 'Account Name' value is supplied. If not, then any value provided in these fields will only be used to display the customer name and address on the printed invoice.
|
Registration Number
|
Optional
|
If set Onyx will create a new vehicle or update any existing record.
|
Manufacturer
Model
VIN
Colour
FuelType
Mileage
|
Optional
|
If 'Registration Number' isn't set then any data here will be ignored. If the registration number is provided, then 'Not Recorded' will be used in place of any missing information in these fields
|
Comments
|
Optional
|
Used to record a message to be displayed to the customer.
The comment must either be repeated in each line, or just the last line of a particular invoice.
i.e.
Inv 1, .......... Tyre Flat
Inv 1, .......... Tyre Flat
Inv 1, .......... Tyre Flat
Inv 2, ..........
Inv 2, .......... Bulb Inop
|
|