[FIX] point_of_sale: allow to enter 0 in the cash popup
It was impossible to validate the cash control popup if the value was 0. Now it's possible to validate any amount, including 0. closes odoo/odoo#62256 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
@@ -28,8 +28,6 @@ odoo.define('point_of_sale.CashOpeningPopup', function(require) {
|
||||
}
|
||||
|
||||
startSession() {
|
||||
if(!parseFloat(this.cashBoxValue))
|
||||
return;
|
||||
this.env.pos.bank_statement.balance_start = parseFloat(this.cashBoxValue);
|
||||
this.env.pos.pos_session.state = 'opened';
|
||||
this.rpc({
|
||||
@@ -61,7 +59,6 @@ odoo.define('point_of_sale.CashOpeningPopup', function(require) {
|
||||
}
|
||||
this.render();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CashOpeningPopup.template = 'CashOpeningPopup';
|
||||
|
||||
Reference in New Issue
Block a user