change validation resoluion in invoice subtype

This commit is contained in:
root 2023-07-27 13:27:47 +00:00
parent 2959ae5ab4
commit 3e97d453b9

3
api.py
View File

@ -31,7 +31,8 @@ def print_bill(data, address):
printer.text(d["shop_address"]+'\n')
printer.set(align='right', bold=False, height=1, width=1)
printer.textln('========================')
if d['invoice']:
if d['invoice'] and d['invoice']['resolution']:
text = "Resolucion de Facturacion # "+str(d['invoice']['resolution']['resolution_number']) \
+ "\nValida desde "+d['invoice']['resolution']['valid_date_time_from']+ \
" hasta "+str(d['invoice']['resolution']['valid_date_time_to'])