enhance the code in ApproveDuplicateBankStatementDetailsStatusLogic class to dynamic for update status to approve and revert back pending

This commit is contained in:
Steve Ng
2023-10-03 15:20:11 +08:00
parent 229a972787
commit 0882a4d91f
5 changed files with 96 additions and 64 deletions
+6
View File
@@ -26,4 +26,10 @@ class StatementTransactionOwner extends Model
{
return $this->belongsTo(StatementTransaction::class, 'statement_transaction_id', 'id');
}
public function scopeGetSiblingsOwner($query) {
$query->where('system', $this->system)
->where('owner_type', $this->owner_type)
->where('owner_id', $this->owner_id);
}
}