Skip to content

Commit

Permalink
fix: update company in serial no doc (backport #39733) (#39747)
Browse files Browse the repository at this point in the history
fix: update company in serial no doc

(cherry picked from commit 7a04f0f)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r authored Feb 5, 2024
1 parent d3c4bd7 commit 00e86bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/stock/serial_batch_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def set_warehouse_and_status_in_serial_nos(self):
if (sn_table.purchase_document_no != self.sle.voucher_no and self.sle.is_cancelled != 1)
else "Inactive",
)
.set(sn_table.company, self.sle.company)
.where(sn_table.name.isin(serial_nos))
).run()

Expand Down

0 comments on commit 00e86bf

Please sign in to comment.