mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-02 21:18:27 +00:00
fix: Set barcode field empty only if it has value (#21425)
- To avoid unnecessary form dirty trigger
This commit is contained in:
@@ -288,7 +288,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
this.setup_sms();
|
||||
this.setup_quality_inspection();
|
||||
let scan_barcode_field = this.frm.get_field('scan_barcode');
|
||||
if (scan_barcode_field) {
|
||||
if (scan_barcode_field && scan_barcode_field.get_value()) {
|
||||
scan_barcode_field.set_value("");
|
||||
scan_barcode_field.set_new_description("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user