Skip to content
Code-Schnipsel Gruppen Projekte
Commit d128eeeb erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

refactor: temporary invoice paid data processing

Übergeordneter 8383ed15
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -927,8 +927,8 @@ public function update($PermissionUser = null)
$orderPaidStatusData = $Order->getPaidStatusInformation();
$paidStatus = $Order->getAttribute('paid_status');
$paidDate = $orderPaidStatusData['paid_date'];
$paidData = \json_encode($orderPaidStatusData['paid_data']);
$paidDate = $orderPaidStatusData['paidDate'];
$paidData = \json_encode($orderPaidStatusData['paidData']);
} catch (\Exception $Exception) {
QUI\System\Log::writeDebugException($Exception);
}
......@@ -1338,6 +1338,8 @@ public function post($PermissionUser = null): Invoice
// create invoice
$invoicePrefix = Settings::getInstance()->getInvoicePrefix();
$paidStatusInformation = $this->getPaidStatusInformation();
QUI::getDataBase()->insert(
$Handler->invoiceTable(),
[
......@@ -1370,9 +1372,9 @@ public function post($PermissionUser = null): Invoice
'time_for_payment' => $timeForPayment,
// paid status
'paid_status' => QUI\ERP\Constants::PAYMENT_STATUS_OPEN,
'paid_date' => null,
'paid_data' => '',
'paid_status' => $this->getAttribute('paid_status'),
'paid_date' => $paidStatusInformation['paidDate'],
'paid_data' => \json_encode($paidStatusInformation['paidData']),
'processing_status' => $processingStatus,
// shipping
......
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