updated print

This commit is contained in:
2025-09-17 19:12:30 +03:00
parent ceda2447a6
commit bf8e837501
3 changed files with 2 additions and 8 deletions

View File

@@ -113,10 +113,10 @@ def add_order_to_database(order_data):
INSERT INTO order_for_labels INSERT INTO order_for_labels
(comanda_productie, cod_articol, descr_com_prod, cantitate, (comanda_productie, cod_articol, descr_com_prod, cantitate,
com_achiz_client, nr_linie_com_client, customer_name, 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, 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, %(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) cursor.execute(sql, insert_data)

View File

@@ -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
1 Comanda Productie Cod Articol Descr. Com. Prod Cantitate Com.Achiz.Client Nr. Linie com. Client Customer Name Customer Article Number Open for order Line
2 CP001234 ART001 Sample Production Order 1 100 CLIENT-PO-001 1 ABC Company Ltd CUST-ART-001 Yes 1
3 CP001235 ART002 Sample Production Order 2 150 CLIENT-PO-002 2 XYZ Corporation CUST-ART-002 Yes 1
4 CP001236 ART003 Sample Production Order 3 75 CLIENT-PO-003 1 DEF Industries CUST-ART-003 No 2
5 CP001237 ART004 Sample Production Order 4 200 CLIENT-PO-004 3 GHI Manufacturing CUST-ART-004 Yes 1
6 CP001238 ART005 Sample Production Order 5 50 CLIENT-PO-005 1 JKL Enterprises CUST-ART-005 Yes 3