1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-28 16:50:06 +01:00

Fix minore

This commit is contained in:
Pek5892 2024-04-03 16:21:14 +02:00
parent 982829ca88
commit 9b4cccf2fe

View File

@ -165,10 +165,7 @@ if (!function_exists('ricalcola_costiagg_ddt')) {
// Leggo l'iva predefinita per calcolare l'iva aggiuntiva sulla rivalsa inps
$qi = Aliquota::find(setting('Iva predefinita'))->percentuale;
if ($qi) {
$rsi = $dbo->fetchArray($qi);
}
$iva_rivalsainps = $rivalsainps / 100 * $rsi[0]['percentuale'];
$iva_rivalsainps = $rivalsainps / 100 * $qi;
// Aggiorno la rivalsa inps
$dbo->query("UPDATE dt_ddt SET rivalsainps='$rivalsainps', iva_rivalsainps='$iva_rivalsainps' WHERE id='$idddt'");