feat: deal products comments
This commit is contained in:
		@@ -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 = (
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user