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

fix: implement ErpEntityData trait

Übergeordneter 085a2d4e
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!80Update 'next-3.x' with latest changes from 'main',!70fix: implement ErpEntityData trait
Pipeline-Nr. 9168 mit Warnungen bestanden
......@@ -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% 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