fix: update company in serial no doc (backport #39733) (#39747)

fix: update company in serial no doc

(cherry picked from commit 7a04f0f7bab1bc36774d41b236e8c4421a6305bd)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
mergify[bot] 2024-02-05 21:55:56 +05:30 committed by GitHub
parent d3c4bd7f5f
commit 00e86bf318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,6 +283,7 @@ class SerialBatchBundle:
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()