mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 04:20:50 +01:00
Aggiunta rivalsa INPS in stampa fattura
This commit is contained in:
parent
54881dfcb0
commit
9e357a360c
28
templates/fatture/footer.php
Normal file → Executable file
28
templates/fatture/footer.php
Normal file → Executable file
@ -157,6 +157,34 @@ if (!empty($sconto)) {
|
|||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
|
||||||
|
// Rivalsa INPS
|
||||||
|
if ($records[0]['rivalsainps'] != 0) {
|
||||||
|
$rs2 = $dbo->fetchArray('SELECT percentuale FROM co_rivalsainps WHERE id=(SELECT idrivalsainps FROM co_righe_documenti WHERE iddocumento='.prepare($iddocumento).' AND idrivalsainps!=0 LIMIT 0,1)');
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<tr>
|
||||||
|
<th class='text-center small' colspan=".(!empty($sconto) ? 3 : 2).">
|
||||||
|
".tr("Rivalsa INPS _PRC_%", [
|
||||||
|
'_PRC_' => Translator::numberToLocale($rs2[0]['percentuale'], 0),
|
||||||
|
], ['upper' => true])."
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th class='text-center small' colspan=".(!empty($sconto) ? 2 : 1).">
|
||||||
|
".tr('Totale documento', [], ['upper' => true])."
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class='cell-padded text-center' colspan=".(!empty($sconto) ? 3 : 2).">
|
||||||
|
".Translator::numberToLocale($records[0]['rivalsainps'])." €
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td class='cell-padded text-center' colspan=".(!empty($sconto) ? 2 : 1).">
|
||||||
|
".Translator::numberToLocale($totale + $records[0]['rivalsainps']).' €
|
||||||
|
</td>
|
||||||
|
</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Ritenuta d'acconto
|
// Ritenuta d'acconto
|
||||||
if ($records[0]['ritenutaacconto'] != 0) {
|
if ($records[0]['ritenutaacconto'] != 0) {
|
||||||
$rs2 = $dbo->fetchArray('SELECT percentuale FROM co_ritenutaacconto WHERE id=(SELECT idritenutaacconto FROM co_righe_documenti WHERE iddocumento='.prepare($iddocumento).' AND idritenutaacconto!=0 LIMIT 0,1)');
|
$rs2 = $dbo->fetchArray('SELECT percentuale FROM co_ritenutaacconto WHERE id=(SELECT idritenutaacconto FROM co_righe_documenti WHERE iddocumento='.prepare($iddocumento).' AND idritenutaacconto!=0 LIMIT 0,1)');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user