fix: serial and batch selector

This commit is contained in:
Rohit Waghchaure 2023-04-07 11:21:01 +05:30
parent 26b39ac7f4
commit 39da92929b
2 changed files with 3 additions and 1 deletions

View File

@ -524,6 +524,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
if (r.message &&
(r.message.has_batch_no || r.message.has_serial_no)) {
frappe.flags.hide_serial_batch_dialog = false;
} else {
show_batch_dialog = false;
}
});
},

View File

@ -29,6 +29,7 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
primary_action: () => this.update_ledgers()
});
this.dialog.set_value("qty", this.item.qty);
this.dialog.show();
}
@ -127,7 +128,6 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
{
fieldtype: 'Float',
fieldname: 'qty',
default: this.item.qty || 0,
label: __('Qty to Fetch'),
onchange: () => this.get_auto_data()
},