1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-27 08:47:39 +01:00

Fix movimenti contabili per Sconti in Fattura

This commit is contained in:
Dasc3er 2021-04-01 20:19:27 +02:00
parent 5e9c5fcc1a
commit 69b715fbd4
4 changed files with 5 additions and 6 deletions

View File

@ -118,7 +118,7 @@ class Movimenti
// Retro-compatibilità per versioni <= 2.4 // Retro-compatibilità per versioni <= 2.4
$id_conto = $riga->id_conto ?: $this->fattura->idconto; $id_conto = $riga->id_conto ?: $this->fattura->idconto;
$imponibile = $riga->imponibile; $imponibile = $riga->totale_imponibile;
$imponibile = $is_nota ? -$imponibile : $imponibile; // Inversione di segno per le note $imponibile = $is_nota ? -$imponibile : $imponibile; // Inversione di segno per le note
if (!empty($imponibile)) { if (!empty($imponibile)) {
$movimenti[] = [ $movimenti[] = [

View File

@ -19,7 +19,6 @@
include_once __DIR__.'/init.php'; include_once __DIR__.'/init.php';
use Models\Upload;
use Plugins\ExportFE\FatturaElettronica; use Plugins\ExportFE\FatturaElettronica;
use Plugins\ExportFE\Interaction; use Plugins\ExportFE\Interaction;
use Util\XML; use Util\XML;