Paste #954

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
=== BEFORE =====

            codeImg = Code128(str(data['custshiptonum']),barWidth=.9, barHei
ght=8)
            codeImg.drawOn(canv,x + 10 , y - 60, '')
            canv.drawCentredString(x + (LABELW/2),y - 70 ,data['custshiptonu
m'])
        canv.showPage()
    canv.save()

    deliver_output(printer,label_type,data['custshiptonum'],tempPdfFile.name
)
==== after ======
156         if page_row_ctr == ROWS_PER_PG:
157             canv.showPage()
158             page_row_ctr = 0
159
160     canv.save()
161     tfname = tempPdfFile.name
162     tempPdfFile.close()
163     deliver_output(printer,label_type, mk_timestamp(),tfname )