minor fix print info consumer when

delivery_amount is None
This commit is contained in:
Wilson Gomez 2023-11-03 21:31:37 -05:00
parent 0ac16c993e
commit 81e1be2211
1 changed files with 1 additions and 2 deletions

View File

@ -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)