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

fix: #51

Übergeordneter d7a6a1ac
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -210,6 +210,7 @@ protected function setDataBaseData(array $data)
{
$this->invoiceId = $data['invoice_id'];
$this->idPrefix = $data['id_prefix'];
$this->addressDelivery = json_decode($data['addressDelivery'], true);
$this->addressInvoice = json_decode($data['addressInvoice'], true);
$this->data = json_decode($data['data'], true);
......
......@@ -321,7 +321,7 @@ protected function getDataForSaving()
$idPrefix = $this->idPrefix;
}
if (!$this->successful) {
if (!$this->successful && $this->idPrefix === null) {
$idPrefix = QUI\ERP\Order\Utils\Utils::getOrderPrefix();
}
......
......@@ -366,6 +366,8 @@ public function createOrder($PermissionUser = null)
// copy the data to the order
$data = $this->getDataForSaving();
$data['id_prefix'] = $Order->getIdPrefix();
$data['id_str'] = $Order->getPrefixedId();
$data['order_process_id'] = $this->getId();
$data['c_user'] = $this->cUser;
$data['paid_status'] = $this->getAttribute('paid_status');
......
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