fix: serial and batch selector
This commit is contained in:
parent
26b39ac7f4
commit
39da92929b
@ -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;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -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()
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user