# Import Price List from Excel

This feature lets you load the lines of a purchase price list from an Excel file, or download an empty Excel template to fill in. For price lists linked to a purchases source, an additional action aligns the vendor and purchases source of the items included in the price list.


Open a purchase price list (**Purchase Price List** page) and, in the **Process** menu, use the actions:

- **Import from Excel**
- **Align Purchases Source**


When you choose the action, you are asked to pick one of three options:

| Option | Description |
|---|---|
| Modify price list | Imports the Excel file, updating existing lines for items already in the price list and appending lines for new items. |
| Overwrite price list | Deletes all lines of the price list and recreates them from the Excel file. |
| Export template | Downloads an empty Excel file with the column headers to fill in. |

The import options are available only when the price list has the **Draft** status.


The file must be in `.xlsx` format and contain a sheet named **Price List** (the same name used in the exported template). The first row contains the headers and is skipped; each following row corresponds to one item.

| Column | Field | Description |
|---|---|---|
| 1 | Product No. | Code identifying the item: item number or one of its references (e.g. barcode or vendor item number). |
| 2 | Direct Unit Cost | Purchase cost. Used only when the **Price List Base** column is empty; in this case the line discount is reset to zero. |
| 3 | Discount 1 % | First discount. Used only when the **Price List Base** is N or L. |
| 4 | Discount 2 % | Second discount. Used only when the **Price List Base** is N or L. |
| 5 | Price List Base | What the price is based on: empty = direct cost; **N** = public price (no VAT); **L** = public price. In the template, the header cell carries a comment with this legend. |
| 6 | Starting Date | Date from which the price list line is valid. |

When the base is N or L, the line's direct unit cost is set to zero and the price is calculated from the item's public price by applying the specified discounts.


1. Open the purchase price list in **Draft** status.
2. Choose **Import from Excel** and select **Export template** to download the template, if needed.
3. Fill in the template with the items and their prices or discounts.
4. Choose **Import from Excel** again and select **Modify price list** or **Overwrite price list**.
5. Select the Excel file to upload.


- New lines inherit the price type and the source (e.g. vendor) from the price list header and are of type **Item**.
- With **Modify price list**, if the item is already in the price list, the existing line is updated instead of creating a new one.
- If the code in column 1 does not match any item, the row is skipped. At the end of the import, an activity log opens listing the items not found ("Item ... not found" message).


The action is enabled only when the price list's source type is a **Purchases Source**. The specified purchases source must have a vendor assigned.

After a confirmation prompt ("Align purchases source of price list items?"), for each item in the price list lines the following are set:

- the item's **Vendor No.**, equal to the vendor of the purchases source;
- the item's **purchases source**, equal to the one of the price list.

Items that are already aligned are not modified.