Merge branch 'dillon/39-crm-changes' into development

This commit is contained in:
Dillon
2023-08-06 12:14:37 +08:00
@@ -162,12 +162,12 @@ class TransactionToPerfexCRMProcessorV2
$tasks = array_merge($tasks, $this->payment1688Tasks());
}
// if ($model->owner->service_id === 1 || $model->owner->service_id === 3) {
// $purchaseOrder = $model->booking->transactions()->where('type', TransactionType::PURCHASE_ORDER)->complete()->first();
// if(is_null($purchaseOrder)){
// $tasks = array_merge($tasks, $this->purchaseOrderTasks());
// }
// }
if ($model->owner->service_id === 1 || $model->owner->service_id === 3) {
$purchaseOrder = $model->booking->transactions()->where('type', TransactionType::PURCHASE_ORDER)->complete()->first();
if(is_null($purchaseOrder)){
$tasks = array_merge($tasks, $this->purchaseOrderTasks());
}
}
return $tasks;
}