From c6ad98b99dd49902bb54c2f998d86eaa4ac1edb8 Mon Sep 17 00:00:00 2001 From: Wilson Gomez Date: Wed, 6 Sep 2023 17:30:27 -0500 Subject: [PATCH] minor fix --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 65e00fc..bc85fe4 100644 --- a/sale.py +++ b/sale.py @@ -438,7 +438,7 @@ class Sale(metaclass=PoolMeta): if args.get('shipment_date'): shipment_date = args['shipment_date'] delivery = args.get('delivery_amount', 0) - if args.get('delivery_invoice') and delivery and int(delivery) > 0: + if args.get('delivery_invoice') and delivery and float(delivery) > 0: product = config.delivery_product lines.append({ 'product': product.id,