mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-08 15:48:45 +01:00
Miglioramento visualizzazione importFE
This commit is contained in:
parent
4f7124338e
commit
9d8af06abd
@ -24,6 +24,7 @@ switch (post('op')) {
|
|||||||
flash()->error(tr('Il numero scelto è già esistente!'));
|
flash()->error(tr('Il numero scelto è già esistente!'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Modifica conto nel partitario
|
// Modifica conto nel partitario
|
||||||
|
@ -1040,7 +1040,7 @@ class FatturaElettronica
|
|||||||
});
|
});
|
||||||
foreach ($riepiloghi_percentuale as $riepilogo) {
|
foreach ($riepiloghi_percentuale as $riepilogo) {
|
||||||
//(imponibile-sconto) + rivalsa inps
|
//(imponibile-sconto) + rivalsa inps
|
||||||
$totale = round(($riepilogo->sum('imponibile')-$riepilogo->sum('sconto')) + $riepilogo->sum('rivalsa_inps'), 2);
|
$totale = round(($riepilogo->sum('imponibile') - $riepilogo->sum('sconto')) + $riepilogo->sum('rivalsa_inps'), 2);
|
||||||
$imposta = round($riepilogo->sum('iva') + $riepilogo->sum('iva_rivalsa_inps'), 2);
|
$imposta = round($riepilogo->sum('iva') + $riepilogo->sum('iva_rivalsa_inps'), 2);
|
||||||
|
|
||||||
$dati = $riepilogo->first()->aliquota;
|
$dati = $riepilogo->first()->aliquota;
|
||||||
@ -1077,7 +1077,7 @@ class FatturaElettronica
|
|||||||
});
|
});
|
||||||
foreach ($riepiloghi_natura as $riepilogo) {
|
foreach ($riepiloghi_natura as $riepilogo) {
|
||||||
//(imponibile-sconto) + rivalsa inps
|
//(imponibile-sconto) + rivalsa inps
|
||||||
$totale = round(($riepilogo->sum('imponibile')-$riepilogo->sum('sconto')) + $riepilogo->sum('rivalsa_inps'), 2);
|
$totale = round(($riepilogo->sum('imponibile') - $riepilogo->sum('sconto')) + $riepilogo->sum('rivalsa_inps'), 2);
|
||||||
$imposta = round($riepilogo->sum('iva') + $riepilogo->sum('iva_rivalsa_inps'), 2);
|
$imposta = round($riepilogo->sum('iva') + $riepilogo->sum('iva_rivalsa_inps'), 2);
|
||||||
|
|
||||||
$dati = $riepilogo->first()->aliquota;
|
$dati = $riepilogo->first()->aliquota;
|
||||||
|
@ -155,9 +155,7 @@ if (!empty($righe)) {
|
|||||||
<table class="table table-hover table-striped table-condensed">
|
<table class="table table-hover table-striped table-condensed">
|
||||||
<tr>
|
<tr>
|
||||||
<th>'.tr('Descrizione').'</th>
|
<th>'.tr('Descrizione').'</th>
|
||||||
<th width="10%">'.tr('Q.tà').'</th>
|
<th width="25%">'.tr('Dati contabili').'*</th>
|
||||||
<th width="10%">'.tr('Prezzo unitario').'</th>
|
|
||||||
<th width="15%">'.tr('Dati contabili').'*</th>
|
|
||||||
<th width="25%">'.tr('Articolo').'</th>
|
<th width="25%">'.tr('Articolo').'</th>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
|
||||||
@ -172,9 +170,19 @@ if (!empty($righe)) {
|
|||||||
|
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td>'.$riga['Descrizione'].'</td>
|
<td>
|
||||||
<td>'.Translator::numberToLocale($riga['Quantita']).' '.$riga['UnitaMisura'].'</td>
|
'.$riga['Descrizione'].'<br>
|
||||||
<td>'.Translator::numberToLocale($riga['PrezzoUnitario']).' €<small class="help-block">Aliquota iva: '.$riga['AliquotaIVA'].'%</small></td>
|
|
||||||
|
<small>'.tr('Q.tà: _QTA_ _UM_', [
|
||||||
|
'_QTA_' => Translator::numberToLocale($riga['Quantita']),
|
||||||
|
'_UM_' => $riga['UnitaMisura'],
|
||||||
|
]).'</small><br>
|
||||||
|
|
||||||
|
<small>'.tr('Aliquota iva _PRC_% _DESC_', [
|
||||||
|
'_PRC_' => Translator::numberToLocale($riga['AliquotaIVA']),
|
||||||
|
'_DESC_' => $riga['RiferimentoNormativo'] ? ' - '.$riga['RiferimentoNormativo'] : '',
|
||||||
|
]).'</small>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{[ "type": "select", "name": "iva['.$key.']", "values": "query='.str_replace('"', '\"', $query).'", "required": 1, "placeholder": "Aliquota iva" ]}
|
{[ "type": "select", "name": "iva['.$key.']", "values": "query='.str_replace('"', '\"', $query).'", "required": 1, "placeholder": "Aliquota iva" ]}
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user