WIP - Order steps & remaining APIs

This commit is contained in:
Fairuz
2021-07-22 14:28:02 +08:00
parent adf9896410
commit 3dfa087831
8 changed files with 56 additions and 47 deletions
@@ -35,9 +35,9 @@ class CreateOrderStepsProcessor
$this->fetchesOrderSteps = $fetchesOrderSteps;
}
public function execute(Model $order, string $currentStep){
public function execute(Model $order, string $currentStep, $appointee_id){
$order_steps_object = new OrderStepsObject($order->id, $order->company_module_id, $currentStep, true, 0, OrderStatus::PROCESSING, 0, null);
$order_steps_object = new OrderStepsObject($order->id, $appointee_id, $currentStep, true, 0, OrderStatus::PROCESSING, 0, null);
$this->canCreateOrderStep->passes($order_steps_object);