1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor fixes

This commit is contained in:
Lars Kusch 2024-07-16 16:39:52 +02:00
parent e952c225ae
commit 4b25d7198c

View File

@ -144,7 +144,7 @@ class ZugferdEDokument extends AbstractService
foreach ($this->document->line_items as $index => $item) {
/** @var InvoiceItem $item **/
$this->xdocument->addNewPosition($index)
->setDocumentPositionGrossPrice($item->gross_line_total + $item->discount)
->setDocumentPositionGrossPrice($item->gross_line_total)
->setDocumentPositionNetPrice($item->line_total);
if (!empty($item->product_key)) {
if (!empty($item->notes)) {