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 logging
|
||||
import traceback
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
import subprocess
|
||||
|
@ -648,7 +647,7 @@ class Receipt(object):
|
|||
payment_method = '- PAGA EN EFECTIVO'
|
||||
self._printer.text(f'MEDIO DE PAGO: {payment_method}')
|
||||
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.ln(2)
|
||||
|
||||
|
|
Loading…
Reference in New Issue