Fixes for inclusive taxes with PEPPOL

This commit is contained in:
David Bomba
2026-02-23 10:17:44 +11:00
parent 8fe3a687f2
commit 3305af4557

View File

@@ -1197,7 +1197,7 @@ class Peppol extends AbstractService
$price = new Price();
$pa = new PriceAmount();
$pa->currencyID = $this->invoice->client->currency()->code;
$pa->amount = (string) $item->cost;
$pa->amount = $this->invoice->uses_inclusive_taxes ? (string) $item->net_cost :(string) $item->cost;
$price->PriceAmount = $pa;
$line->Price = $price;
}