fix: batch selector flag (#31191)

This is broken again after serializing scan actions, which causes
selector to trigger before batch_no is set.

Solution: for duration of scan disable the selector
This commit is contained in:
Ankush Menat
2022-05-31 14:14:27 +05:30
committed by GitHub
parent a8f98f3f96
commit ddb46c5711
2 changed files with 6 additions and 7 deletions

View File

@@ -526,12 +526,6 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
if(!d[k]) d[k] = v;
});
if (d.__disable_batch_serial_selector) {
// reset for future use.
d.__disable_batch_serial_selector = false;
return;
}
if (d.has_batch_no && d.has_serial_no) {
d.batch_no = undefined;
}