diff --git a/services/billing.py b/services/billing.py index 075ebf0..98c772c 100644 --- a/services/billing.py +++ b/services/billing.py @@ -178,7 +178,7 @@ class BillingService(BaseService): services = await self._get_services_for_deal(deal) - deal_price = sum((service.price for service in services)) + deal_price = sum((service.price * service.amount for service in services)) deal_price_words = get_string_by_number(deal_price)[0:-10] template = env.get_template("bill-of-payment.html") diff --git a/templates/documents/bill-of-payment.html b/templates/documents/bill-of-payment.html index 4a70987..02d0f4c 100644 --- a/templates/documents/bill-of-payment.html +++ b/templates/documents/bill-of-payment.html @@ -160,11 +160,9 @@ -