60212ff9b9
* fix: point of sale search * fix: pos fetches expired serial nos * fix: pos doesn't refresh on route change * fix: opening balances not set in opening entry * fix: remove debug statement * fix: invalid query if no serial no is reserved by pos invoice * chore: make new order btn primary * chore: filter warehouse by company * chore: add shortcuts for new order and email * fix: cannot fetch serial no if no batch control * chore: add shortcuts for menu items * feat: standard keyboard shortcuts for pos page * feat: display only items that are in stock * fix: empty point of sale page if opening entry dialog is closed * feat: conversion factor in pos item details * fix: show all invalid mode of payments * chore: show all items if allow negative stock is checked * fix: -ve amount set when changing mode of payment * fix: pos closing validations * fix: test * fix: non expired serial no fetching query * fix: cannot dismiss pos opening creation dialog * fix: transalation strings * fix: msgprint to throw * chore: use as_list in frappe.throw * chore: clean up pos invoice.js & .py * fix: codacy * fix: transalation syntax * fix: codacy * fix: set_missing_values called twice from pos page * fix: mode selector with double spaces * fix: do not allow tables in pos additional fields * fix: pos is not defined * feat: set mode of payments for returns * fix: remove naming series from pos profile * fix: error message * fix: minor bugs * chore: re-arrange pos closing entry detail fields * fix: sider & frappe linter * fix: more translation strings * fix: travis * fix: more translation strings * fix: sider * fix: travis * fix: unexpected end of string * fix: travis Co-authored-by: Nabin Hait <nabinhait@gmail.com>
23 lines
634 B
JavaScript
23 lines
634 B
JavaScript
/* global Clusterize */
|
|
frappe.provide('erpnext.PointOfSale');
|
|
{% include "erpnext/selling/page/point_of_sale/pos_controller.js" %}
|
|
frappe.provide('erpnext.queries');
|
|
|
|
frappe.pages['point-of-sale'].on_page_load = function(wrapper) {
|
|
frappe.ui.make_app_page({
|
|
parent: wrapper,
|
|
title: __('Point of Sale'),
|
|
single_column: true
|
|
});
|
|
|
|
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();
|
|
}
|
|
} |