1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-02 00:46:44 +01:00

Miglioramento visualizzazione importFE

This commit is contained in:
Thomas Zilio 2019-03-01 13:11:08 +01:00
parent 4f7124338e
commit 9d8af06abd
3 changed files with 17 additions and 8 deletions

View File

@ -24,6 +24,7 @@ switch (post('op')) {
flash()->error(tr('Il numero scelto è già esistente!'));
}
}
break;
// Modifica conto nel partitario

View File

@ -1040,7 +1040,7 @@ class FatturaElettronica
});
foreach ($riepiloghi_percentuale as $riepilogo) {
//(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);
$dati = $riepilogo->first()->aliquota;
@ -1077,7 +1077,7 @@ class FatturaElettronica
});
foreach ($riepiloghi_natura as $riepilogo) {
//(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);
$dati = $riepilogo->first()->aliquota;

View File

@ -155,9 +155,7 @@ if (!empty($righe)) {
<table class="table table-hover table-striped table-condensed">
<tr>
<th>'.tr('Descrizione').'</th>
<th width="10%">'.tr('Q.').'</th>
<th width="10%">'.tr('Prezzo unitario').'</th>
<th width="15%">'.tr('Dati contabili').'*</th>
<th width="25%">'.tr('Dati contabili').'*</th>
<th width="25%">'.tr('Articolo').'</th>
</tr>';
@ -172,9 +170,19 @@ if (!empty($righe)) {
echo '
<tr>
<td>'.$riga['Descrizione'].'</td>
<td>'.Translator::numberToLocale($riga['Quantita']).' '.$riga['UnitaMisura'].'</td>
<td>'.Translator::numberToLocale($riga['PrezzoUnitario']).'&nbsp;&euro;<small class="help-block">Aliquota iva: '.$riga['AliquotaIVA'].'%</small></td>
<td>
'.$riga['Descrizione'].'<br>
<small>'.tr('Q.: _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>
{[ "type": "select", "name": "iva['.$key.']", "values": "query='.str_replace('"', '\"', $query).'", "required": 1, "placeholder": "Aliquota iva" ]}
<br>