fix: sider issues
This commit is contained in:
parent
45a89a7c67
commit
3382655b5e
@ -242,7 +242,7 @@ erpnext.PointOfSale.Controller = class {
|
||||
get_frm: () => this.frm,
|
||||
|
||||
cart_item_clicked: (item_code, batch_no, uom, rate) => {
|
||||
const item_row = this.get_item_from_frm(item_code, batch_no, uom, rate)
|
||||
const item_row = this.get_item_from_frm(item_code, batch_no, uom, rate);
|
||||
this.item_details.toggle_item_details_section(item_row);
|
||||
},
|
||||
|
||||
|
@ -62,16 +62,16 @@ erpnext.PointOfSale.ItemDetails = class {
|
||||
const rate_is_same = item && rate === item.rate;
|
||||
|
||||
if (!item)
|
||||
return false
|
||||
return false;
|
||||
|
||||
if (item_code_is_same && batch_is_same && uom_is_same && rate_is_same)
|
||||
return false
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
toggle_item_details_section(item) {
|
||||
this.item_has_changed = this.has_item_has_changed(item)
|
||||
this.item_has_changed = this.has_item_has_changed(item);
|
||||
|
||||
this.events.toggle_item_selector(this.item_has_changed);
|
||||
this.toggle_component(this.item_has_changed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user