mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
fix: update company in serial no doc
(cherry picked from commit 7a04f0f7ba)
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
@@ -283,6 +283,7 @@ class SerialBatchBundle:
|
|||||||
if (sn_table.purchase_document_no != self.sle.voucher_no and self.sle.is_cancelled != 1)
|
if (sn_table.purchase_document_no != self.sle.voucher_no and self.sle.is_cancelled != 1)
|
||||||
else "Inactive",
|
else "Inactive",
|
||||||
)
|
)
|
||||||
|
.set(sn_table.company, self.sle.company)
|
||||||
.where(sn_table.name.isin(serial_nos))
|
.where(sn_table.name.isin(serial_nos))
|
||||||
).run()
|
).run()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user