aboutsummaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-07-29 12:02:46 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-07-29 12:02:46 +0200
commit4dfe4314efc0a4137899f7a0fce7b653a34219ca (patch)
treeb89bb221d949e3ea06432376b714d24d82b25634 /demo
parentde9e6739543fd6a589b80184e5452a6a5cdb1196 (diff)
downloadee-python-4dfe4314efc0a4137899f7a0fce7b653a34219ca.tar.gz
ee-python-4dfe4314efc0a4137899f7a0fce7b653a34219ca.tar.bz2
ee-python-4dfe4314efc0a4137899f7a0fce7b653a34219ca.tar.xz
ee-python-4dfe4314efc0a4137899f7a0fce7b653a34219ca.zip
o Starting on a digikey-specific order csv.
o Better demo, one generic order csv and two for digikey with different batch sizes.
Diffstat (limited to 'demo')
-rw-r--r--demo/doit/dodo.py12
-rw-r--r--demo/doit/ee/digikey-100.csv4
-rw-r--r--demo/doit/ee/digikey.csv4
-rw-r--r--demo/doit/ee/order-100.csv4
4 files changed, 17 insertions, 7 deletions
diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py
index c5372fc..145c0a7 100644
--- a/demo/doit/dodo.py
+++ b/demo/doit/dodo.py
@@ -33,7 +33,13 @@ ee.bom.doit.init(
def task_orders():
data_sets = [ee.bom.doit.output_data_set_for_task(task_bom)]
+ yield create_task_order_csv(
+ output_file="ee/order.csv",
+ data_sets=data_sets)
+
for size in [1, 100]:
- yield create_task_order_csv("ee/order-{}.csv".format(size) if size != 1 else "ee/order.csv",
- data_sets,
- count=size)
+ yield create_task_order_csv(
+ output_file="ee/digikey-{}.csv".format(size) if size != 1 else "ee/digikey.csv",
+ style="digikey",
+ data_sets=data_sets,
+ count=size)
diff --git a/demo/doit/ee/digikey-100.csv b/demo/doit/ee/digikey-100.csv
new file mode 100644
index 0000000..bad6173
--- /dev/null
+++ b/demo/doit/ee/digikey-100.csv
@@ -0,0 +1,4 @@
+Digi-Key Part Number,Customer Reference,Quantity,MPN
+,BT1,100,BC2AAPC
+,"R2,R1",200,RMCF1206JT10K0
+,C1,100,UCA2G100MPD1TD
diff --git a/demo/doit/ee/digikey.csv b/demo/doit/ee/digikey.csv
new file mode 100644
index 0000000..a813638
--- /dev/null
+++ b/demo/doit/ee/digikey.csv
@@ -0,0 +1,4 @@
+Digi-Key Part Number,Customer Reference,Quantity,MPN
+,BT1,1,BC2AAPC
+,"R2,R1",2,RMCF1206JT10K0
+,C1,1,UCA2G100MPD1TD
diff --git a/demo/doit/ee/order-100.csv b/demo/doit/ee/order-100.csv
deleted file mode 100644
index 4f5b439..0000000
--- a/demo/doit/ee/order-100.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-MPN,Count,References
-BC2AAPC,100,BT1
-RMCF1206JT10K0,200,"R2,R1"
-UCA2G100MPD1TD,100,C1