fix: do not remove item which has zero qty and zero valuation

This commit is contained in:
Rohit Waghchaure
2025-06-04 13:08:45 +05:30
parent 7bddd64771
commit 86e4a658a5

View File

@@ -163,6 +163,9 @@ class StockReconciliation(StockController):
def set_current_serial_and_batch_bundle(self, voucher_detail_no=None, save=False) -> None:
"""Set Serial and Batch Bundle for each item"""
for item in self.items:
if voucher_detail_no and voucher_detail_no != item.name:
continue
if not item.item_code:
continue
@@ -232,9 +235,6 @@ class StockReconciliation(StockController):
if not save and item.use_serial_batch_fields:
continue
if voucher_detail_no and voucher_detail_no != item.name:
continue
if not item.current_serial_and_batch_bundle:
serial_and_batch_bundle = frappe.get_doc(
{