Merge pull request #18570 from rohitwaghchaure/add_serial_no_button_not_working

fix: add serial no button not working for the delivery note
This commit is contained in:
rohitwaghchaure 2019-08-04 12:02:43 +05:30 committed by GitHub
commit ed7e074985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,15 @@ $.extend(erpnext, {
var me = this;
$btn.on("click", function() {
me.show_serial_batch_selector(grid_row.frm, grid_row.doc);
let callback = '';
let on_close = '';
if (grid_row.doc.serial_no) {
grid_row.doc.has_serial_no = true;
}
me.show_serial_batch_selector(grid_row.frm, grid_row.doc,
callback, on_close, true);
});
},
});