Fix per creazione ddt da ordine

This commit is contained in:
Luca 2018-06-26 17:33:15 +02:00
parent 260b604574
commit ebbce33327
1 changed files with 3 additions and 3 deletions

View File

@ -240,12 +240,12 @@ switch (post('op')) {
$um = post('um')[$idriga];
$abilita_serial = post('abilita_serial')[$idriga];
$subtot = Translator::numberToLocale($post['subtot'][$idriga]) * $qta;
$sconto = Translator::numberToLocale($post['sconto'][$idriga]);
$subtot = $post['subtot'][$idriga] * $qta;
$sconto = $post['sconto'][$idriga];
$sconto = $sconto * $qta;
$idiva = post('idiva')[$idriga];
$iva = Translator::numberToLocale($post['iva'][$idriga]) * $qta;
$iva = $post['iva'][$idriga] * $qta;
$qprc = 'SELECT tipo_sconto, sconto_unitario FROM or_righe_ordini WHERE id='.prepare($idriga);
$rsprc = $dbo->fetchArray($qprc);