brotherton-erpnext/erpnext/selling/page/point_of_sale/point_of_sale.js
2021-05-07 14:53:42 +05:30

23 lines
571 B
JavaScript

frappe.provide('erpnext.PointOfSale');
frappe.pages['point-of-sale'].on_page_load = function(wrapper) {
frappe.ui.make_app_page({
parent: wrapper,
title: __('Point of Sale'),
single_column: true
});
frappe.require('point-of-sale.bundle.js', function() {
wrapper.pos = new erpnext.PointOfSale.Controller(wrapper);
window.cur_pos = wrapper.pos;
});
};
frappe.pages['point-of-sale'].refresh = function(wrapper) {
if (document.scannerDetectionData) {
onScan.detachFrom(document);
wrapper.pos.wrapper.html("");
wrapper.pos.check_opening_entry();
}
};