summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-05-13 08:52:57 +0000
committerPierre Masereel <pim@odoo.com>2019-07-23 07:41:20 +0000
commit733fb360d25f885bd5c5b4688bbbc7f306f6f648 (patch)
tree33ca83ba985c6e2fd2039c8ba4ad70f1ff13ecb8 /addons/web/static/src/js/views/basic/basic_controller.js
parent0d9c36254fe47a0ca64f598251780cb03c6ddeb6 (diff)
[IMP] account, point_of_sale: properly handle cashbox
When you use a cash journal in the point of sale, you can enable the 'Cash Control' option on your pos config to be able to count the money in your cashbox before and after selling goods in the POS. To better manage this behavior, we've made some improvements to handle the starting and ending of a session. First, instead of having just some cashbox lines set on the pos config representing the default cash fund in the cashbox, we are using an object of type cashbox as template. This allows to use the same default config for multiple POS config without recreating it. Then, we've added a currency on the cashbox, which is just computed based on the currency referencing the cashbox. When a POS session is open, the content of the cashbox is the same as the last closed session, to represent how a real cashbox works. We also always have the possibility to set the default cashbox of the POS config at the begining of a session. TASK-ID: 1934784
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions