Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into import-ambank-cief-lite-statement

update import cief lite
This commit is contained in:
JiaSheng
2023-12-18 19:15:34 +08:00
9 changed files with 86 additions and 112 deletions
+3 -1
View File
@@ -56,7 +56,9 @@ class StatementTransaction extends Model
public function scopeDoesntMapStatement($query)
{
$query->whereDoesntHave('owners', function($query){
$query->whereHas('account', function($query) {
$query->where('statement_accounts.number', 568603010762);
})->whereDoesntHave('owners', function($query){
return $query->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]);
})->orderBy('posting_date');
}