[FIX] point_of_sale: do not display False as currency if symbol is not set
This commit is contained in:
parent
7cbd524448
commit
9066da3369
|
@ -33,9 +33,9 @@ function openerp_pos_basewidget(instance, module){ //module is instance.point_of
|
||||||
amount = amount.toFixed(decimals);
|
amount = amount.toFixed(decimals);
|
||||||
}
|
}
|
||||||
if(this.currency.position === 'after'){
|
if(this.currency.position === 'after'){
|
||||||
return amount + ' ' + this.currency.symbol;
|
return amount + ' ' + (this.currency.symbol || '');
|
||||||
}else{
|
}else{
|
||||||
return this.currency.symbol + ' ' + amount;
|
return (this.currency.symbol || '') + ' ' + amount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue