fix: linting

This commit is contained in:
Mohammad Hasnain Mohsin Rajan 2020-12-09 12:36:14 +05:30 committed by GitHub
parent 69514c4761
commit deaf2e80cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,10 +509,10 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
show_batch_dialog = 1;
}
// clear barcode if setting item (else barcode will take priority)
if(this.frm.from_barcode == 0) {
if (this.frm.from_barcode == 0) {
item.barcode = null;
}
this.frm.from_barcode = this.frm.from_barcode - 1 >= 0 ? this.frm.from_barcode - 1 : 0
this.frm.from_barcode = this.frm.from_barcode - 1 >= 0 ? this.frm.from_barcode - 1 : 0;
if(item.item_code || item.barcode || item.serial_no) {