mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 22:44:03 +00:00
Merge branch 'dillon/39-crm-changes' into development
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user