Skip to content

Commit

Permalink
fix: auto serial and batch bundle not creating for Asset Capitalizati…
Browse files Browse the repository at this point in the history
…on (backport #42231) (#42242)

fix: auto serial and batch bundle not creating for Asset Capitalization (#42231)

(cherry picked from commit 5f53ad3)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Jul 9, 2024
1 parent 3f82ce2 commit 7916d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/stock_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def make_bundle_using_old_serial_batch_fields(self, table_name=None, via_landed_
"do_not_submit": True if not via_landed_cost_voucher else False,
}

if row.get("qty") or row.get("consumed_qty"):
if row.get("qty") or row.get("consumed_qty") or row.get("stock_qty"):
self.update_bundle_details(bundle_details, table_name, row)
self.create_serial_batch_bundle(bundle_details, row)

Expand Down

0 comments on commit 7916d64

Please sign in to comment.