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:
parent
4f7124338e
commit
9d8af06abd
@ -24,6 +24,7 @@ switch (post('op')) {
|
||||
flash()->error(tr('Il numero scelto è già esistente!'));
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
// Modifica conto nel partitario
|
||||
|
@ -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;
|
||||
|
@ -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.tà').'</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']).' €<small class="help-block">Aliquota iva: '.$riga['AliquotaIVA'].'%</small></td>
|
||||
<td>
|
||||
'.$riga['Descrizione'].'<br>
|
||||
|
||||
<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>
|
||||
{[ "type": "select", "name": "iva['.$key.']", "values": "query='.str_replace('"', '\"', $query).'", "required": 1, "placeholder": "Aliquota iva" ]}
|
||||
<br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user