From 52860f9a14381cad0f79e5764f36aa450453455c Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 14 Nov 2025 03:50:16 +0300 Subject: [PATCH] feat: article as product identifier --- services/billing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/billing.py b/services/billing.py index dac0291..ec4f373 100644 --- a/services/billing.py +++ b/services/billing.py @@ -310,8 +310,10 @@ class BillingService(BaseService): for product in card.products: product_price = 0 for service in product.services: + p = product.product + product_identifier = p.article.strip() or p.factory_article.strip() or p.name.strip() service_data = ServiceBillingDocumentPdf( - name=f'[{product.product.name}] - {service.service.name}', + name=f'[{product_identifier}] - {service.service.name}', price=service.price, quantity=product.quantity )