Merge pull request #33579 from rtdany10/repack-fg-valuation

fix(stock entry): wrong valuation rate in repack
This commit is contained in:
rohitwaghchaure 2023-01-10 00:05:56 +05:30 committed by GitHub
commit 59628f1934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -995,7 +995,9 @@ class StockEntry(StockController):
)
def mark_finished_and_scrap_items(self):
if any([d.item_code for d in self.items if (d.is_finished_item and d.t_warehouse)]):
if self.purpose != "Repack" and any(
[d.item_code for d in self.items if (d.is_finished_item and d.t_warehouse)]
):
return
finished_item = self.get_finished_item()