fix: Wrong Delete Batch on Purchase Receipt (#42007)

This commit is contained in:
rohitwaghchaure
2024-06-24 14:56:08 +05:30
committed by GitHub
parent 7d91c6cbd5
commit d50487ce53
2 changed files with 2 additions and 0 deletions

View File

@@ -635,6 +635,7 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
set_data(data) {
data.forEach((d) => {
d.qty = Math.abs(d.qty);
d.name = d.child_row || d.name;
this.dialog.fields_dict.entries.df.data.push(d);
});

View File

@@ -1220,6 +1220,7 @@ def get_serial_batch_ledgers(item_code=None, docstatus=None, voucher_no=None, na
"`tabSerial and Batch Entry`.`warehouse`",
"`tabSerial and Batch Entry`.`batch_no`",
"`tabSerial and Batch Entry`.`serial_no`",
"`tabSerial and Batch Entry`.`name` as `child_row`",
]
if not child_row: