mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix: do not override source document in serial no
This commit is contained in:
@@ -1301,7 +1301,7 @@ class SerialandBatchBundle(Document):
|
||||
sn_table.purchase_document_no,
|
||||
self.voucher_no if not sn_table.purchase_document_no else self.voucher_no,
|
||||
)
|
||||
.where(sn_table.name.isin(serial_nos))
|
||||
.where((sn_table.name.isin(serial_nos)) & (sn_table.purchase_document_no.isnull()))
|
||||
).run()
|
||||
|
||||
def validate_serial_and_batch_inventory(self):
|
||||
|
||||
Reference in New Issue
Block a user