Commentato temporaneamente il guadagno, fix su importFE

This commit is contained in:
Fabio Lovato 2018-12-27 16:22:20 +01:00
parent 26c67a9f8e
commit 60997bb593
3 changed files with 9 additions and 3 deletions

View File

@ -191,10 +191,12 @@ foreach ($righe as $riga) {
<td class="text-right">';
if (!$riga instanceof Descrizione) {
echo '
'.Translator::numberToLocale($riga->imponibile_scontato).' &euro;
'.Translator::numberToLocale($riga->imponibile_scontato).' &euro;';
/*
<br><small class="text-'.($riga->guadagno > 0 ? 'success' : 'danger').'">
'.tr('Guadagno').': '.Translator::numberToLocale($riga->guadagno).' &euro;
</small>';
*/
}
echo '
</td>';
@ -390,6 +392,7 @@ if ($totale != $netto_a_pagare) {
if ($dir == 'entrata') {
$guadagno_style = $guadagno < 0 ? 'background-color: #FFC6C6; border: 3px solid red' : '';
/*
echo '
<tr>
<td colspan="5" class="text-right">
@ -400,6 +403,7 @@ if ($dir == 'entrata') {
</td>
<td></td>
</tr>';
*/
}
echo '

View File

@ -3,8 +3,8 @@
namespace Plugins\ImportFE;
use Modules\Fatture\Fattura;
use Modules\Fatture\Riga;
use Modules\Fatture\Articolo;
use Modules\Fatture\Components\Riga;
use Modules\Fatture\Components\Articolo;
use Modules\Articoli\Articolo as ArticoloOriginale;
use Modules\Fatture\Stato as StatoFattura;
use Modules\Fatture\Tipo as TipoFattura;

View File

@ -10,3 +10,5 @@ ALTER TABLE `an_anagrafiche` ADD `split_payment` BOOLEAN NOT NULL DEFAULT FALSE
ALTER TABLE `co_righe_documenti` ADD `prezzo_unitario_acquisto` DECIMAL(12,4) NOT NULL AFTER `descrizione`;
ALTER TABLE `co_righe_preventivi` ADD `prezzo_unitario_acquisto` DECIMAL(12,4) NOT NULL AFTER `descrizione`;
UPDATE `fe_stati_documento` SET `descrizione`='Rifiutata' WHERE `codice`='REF';