fix: production plan issue with sales order (#39901)

This commit is contained in:
rohitwaghchaure 2024-02-14 16:39:33 +05:30 committed by GitHub
parent 6239fd704b
commit d0df5df4a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -652,7 +652,10 @@ class ProductionPlan(Document):
"project": self.project,
}
key = (d.item_code, d.sales_order, d.warehouse)
key = (d.item_code, d.sales_order, d.sales_order_item, d.warehouse)
if self.combine_items:
key = (d.item_code, d.sales_order, d.warehouse)
if not d.sales_order:
key = (d.name, d.item_code, d.warehouse)