We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce5169 commit 7b23953Copy full SHA for 7b23953
1 file changed
modules/fatture/src/Fattura.php
@@ -854,7 +854,7 @@ public function replicate(?array $except = null)
854
855
public function manageRigaSpeseIncasso()
856
{
857
- if ($this->tipo->dir == 'uscita') {
+ if ($this->tipo->dir == 'uscita' || $this->stato->descrizione != 'Bozza') {
858
return null;
859
}
860
@@ -881,7 +881,7 @@ public function manageRigaSpeseIncasso()
881
882
883
$prezzo_unitario = $this->pagamento->importo_fisso_incasso;
884
- if ($this->pagamento->importo_percentuale_incasso && ($this->totale - $riga->totale)) {
+ if ($this->pagamento->importo_percentuale_incasso && ($this->totale - $riga->totale) && !$this->isAutofattura()) {
885
$prezzo_unitario += ($this->totale - $riga->totale) * $this->pagamento->importo_percentuale_incasso / 100;
886
887
0 commit comments