minor fix print info consumer when
delivery_amount is None
This commit is contained in:
parent
0ac16c993e
commit
81e1be2211
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
import traceback
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -648,7 +647,7 @@ class Receipt(object):
|
||||||
payment_method = '- PAGA EN EFECTIVO'
|
payment_method = '- PAGA EN EFECTIVO'
|
||||||
self._printer.text(f'MEDIO DE PAGO: {payment_method}')
|
self._printer.text(f'MEDIO DE PAGO: {payment_method}')
|
||||||
self._printer.ln(2)
|
self._printer.ln(2)
|
||||||
delivery_amount = money(sale.get('delivery_amount', 0))
|
delivery_amount = money(sale.get('delivery_amount', 0) or 0)
|
||||||
self._printer.text(f'Domicilio: {delivery_amount}')
|
self._printer.text(f'Domicilio: {delivery_amount}')
|
||||||
self._printer.ln(2)
|
self._printer.ln(2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue