mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-21 14:00:53 +01:00
Compare commits
3 Commits
e4c88f166b
...
9b3e6e5a6b
Author | SHA1 | Date | |
---|---|---|---|
|
9b3e6e5a6b | ||
|
ccaf74c512 | ||
|
775f4e4ab7 |
@ -126,18 +126,6 @@ $operations['ricerca-coordinate'] = [
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
// TODO: 06/08/2024 Correggere questa operazione e rimuovere da Beta
|
|
||||||
if (App::debug()) {
|
|
||||||
$operations['ricerca-coordinate-google'] = [
|
|
||||||
'text' => '<span><i class="fa fa-map"></i> '.tr('Ricerca coordinate (Google)').'</span> <span class="badge badge-danger">beta</span>',
|
|
||||||
'data' => [
|
|
||||||
'msg' => tr('Ricercare le coordinate per le anagrafiche selezionate senza latitudine e longitudine?'),
|
|
||||||
'button' => tr('Procedi'),
|
|
||||||
'class' => 'btn btn-lg btn-warning',
|
|
||||||
],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
$operations['cambia-relazione'] = [
|
$operations['cambia-relazione'] = [
|
||||||
'text' => '<span><i class="fa fa-copy"></i> '.tr('Cambia relazione').'</span>',
|
'text' => '<span><i class="fa fa-copy"></i> '.tr('Cambia relazione').'</span>',
|
||||||
'data' => [
|
'data' => [
|
||||||
|
@ -44,7 +44,7 @@ $totale_imponibile = $totale_scontato + $rivalsa;
|
|||||||
$totale_iva = 0;
|
$totale_iva = 0;
|
||||||
foreach ($righe as $riga) {
|
foreach ($righe as $riga) {
|
||||||
$aliquota = $database->fetchOne('SELECT percentuale FROM co_iva WHERE id = '.prepare($riga->idiva))['percentuale'];
|
$aliquota = $database->fetchOne('SELECT percentuale FROM co_iva WHERE id = '.prepare($riga->idiva))['percentuale'];
|
||||||
$totale_iva += $totale_imponibile * $aliquota / 100;
|
$totale_iva += $riga['iva'] + $riga['rivalsainps'] * $aliquota / 100;;
|
||||||
}
|
}
|
||||||
|
|
||||||
$totale = $totale_iva + $totale_imponibile;
|
$totale = $totale_iva + $totale_imponibile;
|
||||||
@ -278,17 +278,22 @@ if ($show_sconto) {
|
|||||||
* Rivalsa INPS | Totale (+ Rivalsa INPS)
|
* Rivalsa INPS | Totale (+ Rivalsa INPS)
|
||||||
*/
|
*/
|
||||||
if ($has_rivalsa) {
|
if ($has_rivalsa) {
|
||||||
$rs2 = $dbo->fetchOne('SELECT percentuale, descrizione FROM co_rivalse WHERE id=(SELECT idrivalsainps FROM co_righe_documenti WHERE iddocumento='.prepare($id_record).' AND idrivalsainps!=0)');
|
$rs2 = $dbo->fetchArray('SELECT percentuale, descrizione FROM co_rivalse WHERE id IN (SELECT idrivalsainps FROM co_righe_documenti WHERE iddocumento='.prepare($id_record).' AND idrivalsainps!=0)');
|
||||||
|
|
||||||
|
foreach ($rs2 as $rs) {
|
||||||
|
$descrizione .= '<p class="text-muted small-bold">'.$rs['descrizione'].'</p>';
|
||||||
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<td class="cell-padded text-center">
|
<td class="cell-padded text-center">
|
||||||
'.moneyFormat($rivalsa, 2).'
|
'.moneyFormat($rivalsa, 2).'
|
||||||
<p class="text-muted small-bold">'.$rs2['descrizione'].'</p>
|
'.$descrizione.'
|
||||||
</td>
|
</td>
|
||||||
<td class="cell-padded text-center">
|
<td class="cell-padded text-center">
|
||||||
'.moneyFormat($totale_imponibile, $d_totali).'
|
'.moneyFormat($totale_imponibile, $d_totali).'
|
||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
|
||||||
} else if ($show_sconto) {
|
} else if ($show_sconto) {
|
||||||
echo '
|
echo '
|
||||||
<td class="cell-padded text-center">
|
<td class="cell-padded text-center">
|
||||||
@ -326,10 +331,16 @@ echo '
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="cell-padded text-center" colspan="'.$first_colspan.'">
|
<td class="cell-padded text-center" colspan="'.$first_colspan.'">
|
||||||
'.moneyFormat($totale_iva, $d_totali).'
|
'.moneyFormat($totale_iva, $d_totali).'
|
||||||
</td>
|
</td>';
|
||||||
|
if ($has_ritenuta || $show_sconto || $has_rivalsa) {
|
||||||
<td class="cell-padded text-center" colspan="'.$second_colspan.'">
|
echo'<td class="cell-padded text-center" colspan="'.$second_colspan.'">
|
||||||
'.moneyFormat($totale, $d_totali).'
|
'.moneyFormat($totale, $d_total);
|
||||||
|
} else {
|
||||||
|
echo'
|
||||||
|
<td class="cell-padded text-center" colspan="'.$second_colspan.'" style="background-color:#77dd77;">
|
||||||
|
<b>'.moneyFormat($totale, $d_total).'</b>';
|
||||||
|
}
|
||||||
|
echo'
|
||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
|
||||||
@ -410,8 +421,8 @@ if ($has_ritenuta) {
|
|||||||
$totale = $totale - ($ritenuta_acconto_totale + $ritenuta_contributi_totale);
|
$totale = $totale - ($ritenuta_acconto_totale + $ritenuta_contributi_totale);
|
||||||
echo '
|
echo '
|
||||||
|
|
||||||
<td class="cell-padded text-center" colspan="'.$second_colspan.'">
|
<td class="cell-padded text-center" colspan="'.$second_colspan.'" style="background-color:#77dd77;">
|
||||||
'.moneyFormat($totale, 2).'
|
<b>'.moneyFormat($totale, 2).'</b>
|
||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user