Add import/export tooling and templates
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
StockFill import/export templates
|
||||
=================================
|
||||
|
||||
Each CSV is UTF-8 encoded and uses headers as the first row. Fields marked optional can be left blank.
|
||||
|
||||
- ids are optional; missing ids will be generated automatically.
|
||||
- Names are preferred for mapping relationships (e.g., category name instead of id).
|
||||
|
||||
Files
|
||||
-----
|
||||
- areas_template.csv — columns: id, name, created_at, updated_at
|
||||
- categories_template.csv — columns: id, name, created_at, updated_at
|
||||
- products_template.csv — columns: id, name, category (name), unit_type, bulk_name, barcode, archived, created_at, updated_at
|
||||
- picklists_template.csv — columns: id, area_id, area_name, created_at, completed_at, notes, categories (semicolon separated names), auto_add_new_products
|
||||
- pickitems_template.csv — columns: id, pick_list_id, pick_list_name, product_id, product_name, quantity, is_carton, status, created_at, updated_at
|
||||
|
||||
Notes
|
||||
-----
|
||||
- Category and area names are matched case-insensitively.
|
||||
- Product names are deduplicated case-insensitively; duplicate names will be skipped.
|
||||
- If a referenced name is missing and auto-create is enabled, the importer will create the required area/category/product.
|
||||
- Barcode collisions are avoided automatically during import.
|
||||
@@ -0,0 +1,3 @@
|
||||
id,name,created_at,updated_at
|
||||
# id optional — you can use empty for new rows. created/updated optional
|
||||
Area A,,
|
||||
|
@@ -0,0 +1,2 @@
|
||||
id,name,created_at,updated_at
|
||||
Clothing,,
|
||||
|
@@ -0,0 +1,2 @@
|
||||
id,pick_list_id,pick_list_name,product_id,product_name,quantity,is_carton,status,created_at,updated_at
|
||||
,,"My Pick List",,"Blue T-Shirt",2,false,pending,,
|
||||
|
@@ -0,0 +1,2 @@
|
||||
id,area_id,area_name,created_at,completed_at,notes,categories,auto_add_new_products
|
||||
,,"Area A",,,"","Clothing;Accessories",false
|
||||
|
@@ -0,0 +1,2 @@
|
||||
id,name,category,unit_type,bulk_name,barcode,archived,created_at,updated_at
|
||||
"Blue T-Shirt","Clothing","unit","carton","0123456789012",false,,
|
||||
|
Reference in New Issue
Block a user