Update ZugferdEDokument.php

This commit is contained in:
Lars Kusch 2024-08-17 15:15:31 +02:00 committed by GitHub
parent e952c225ae
commit 756ea9521c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,7 +144,6 @@ 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)
->setDocumentPositionNetPrice($item->line_total);
if (!empty($item->product_key)) {
if (!empty($item->notes)) {