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

fix: when entering gross, note the one cent problem

Related: pcsg/buero#344
Related: pcsg/buero#436
Übergeordneter c8d97918
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!142fix: when entering gross, note the one cent problem,!140Update 'next-4.x' with latest changes from 'main'
Pipeline-Nr. 11342 fehlgeschlagen
......@@ -415,8 +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); }
/**
* Returns the article total sum
......
......@@ -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% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren