automatically complete tasks

This commit is contained in:
Omair Saleh
2023-06-15 06:16:02 +08:00
parent 3b9cc6a3b9
commit 1a08dd1659
@@ -22,7 +22,7 @@ class TransactionToPerfexCRMProcessorV2
try {
dd($model->type);
if(in_array($model->type, [TransactionType::PAYMENT, TransactionType::BILL, TransactionType::PURCHASE_ORDER])) {
$transaction = $model->type === TransactionType::BILL ? $model->owner : $model;
$transaction = ($model->type === TransactionType::BILL ? $model->owner : $model);
$bookingInfo = $this->extractBookingInfo($transaction);
$projectName = 'Exchange | ' . $bookingInfo['serviceTypeName'] . ' | ' . $bookingInfo['bookingMarking'];
$tasks = $this->defineTasks($model, $status);