Merge branch 'develop' into add-fb-to-je
This commit is contained in:
commit
f60e303ac7
@ -408,7 +408,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
|
|
||||||
show_description(row_to_modify.idx, row_to_modify.item_code);
|
show_description(row_to_modify.idx, row_to_modify.item_code);
|
||||||
|
|
||||||
this.frm.from_barcode = true;
|
this.frm.from_barcode = this.frm.from_barcode ? this.frm.from_barcode + 1 : 1;
|
||||||
frappe.model.set_value(row_to_modify.doctype, row_to_modify.name, {
|
frappe.model.set_value(row_to_modify.doctype, row_to_modify.name, {
|
||||||
item_code: data.item_code,
|
item_code: data.item_code,
|
||||||
qty: (row_to_modify.qty || 0) + 1
|
qty: (row_to_modify.qty || 0) + 1
|
||||||
@ -492,7 +492,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
d.item_code = "";
|
d.item_code = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.frm.from_barcode = true;
|
this.frm.from_barcode = this.frm.from_barcode ? this.frm.from_barcode + 1 : 1;
|
||||||
this.item_code(doc, cdt, cdn);
|
this.item_code(doc, cdt, cdn);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -509,11 +509,12 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
show_batch_dialog = 1;
|
show_batch_dialog = 1;
|
||||||
}
|
}
|
||||||
// clear barcode if setting item (else barcode will take priority)
|
// clear barcode if setting item (else barcode will take priority)
|
||||||
if(!this.frm.from_barcode) {
|
if (this.frm.from_barcode == 0) {
|
||||||
item.barcode = null;
|
item.barcode = null;
|
||||||
}
|
}
|
||||||
|
this.frm.from_barcode = this.frm.from_barcode - 1 >= 0 ? this.frm.from_barcode - 1 : 0;
|
||||||
|
|
||||||
|
|
||||||
this.frm.from_barcode = false;
|
|
||||||
if(item.item_code || item.barcode || item.serial_no) {
|
if(item.item_code || item.barcode || item.serial_no) {
|
||||||
if(!this.validate_company_and_party()) {
|
if(!this.validate_company_and_party()) {
|
||||||
this.frm.fields_dict["items"].grid.grid_rows[item.idx - 1].remove();
|
this.frm.fields_dict["items"].grid.grid_rows[item.idx - 1].remove();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user