labels
This commit is contained in:
parent
994c9958a4
commit
8324f34ca3
@ -8,7 +8,7 @@ from src.components.os_label_printer import *
|
|||||||
from src.lib.helpers import ConfigReader
|
from src.lib.helpers import ConfigReader
|
||||||
|
|
||||||
SYSTEM_ID = "test-linux"
|
SYSTEM_ID = "test-linux"
|
||||||
CSV_PATH="tmp/ferrari_labels3.csv"
|
CSV_PATH="tmp/ferrari_labels4.csv"
|
||||||
TEMPLATE="ferrari_flag_qr_only.prn"
|
TEMPLATE="ferrari_flag_qr_only.prn"
|
||||||
config = ConfigReader(system_id=SYSTEM_ID)
|
config = ConfigReader(system_id=SYSTEM_ID)
|
||||||
printer=Os_Label_Printer(config=config,name="label_printer")
|
printer=Os_Label_Printer(config=config,name="label_printer")
|
||||||
@ -24,6 +24,7 @@ with open(CSV_PATH, "r", encoding="utf-8-sig") as f:
|
|||||||
STOP_SN = int(row["quantity"])
|
STOP_SN = int(row["quantity"])
|
||||||
PN = row["part_number"]
|
PN = row["part_number"]
|
||||||
print(f"PART NUMBER # {PN}")
|
print(f"PART NUMBER # {PN}")
|
||||||
|
input("Press Enter to continue...")
|
||||||
for sn in range(START_SN,STOP_SN+2):
|
for sn in range(START_SN,STOP_SN+2):
|
||||||
timenow = datetime.now()
|
timenow = datetime.now()
|
||||||
print(f"PRINTING LABEL # {sn}")
|
print(f"PRINTING LABEL # {sn}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user