From bf8e83750177306d4ec4320cc629500cf0e35fc0 Mon Sep 17 00:00:00 2001 From: Scheianu Ionut Date: Wed, 17 Sep 2025 19:12:30 +0300 Subject: [PATCH] updated print --- .../__pycache__/order_labels.cpython-312.pyc | Bin 15011 -> 15063 bytes py_app/app/order_labels.py | 4 ++-- sample_orders.csv | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 sample_orders.csv diff --git a/py_app/app/__pycache__/order_labels.cpython-312.pyc b/py_app/app/__pycache__/order_labels.cpython-312.pyc index 767ed3277929ac241750fc6fd0cfd48c3da57aad..2d88b5301c98f16b856fd2200ec362d7973a0766 100644 GIT binary patch delta 330 zcmZ2ndcBnQG%qg~0}!wTpU8;V$otKhO9;qg2I9{XCi9xKar!VY)UwntXK_vz2LmmqRhOK)Rg#~#H7@mVx7s~ z%=WXt^tjveB`JEY< n4_Pq+*@qceomnUEvn*g-H(B3GigC+iFRMTfZAPJ@%|P1#xAaU8W=ussZPFU z;lRj0S>7^IPEK)w(#-T55bC2epETcB20mW?56t|W{2!Di&$YCYmUfb3I3&mE%*cF5 zo!`lZ`H&eSh;75_%sBazWq}OH{FMx!fh0qb3Xu54VUwGmQks)$SF~wzomC)*7Nbzn HMxX=$>>^61 diff --git a/py_app/app/order_labels.py b/py_app/app/order_labels.py index 78a3ff3..9ff0bf0 100644 --- a/py_app/app/order_labels.py +++ b/py_app/app/order_labels.py @@ -113,10 +113,10 @@ def add_order_to_database(order_data): INSERT INTO order_for_labels (comanda_productie, cod_articol, descr_com_prod, cantitate, com_achiz_client, nr_linie_com_client, customer_name, - customer_article_number, open_for_order, line_number) + customer_article_number, open_for_order, line_number, printed_labels) VALUES (%(comanda_productie)s, %(cod_articol)s, %(descr_com_prod)s, %(cantitate)s, %(com_achiz_client)s, %(nr_linie_com_client)s, %(customer_name)s, - %(customer_article_number)s, %(open_for_order)s, %(line_number)s) + %(customer_article_number)s, %(open_for_order)s, %(line_number)s, 0) """ cursor.execute(sql, insert_data) diff --git a/sample_orders.csv b/sample_orders.csv deleted file mode 100644 index 8480e6a..0000000 --- a/sample_orders.csv +++ /dev/null @@ -1,6 +0,0 @@ -Comanda Productie,Cod Articol,Descr. Com. Prod,Cantitate,Com.Achiz.Client,Nr. Linie com. Client,Customer Name,Customer Article Number,Open for order,Line -CP001234,ART001,Sample Production Order 1,100,CLIENT-PO-001,1,ABC Company Ltd,CUST-ART-001,Yes,1 -CP001235,ART002,Sample Production Order 2,150,CLIENT-PO-002,2,XYZ Corporation,CUST-ART-002,Yes,1 -CP001236,ART003,Sample Production Order 3,75,CLIENT-PO-003,1,DEF Industries,CUST-ART-003,No,2 -CP001237,ART004,Sample Production Order 4,200,CLIENT-PO-004,3,GHI Manufacturing,CUST-ART-004,Yes,1 -CP001238,ART005,Sample Production Order 5,50,CLIENT-PO-005,1,JKL Enterprises,CUST-ART-005,Yes,3 \ No newline at end of file