Skip to content
Code-Schnipsel Gruppen Projekte

Revisionen vergleichen

Änderungen werden so angezeigt, als ob die Quellrevision mit der Zielrevision zusammengeführt würde. Erfahre mehr über den Vergleich von Revisionen.

Quelle

Zielprojekt auswählen
No results found

Ziel

Zielprojekt auswählen
  • quiqqer/order-guestorder
1 Ergebnis
Änderungen anzeigen
Commits auf Quelle (3)
  • Henning Leutz's avatar
    feat: add index for guestOrder field in database.xml · 01a5870a
    verfasst von Henning Leutz
    The commit introduces a new index for the `guestOrder` field in the `orders_process` table of
    `database.xml`. This will help to optimize database operations related to the `guestOrder` field.
    01a5870a
  • Henning Leutz's avatar
    fix: update order processing in eventhandler · 613577c9
    verfasst von Henning Leutz
    This commit addresses the event handling within the QUI ERP order process. Instead of returning the
    order directly, the changes allow update of the 'c_user' field in the database by using the
    customer UUID from the session. Additionally, it now returns the order fetched by hash instead of
    the direct order object. This approach is more fail-safe and consistent.
    
    Related: #11
    613577c9
  • Henning Leutz's avatar
    Merge branch 'next-2.x' into 'main' · 0ca058d2
    verfasst von Henning Leutz
    feat: add index for guestOrder field in database.xml
    
    See merge request !37
    0ca058d2
......@@ -3,6 +3,7 @@
<global>
<table name="orders_process">
<field type="VARCHAR(250) NULL DEFAULT NULL">guestOrder</field>
<index>guestOrder</index>
</table>
</global>
</database>
\ No newline at end of file
......@@ -190,7 +190,18 @@ public static function onOrderProcessGetOrder($OrderProcess): ?AbstractOrder
QUI::getSession()->set(GuestOrder::CUSTOMER_UUID, $Customer->getUUID());
QUI::getSession()->set(GuestOrder::CUSTOMER_ID, $Customer->getId());
return $Order;
$table = $Handler->table();
if ($Order instanceof QUI\ERP\Order\OrderInProcess) {
$table = $Handler->tableOrderProcess();
}
QUI::getDataBase()->update(
$table,
['c_user' => QUI::getSession()->get(GuestOrder::CUSTOMER_UUID)],
['hash' => $Order->getUUID()]
);
return $Handler->getOrderByHash($Order->getUUID());
}
} catch (\Exception) {
}
......