diff --git a/modules/ddt/actions.php b/modules/ddt/actions.php index 21f788c51..8cda1f028 100644 --- a/modules/ddt/actions.php +++ b/modules/ddt/actions.php @@ -238,12 +238,12 @@ switch (post('op')) { $um = post('um')[$idriga]; $abilita_serial = post('abilita_serial')[$idriga]; - $subtot = $post['subtot'][$idriga] * $qta; - $sconto = $post['sconto'][$idriga]; + $subtot = Translator::numberToLocale($post['subtot'][$idriga]) * $qta; + $sconto = Translator::numberToLocale($post['sconto'][$idriga]); $sconto = $sconto * $qta; $idiva = post('idiva')[$idriga]; - $iva = $post['iva'][$idriga] * $qta; + $iva = Translator::numberToLocale($post['iva'][$idriga]) * $qta; $qprc = 'SELECT tipo_sconto, sconto_unitario FROM or_righe_ordini WHERE id='.prepare($idriga); $rsprc = $dbo->fetchArray($qprc); diff --git a/modules/fatture/actions.php b/modules/fatture/actions.php index aace1c8e4..25405de17 100644 --- a/modules/fatture/actions.php +++ b/modules/fatture/actions.php @@ -952,8 +952,8 @@ switch (post('op')) { $descrizione = post('descrizione')[$i]; $qta = $post['qta_da_evadere'][$i]; $um = $post['um'][$i]; - $subtot = $post['subtot'][$i] * $qta; - $sconto = $post['sconto'][$i]; + $subtot = Translator::numberToLocale($post['subtot'][$i]) * $qta; + $sconto = Translator::numberToLocale($post['sconto'][$i]); $sconto = $sconto * $qta; $idiva = post('idiva')[$i]; @@ -1034,10 +1034,10 @@ switch (post('op')) { $descrizione = post('descrizione')[$i]; $qta = post('qta_da_evadere')[$i]; $um = post('um')[$i]; - $subtot = save($post['subtot'][$i] * $qta); + $subtot = save(Translator::numberToLocale($post['subtot'][$i]) * $qta); $idiva = post('idiva')[$i]; - $iva = save($post['iva'][$i] * $qta); - $sconto = post('sconto')[$i]; + $iva = save(Translator::numberToLocale($post['iva'][$i]) * $qta); + $sconto = Translator::numberToLocale(post('sconto')[$i]); $sconto = $sconto * $qta; $qprc = 'SELECT tipo_sconto, sconto_unitario FROM or_righe_ordini WHERE id='.prepare($idrigaordine);