Import materials
- Available on
- Trial
- Pro
- Enterprise
- Who can do this
- Import materialsRoles: Administrator
Permission: product:write
- Import materialsRoles: Administrator
The materials import adds and updates the materials you buy, such as flour or packaging, from a CSV file. A row whose sku matches a material’s SKU updates that material, and any other row adds one; the row can also name the material’s default supplier and its lead time.
Where you start it
Section titled “Where you start it”On the Materials screen, open Actions and click Import materials…. How a CSV import works explains the dialog, the file and its formats.
What a row does
Section titled “What a row does”- No material has the row’s SKU: the row adds a purchased material,
ACTIVEwhen the row leaves its status empty, kept by lot only whenlotTrackedsays yes. - A material has the row’s SKU: the row updates it, as saving the material’s page does. Its name, material type and unit are read from every row; its description, lot tracking and status change only where the row fills them in.
The default supplier. A supplierNumber makes that supplier the material’s default supplier, as Make default does on the material’s page; the supplier that was the default stays one of the material’s suppliers, with its own terms. A leadTimeDays sets the default supplier’s lead time and needs a supplierNumber beside it. An empty supplierNumber leaves the material’s suppliers as they are. werkplan plans material that isn’t in stock or on order by the default supplier’s lead time.
Import your suppliers first: supplierNumber names a supplier by its number, exactly. uomCode names a unit of measure that exists in werkplan.
Columns
Section titled “Columns”| Column | Format | What it holds | Example |
|---|---|---|---|
skuRequiredImport key | Text | The code the material is known by; a re-import updates the material with this SKU | FLR-RYE-997 |
nameRequired | Text | The material's name | Rye flour type 997 |
materialTypeRequired | One of RAW_MATERIAL, COMPONENT, CONSUMABLE, PACKAGING | What kind of material it is | RAW_MATERIAL |
uomCodeRequired | Text | The code of the unit it is counted in | KG |
description | Text | What the material is | Wholegrain, 25 kg sacks |
lotTracked | Yes or no | Whether its stock is kept by lot; a new material is not when empty | yes |
status | One of ACTIVE, INACTIVE, DISCONTINUED | A new material is ACTIVE when empty | ACTIVE |
supplierNumber | Text | The number of the supplier it is bought from, made its default supplier; empty leaves its suppliers as they are | S-0107 |
leadTimeDays | Whole number | Calendar days from ordering it from that supplier to its delivery; needs supplierNumber, and empty keeps the supplier's lead time | 5 |
What it refuses
Section titled “What it refuses”- A
skuthat a variant has, or that an earlier row of the file has. - A row that would add a material named like one that has no SKU: give that material its SKU on its page first, so the row updates it instead of adding it twice.
- A
uomCodeorsupplierNumberthat matches nothing, a lead time below zero, and a lead time without a supplier. - When it is written: a change of unit while documents, supplier terms or stock use the material, and a change of lot tracking while it is in stock.
Still stuck? Write to support@example.com.