feat: deal products comments

This commit is contained in:
2024-11-07 21:33:56 +04:00
parent fced9b8101
commit 151c7767b1
4 changed files with 30 additions and 2 deletions

View File

@@ -470,7 +470,8 @@ class DealService(BaseService):
deal_product = models.secondary.DealProduct(
deal_id=new_deal.id,
product_id=old_deal_product.product.id,
quantity=old_deal_product.quantity
quantity=old_deal_product.quantity,
comment=old_deal_product.comment,
)
self.session.add(deal_product)
await self.session.flush()
@@ -935,6 +936,7 @@ class DealService(BaseService):
# Updating product
deal_product.quantity = request.product.quantity
deal_product.comment = request.product.comment
# Updating deleting old employees
delete_stmt = (