diff --git a/py_app/app/__pycache__/order_labels.cpython-312.pyc b/py_app/app/__pycache__/order_labels.cpython-312.pyc index 767ed32..2d88b53 100644 Binary files a/py_app/app/__pycache__/order_labels.cpython-312.pyc and b/py_app/app/__pycache__/order_labels.cpython-312.pyc differ 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