mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
automatically complete tasks
This commit is contained in:
@@ -20,8 +20,8 @@ class TransactionToPerfexCRMProcessorV2
|
||||
public function execute(Transaction $model, int $status)
|
||||
{
|
||||
try {
|
||||
if($model->owner instanceof \App\Models\Booking) {
|
||||
$bookingInfo = $this->extractBookingInfo($model);
|
||||
if(in_array($model->type, [TransactionType::PAYMENT, TransactionType::BILL, TransactionType::PURCHASE_ORDER])) {
|
||||
$bookingInfo = $this->extractBookingInfo($model->type === TransactionType::BILL ? $model->owner : $model);
|
||||
$projectName = 'Exchange | ' . $bookingInfo['serviceTypeName'] . ' | ' . $bookingInfo['bookingMarking'];
|
||||
$tasks = $this->defineTasks($model, $status);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user