mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-21 13:33:57 +00:00
remove accounting tasks from auto generated tasks temporarily until ready
This commit is contained in:
@@ -64,8 +64,7 @@ class TransactionToPerfexCRMProcessorV2
|
||||
$tasks = [];
|
||||
Log::info(json_encode([$status, $model->type]));
|
||||
|
||||
|
||||
if($status === ApprovalStatus::PENDING_VERIFICATION && $model->type === TransactionType::PAYMENT) {
|
||||
if($status === ApprovalStatus::PENDING_VERIFICATION && (int) $model->type === TransactionType::PAYMENT) {
|
||||
$tasks = $this->definePaymentTasks($model);
|
||||
} elseif($status === ApprovalStatus::PENDING_VERIFICATION && $model->type === TransactionType::PURCHASE_ORDER) {
|
||||
if($model->owner->service_id === 1 || $model->owner->service_id === 3) {
|
||||
|
||||
@@ -25,6 +25,11 @@ class Transaction extends AbstractModel implements Documentable, Transactionable
|
||||
use SoftDeletes;
|
||||
use LogData;
|
||||
|
||||
protected $casts = [
|
||||
'type' => 'int',
|
||||
'status' => 'int',
|
||||
];
|
||||
|
||||
protected $table = 'transactions';
|
||||
|
||||
public function owner(): morphTo
|
||||
|
||||
Reference in New Issue
Block a user