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

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

fix: implement ErpEntityData trait

See merge request !70
Übergeordnete afd51d63 eef5179d
No related branches found
No related tags found
2 Merge Requests!80Update 'next-3.x' with latest changes from 'main',!70fix: implement ErpEntityData trait
Pipeline #9170 mit Warnungen bestanden mit Phasen
in 1 Minute und 2 Sekunden
......@@ -46,6 +46,7 @@
class Invoice extends QUI\QDOM implements ErpEntityInterface, ErpTransactionsInterface, ErpCopyInterface
{
use QUI\ERP\ErpEntityCustomerFiles;
use QUI\ERP\ErpEntityData;
const DUNNING_LEVEL_OPEN = 0; // No Dunning -> Keine Mahnung
const DUNNING_LEVEL_REMIND = 1; // Payment reminding -> Zahlungserinnerung
......@@ -1024,6 +1025,7 @@ public function createCreditNote(
// saving copy
$Copy->setData('originalId', $this->getId());
$Copy->setData('originalIdPrefixed', $this->getPrefixedNumber());
$Copy->setData('originalInvoice', $this->getReferenceData());
$Copy->setAttribute('date', date('Y-m-d H:i:s'));
$Copy->setAttribute('additional_invoice_text', $additionalText);
......@@ -1204,6 +1206,7 @@ public function createReversal(
// saving copy
$Copy->setData('originalId', $this->getId());
$Copy->setData('originalIdPrefixed', $this->getPrefixedNumber());
$Copy->setData('originalInvoice', $this->getReferenceData());
$Copy->setAttribute('date', date('Y-m-d H:i:s'));
$Copy->setAttribute('additional_invoice_text', $additionalText);
......
......@@ -51,6 +51,7 @@
class InvoiceTemporary extends QUI\QDOM implements ErpEntityInterface, ErpTransactionsInterface, ErpCopyInterface
{
use QUI\ERP\ErpEntityCustomerFiles;
use QUI\ERP\ErpEntityData;
/**
* Special attributes
......
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