automatically complete tasks

This commit is contained in:
Omair Saleh
2023-06-15 06:15:44 +08:00
parent 85a7a09e32
commit 3b9cc6a3b9
@@ -20,6 +20,7 @@ class TransactionToPerfexCRMProcessorV2
public function execute(Transaction $model, int $status)
{
try {
dd($model->type);
if(in_array($model->type, [TransactionType::PAYMENT, TransactionType::BILL, TransactionType::PURCHASE_ORDER])) {
$transaction = $model->type === TransactionType::BILL ? $model->owner : $model;
$bookingInfo = $this->extractBookingInfo($transaction);