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

fix: #51

Übergeordneter ad2d5749
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -5,6 +5,7 @@
<table name="orders">
<field type="BIGINT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY">id</field>
<field type="VARCHAR(100) DEFAULT NULL">id_prefix</field>
<field type="VARCHAR(110) DEFAULT NULL">id_str</field>
<field type="BIGINT(10) NULL DEFAULT NULL">order_process_id</field>
<field type="VARCHAR(250) NULL DEFAULT NULL">global_process_id</field>
......@@ -51,6 +52,7 @@
<table name="orders_process">
<field type="BIGINT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY">id</field>
<field type="VARCHAR(100) DEFAULT NULL">id_prefix</field>
<field type="VARCHAR(110) DEFAULT NULL">id_str</field>
<field type="BIGINT(10) NULL DEFAULT NULL">order_id</field> <!-- Für aufgesplittete Bestellungen -->
<field type="BIGINT(10) NULL DEFAULT NULL">parent_order</field> <!-- Für aufgesplittete Bestellungen -->
......
......@@ -321,8 +321,6 @@ public function setSuccessfulStatus()
return;
}
// @todo create invoice
QUI::getEvents()->fireEvent('quiqqerOrderSuccessful', [$this]);
$this->successful = 1;
......@@ -1032,7 +1030,7 @@ public function addTransaction(Transaction $Transaction)
if ($this->getAttribute('paid_status') == self::PAYMENT_STATUS_PAID ||
$this->getAttribute('paid_status') == self::PAYMENT_STATUS_CANCELED
) {
$this->getAttribute('paid_status', self::PAYMENT_STATUS_OPEN);
$this->setAttribute('paid_status', self::PAYMENT_STATUS_OPEN);
$this->calculatePayments();
return;
......
......@@ -282,7 +282,7 @@ public function post()
* Return the order data for saving
*
* @return array
* @throws
* @throws QUI\Exception
*/
protected function getDataForSaving()
{
......@@ -334,6 +334,7 @@ protected function getDataForSaving()
return [
'id_prefix' => $idPrefix,
'id_str' => $idPrefix.$this->getId(),
'parent_order' => null,
'invoice_id' => $invoiceId,
'status' => $this->status,
......
......@@ -472,6 +472,7 @@ protected function hasPermissions($PermissionUser = null)
* Return the order data for saving
*
* @return array
* @throws QUI\Exception
*/
protected function getDataForSaving()
{
......
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