Refactor getOrder in order_items_o: add explicit type casting for order_id to ensure proper ID handling.
This commit is contained in:
@@ -137,7 +137,7 @@ class order_items_o extends db
|
||||
public function getOrder(): orders_o
|
||||
{
|
||||
self::requireSelected();
|
||||
return (new orders_o())->select($this->id);
|
||||
return (new orders_o())->select((int)$this->order_id->value());
|
||||
}
|
||||
|
||||
public function edit(int $id, int $order_id, int $product_id, string $reference, string $notes, int $cashier_id, int $price, int $quantity): void
|
||||
|
||||
Reference in New Issue
Block a user