-
- Downloads
[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
Showing
- addons/account/models/account_bank_statement.py 73 additions, 23 deletionsaddons/account/models/account_bank_statement.py
- addons/account/views/account_view.xml 34 additions, 23 deletionsaddons/account/views/account_view.xml
- addons/point_of_sale/models/pos_config.py 61 additions, 15 deletionsaddons/point_of_sale/models/pos_config.py
- addons/point_of_sale/models/pos_session.py 5 additions, 25 deletionsaddons/point_of_sale/models/pos_session.py
- addons/point_of_sale/security/ir.model.access.csv 1 addition, 1 deletionaddons/point_of_sale/security/ir.model.access.csv
- addons/point_of_sale/tests/test_anglo_saxon.py 4 additions, 1 deletionaddons/point_of_sale/tests/test_anglo_saxon.py
- addons/point_of_sale/views/account_statement_view.xml 47 additions, 29 deletionsaddons/point_of_sale/views/account_statement_view.xml
- addons/point_of_sale/views/pos_config_view.xml 1 addition, 4 deletionsaddons/point_of_sale/views/pos_config_view.xml
- addons/point_of_sale/views/pos_session_view.xml 1 addition, 1 deletionaddons/point_of_sale/views/pos_session_view.xml
- addons/pos_mercury/views/pos_mercury_views.xml 5 additions, 2 deletionsaddons/pos_mercury/views/pos_mercury_views.xml
Loading
Please register or sign in to comment