fix: update company in serial no doc

This commit is contained in:
s-aga-r 2024-02-05 12:35:26 +05:30
parent 617d923f0d
commit 7a04f0f7ba

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()