Skip to content

Commit

Permalink
fix: Wrong Delete Batch on Purchase Receipt (#42007)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Jun 24, 2024
1 parent 7d91c6c commit d50487c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/public/js/utils/serial_no_batch_selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d50487c

Please sign in to comment.