fix: remove console and asset loading
This commit is contained in:
parent
d0d6fc2e17
commit
fada84cc47
@ -1042,7 +1042,7 @@
|
|||||||
> .grand-total {
|
> .grand-total {
|
||||||
// font-size: var(--text-lg);
|
// font-size: var(--text-lg);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
padding: var(--padding-md);
|
// padding: var(--padding-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
> .payments {
|
> .payments {
|
||||||
|
@ -12,12 +12,7 @@ erpnext.PointOfSale.Controller = class {
|
|||||||
this.wrapper = $(wrapper).find('.layout-main-section');
|
this.wrapper = $(wrapper).find('.layout-main-section');
|
||||||
this.page = wrapper.page;
|
this.page = wrapper.page;
|
||||||
|
|
||||||
this.load_assets();
|
this.check_opening_entry();
|
||||||
}
|
|
||||||
|
|
||||||
load_assets() {
|
|
||||||
// after loading assets first check if opening entry has been made
|
|
||||||
frappe.require(['assets/erpnext/css/pos.css'], this.check_opening_entry.bind(this));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch_opening_entry() {
|
fetch_opening_entry() {
|
||||||
|
@ -639,9 +639,6 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
scroll_to_item($item) {
|
scroll_to_item($item) {
|
||||||
if ($item.length === 0) return;
|
if ($item.length === 0) return;
|
||||||
const scrollTop = $item.offset().top - this.$cart_items_wrapper.offset().top + this.$cart_items_wrapper.scrollTop();
|
const scrollTop = $item.offset().top - this.$cart_items_wrapper.offset().top + this.$cart_items_wrapper.scrollTop();
|
||||||
console.log($item.offset());
|
|
||||||
console.log(this.$cart_items_wrapper.offset());
|
|
||||||
console.log(scrollTop);
|
|
||||||
this.$cart_items_wrapper.animate({ scrollTop });
|
this.$cart_items_wrapper.animate({ scrollTop });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user