2
0
forked from Wavyzz/dolibarr

TakePOS Can enter payment in several times and with different modes

This commit is contained in:
Laurent Destailleur
2019-03-27 15:42:53 +01:00
committed by unknown
parent 7990d7f018
commit 9a7e6ce178
5 changed files with 108 additions and 48 deletions

View File

@@ -1021,8 +1021,6 @@ function pricejs(amount, mode) {
var main_rounding_unit = <?php echo (int) $conf->global->MAIN_MAX_DECIMALS_UNIT; ?>;
var main_rounding_tot = <?php echo (int) $conf->global->MAIN_MAX_DECIMALS_TOT; ?>;
console.log(amount);
if (mode == 'MU') return amount.toFixed(main_rounding_unit);
if (mode == 'MT') return amount.toFixed(main_rounding_tot);
return 'Bad value for parameter mode';