Browse Source

fix: add missing semicolons

develop
Saqib Ansari 3 years ago
parent
commit
e39c3f2e69
  1. 5
      erpnext/selling/page/point_of_sale/pos_controller.js
  2. 4
      erpnext/selling/page/point_of_sale/pos_item_details.js

5
erpnext/selling/page/point_of_sale/pos_controller.js

@ -276,14 +276,13 @@ erpnext.PointOfSale.Controller = class {
form_updated: (item, field, value) => {
const item_row = frappe.model.get_doc(item.doctype, item.name);
if (item_row && item_row[field] != value) {
const args = {
field,
value,
item: this.item_details.current_item
}
};
return this.on_cart_update(args)
}
};
return Promise.resolve();
},

4
erpnext/selling/page/point_of_sale/pos_item_details.js

@ -57,7 +57,7 @@ erpnext.PointOfSale.ItemDetails = class {
compare_with_current_item(item) {
// returns true if `item` is currently being edited
return item && item.name == this.current_item.name
return item && item.name == this.current_item.name;
}
toggle_item_details_section(item) {
@ -76,7 +76,7 @@ erpnext.PointOfSale.ItemDetails = class {
this.item_row = item;
this.currency = this.events.get_frm().doc.currency;
this.current_item = item
this.current_item = item;
this.render_dom(item);
this.render_discount_dom(item);

Loading…
Cancel
Save