How to: Import from File
The CSV grid import functionality is quite flexible and can be used to import a column of data into many of the grids within Khaos Control. There is no fixed file format as such, just be aware of which column in the CSV file you need to import into a specific grid column within Khaos Control. Two examples of importing data are listed below:
- WARNING: It is essential to ensure that grid sorting is consistent across export / import, as the system performs no matching and will blindly import rows in the sequence provided in the CSV file.
Importing Nominal Accounts
In the following example the CSV file called nominals.csv and it contains nominal account codes and descriptions as below:
NACCOUNT_CODE | NACCOUNT_DESC |
---|---|
4000 | Sales type A |
4001 | Sales type B |
4002 | Sales type C |
4009 | Discounts allowed |
4200 | Sale of Assets |
4400 | Credit charges (late payments) |
4900 | Miscellaneous income |
4901 | Royalties received |
4902 | Commissions received |
4903 | Insurance claims |
4904 | Rent income |
4905 | Distribution & carriage |
Import the Nominal Codes
- Open an Accounts screen .
- Open the
[ Accounts | Nominal Accounts | Nominal Accounts ]
. - Press Alt+E or click to enter edit mode.
- Focus on a line in the Code column in the grid.
- Click on the button found to the left of grid column headings and select Tools then Import from File from the options.
- Locate nominals.csv file.
- The system will prompt for the column number to import (in the example file above, nominal account code appears in column 1) enter this value.
- In the next popup the system will ask whether the CSV file contains titles.
Note: the example file above does contain titles / headers, but these are not mandatory. - In the Add new items [Yes] or update existing items [No]? popup click on Yes.
- The system creates a new nominal account for each line in the CSV file, and populates the Code column with the values from column 1 of the CSV.
Import the Nominal Descriptions
The process to import the nominal account descriptions is very similar to importing the codes:
- Focus on the top imported entry in the Description column.
Note: this will likely read Nominal Account ###. - Click on the button found to the left of grid column headings and select Tools then Import from File from the options.
- Locate nominals.csv file.
- The system will prompt for the column number to import, enter 2.
- In the Add new items [Yes] or update existing items [No]? popup click on No.
- The system will update the existing nominal code descriptions (starting with the row selected in point 1).
- Press Ctrl+S or click to save.
Importing Customer/Supplier Price Lists
The following example updates the supplier buy price, however, the same process can be used to update Supplier Ref, etc, or indeed any editable grid column within Khaos Control.
Block Updating Suppliers
To make amendments to your customer / supplier price lists in Excel, firstly you will need to assign stock items to the relevant suppliers. If you have not already done so there are several ways to achieve this, however, the fastest method to perform this en masse is to:
- Open a Stock screen .
- In the
[ Stock | List ]
screen filter for then green select all the stock items you wish to update. - Right click in the grid and select Update Selected Stock Items....
- The Update Selected Stock Items...dialog is displayed.
- Select the appropriate supplier to assign from the drop down and change the Add traffic light to green.
- If required, set the Preferred Supplier option and traffic light appropriately.
- Click Ok to apply the changes.
Export the Supplier Prices to CSV
Now you have stock items assigned to suppliers, you can export the supplier price list grid to CSV:
- Open a Supplier screen .
- Locate and load the supplier and open their
[ Supplier Summary | Supplier Stock ]
screen. - Click on the button and select Send to Notepad.
- In the Export Columns dialog, select Comma Separated.
- Click on OK.
- The resulting csv file will be displayed.
- Save this CSV file:
- Click on File on the Menu Bar and select Save as.
- Select All Files from the Save as type dropdown and save the file with a .CSV extension, for example, stock.csv.
The generated CSV file can then be sent to a supplier in order for them to update their prices, supplier references, etc against the stock items using Excel or similar, and returned for re-import.
- WARNING: It is necessary to ensure that the order of items within the CSV file does not change, as in the following steps, each row will be imported in the exact sequence present in the CSV file.
Import revised prices from a CSV file
- Open a Supplier screen .
- Locate and load the supplier and open their
[ Supplier Summary | Supplier Stock ]
screen. - Select the Buy Price column on the first row from within the grid.
- Click on the button found to the left of grid column headings and select Tools then Import from File from the options.
- Locate the csv file with the buy prices to be imported.
- The system will prompt for the column number to import. In the case of CSV files exported from this grid, Buy Price is in column 3, so enter 3.
- In the next popup the system will ask whether the CSV file contains titles. Files created using Export to Notepad do contain titles, so select Yes.
- In the Add new items [Yes] or update existing items [No]? popup click on No.
- The Buy Prices in the grid will be updated to those specified in column 3 of the CSV file.