Merge pull request #39733 from s-aga-r/FIX-9458

fix: update company in serial no doc
This commit is contained in:
s-aga-r 2024-02-05 21:54:02 +05:30 committed by GitHub
commit ae4ebcd987
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()