mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
23 lines
575 B
JavaScript
23 lines
575 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();
|
|
}
|
|
};
|