fix: serial and batch selection from delivery note bug fix (#21291)

This commit is contained in:
Saqib
2020-04-16 16:21:35 +05:30
committed by GitHub
parent 17ab1592c7
commit 14cdb24290
2 changed files with 10 additions and 0 deletions

View File

@@ -551,6 +551,10 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
if(!d[k]) d[k] = v;
});
if (d.has_batch_no && d.has_serial_no) {
d.batch_no = undefined;
}
erpnext.show_serial_batch_selector(me.frm, d, (item) => {
me.frm.script_manager.trigger('qty', item.doctype, item.name);
if (!me.frm.doc.set_warehouse)