Merge remote-tracking branch 'origin/productComment'

This commit is contained in:
2024-11-09 08:35:38 +03:00
4 changed files with 30 additions and 2 deletions

View File

@@ -471,7 +471,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()
@@ -936,6 +937,7 @@ class DealService(BaseService):
# Updating product
deal_product.quantity = request.product.quantity
deal_product.comment = request.product.comment
# Updating deleting old employees
delete_stmt = (