mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-29 17:34:25 +00:00
Update relation for order steps
This commit is contained in:
@@ -39,7 +39,7 @@ class UpdatesOrderCurrentStepProcessor
|
||||
$order = $this->fetchesOrder->execute(['id'=>$order_object->getId()]);
|
||||
|
||||
//Count steps / obligations that pending
|
||||
$order_steps_processing = $this->fetchesOrderSteps->getRepository()->where(['order_id'=>$order_object->getId(), 'status'=> OrderStatus::PROCESSING])->count();
|
||||
$order_steps_processing = $this->fetchesOrderSteps->getRepository()->where(['owner_id'=>$order_object->getId(), 'status'=> OrderStatus::PROCESSING])->count();
|
||||
|
||||
//If no more steps / obligations, then update Order status to complete (Contract fullfilled)
|
||||
if($order_steps_processing==0){
|
||||
|
||||
Reference in New Issue
Block a user