From 2295d266709b8cb3419e413cf704ed2ef73f0d13 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Tue, 22 Mar 2022 17:21:39 +0100 Subject: [PATCH] Fix calcolo margine in base ai prezzi ivati --- include/common/articolo.php | 2 +- include/common/riga.php | 12 ++++++++++-- modules/articoli/ajax/select.php | 6 ++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/include/common/articolo.php b/include/common/articolo.php index f330b5aac..a38fc446f 100755 --- a/include/common/articolo.php +++ b/include/common/articolo.php @@ -169,7 +169,7 @@ $("#idarticolo").on("change", function() { if (direzione === "entrata") { if($data.idiva_vendita) { - $("#idiva").selectSetNew($data.idiva_vendita, $data.iva_vendita); + $("#idiva").selectSetNew($data.idiva_vendita, $data.iva_vendita, $data); } } diff --git a/include/common/riga.php b/include/common/riga.php index 0720610ee..f28529443 100755 --- a/include/common/riga.php +++ b/include/common/riga.php @@ -44,7 +44,8 @@ echo ' '; echo ' -
'; +
+ '; $width = $options['dir'] == 'entrata' ? 4 : 6; $label = $options['dir'] == 'entrata' ? tr('Prezzo unitario di vendita') : tr('Prezzo unitario'); @@ -60,8 +61,15 @@ if ($options['dir'] == 'entrata') { echo '