Skip to content

Commit

Permalink
updated label template
Browse files Browse the repository at this point in the history
  • Loading branch information
oboratav committed Jan 20, 2021
1 parent 1a0f391 commit bfe49e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def generate_zpl_label(shipment: dict, job_id: str) -> dict:
time = now.strftime("%H:%M:%S")
date = now.strftime("%d/%m/%Y")
# really rudimentary string formatting for now
return "^XA^CI28^PON^MUm^FO0,21.75^GB777,0.25,0.25^FS^FO0,66.75^GB777,0.25,0.25^FS^FO0,0^LRY^GB187.5,2.5,6.25^FS^FO3,1.25^A0N,5^FDYURTİÇİ KARGO GÖ^FS^LRN^FO80,6.75^A0N,2.25^FD{date}-{time}^FS^FO5,8.75^A0N,3.125^FDGÖNDEREN^FS^FO7,12.75^A0N,4\^FD{sender_name}^FS^FO7,16.75^A0N,4^FDTEL: {sender_telephone}^FS^FO5,24.75^A0N,3.125^FDALICI^FS^FO7,29.625^A0N,4.75^FD{recipient_name}^FS^FO7,35^A0N,4.75^FB700,3,4,^FD{recipient_address}^FS^FO7,54.75^A0N,4^FDTEL: {recipient_telephone}^FS^FO50,59.75^A0N,5^FB400,1,0,R^FD{recipient_town} ({recipient_city})^FS^FO5,69.75^A0N,3.125^FDİÇERİK^FS^FO7,73.75^A0N,4^FD{contents}^FS^FO64,82.125^A0N,3,3^FDTALEP#^FS^FO48,82.125^A0N,6.625,5^FB400,1,0,R^FD{job_id}^FS^FO3,89.125^A0N,3,3^FDREF#^FS^FO12.875,89.125^A0N,6.625,5^FD{reference}^FS^FO64,89.125^A0N,3,3^FDİRSALİYE#^FS^FO48,89.125^A0N,6.625,5^FB400,1,0,R^FD{waybill_number}^FS^FO0,122^A0N,3,3^FB800,1,0,C^FD{barcode}\&^FS^FO7,125^MUd^BY3,2^BCN,220,N,N,N,N^FWN^FD{barcode}^FS^MUd^XZ".format(
return "^XA^CI28^PON^MUm^FO0,21.75^GB777,0.25,0.25^FS^FO0,66.75^GB777,0.25,0.25^FS^FO0,0^LRY^GB187.5,2.5,6.25^FS^FO3,1.25^A0N,5^FDYURTİÇİ KARGO GÖ^FS^LRN^FO80,6.75^A0N,2.25^FD{date}-{time}^FS^FO5,8.75^A0N,3.125^FDGÖNDEREN^FS^FO7,12.75^A0N,4^FD{sender_name}^FS^FO7,16.75^A0N,4^FDTEL: {sender_telephone}^FS^FO5,24.75^A0N,3.125^FDALICI^FS^FO7,29.625^A0N,4.75^FD{recipient_name}^FS^FO7,35^A0N,4.75^FB700,3,4,^FD{recipient_address}^FS^FO7,54.75^A0N,4^FDTEL: {recipient_telephone}^FS^FO50,59.75^A0N,5^FB400,1,0,R^FD{recipient_town} ({recipient_city})^FS^FO5,69.75^A0N,3.125^FDİÇERİK^FS^FO7,73.75^A0N,4^FD{contents}^FS^FO64,82.125^A0N,3,3^FDTALEP#^FS^FO48,82.125^A0N,6.625,5^FB400,1,0,R^FD{job_id}^FS^FO3,89.125^A0N,3,3^FDREF#^FS^FO12.875,89.125^A0N,6.625,5^FD{reference}^FS^FO64,89.125^A0N,3,3^FDİRSALİYE#^FS^FO48,89.125^A0N,6.625,5^FB400,1,0,R^FD{waybill_number}^FS^FO0,122^A0N,3,3^FB800,1,0,C^FD{barcode}\&^FS^FO7,125^MUd^BY3,2^BCN,220,N,N,N,N^FWN^FD{barcode}^FS^MUd^XZ".format(
date=date,
time=time,
sender_name=SENDER_NAME,
Expand Down

0 comments on commit bfe49e5

Please sign in to comment.