brotherton-erpnext/erpnext/selling/page/point_of_sale/point_of_sale.js
2021-02-01 19:51:25 +05:30

22 lines
577 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('assets/js/point-of-sale.min.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();
}
};