Skip to content
Code-Schnipsel Gruppen Projekte
Commit ba8a90a0 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'next-3.x' into 'main'

fix: when entering gross, note the one cent problem

See merge request !142
Übergeordnete 9b9d532f 73ee4dc8
No related branches found
Tags 3.7.10
2 Merge Requests!142fix: when entering gross, note the one cent problem,!140Update 'next-4.x' with latest changes from 'main'
Pipeline #11345 mit Warnungen bestanden mit Phase
in 54 Sekunden
......@@ -415,7 +415,11 @@ public function getUnitPriceUnRounded(): Price
return new Price($this->nettoPriceNotRounded, $this->Currency);
}
return $this->getUnitPrice();
if (isset($this->attributes['unitPrice'])) {
$this->nettoPriceNotRounded = $this->attributes['unitPrice'];
}
return new Price($this->nettoPriceNotRounded, $this->Currency);
}
/**
......
......@@ -453,6 +453,15 @@ public function calcArticleList(ArticleList $List, $callback = false): ArticleLi
if ($bruttoSum - $bruttoVatSum !== $nettoSum) {
$nettoSum = $nettoSum + $diff;
}
// doof aber -> pcsg/buero#344
if (
!$priceFactors->count()
&& count($articles) === 1
&& $nettoSubSum !== $nettoSum
) {
$nettoSum = $nettoSubSum;
}
}
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren