Skip to content

Commit

Permalink
LP-179 feat: missing transaction form type filter added
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Dec 25, 2023
1 parent ebf6ff1 commit 41c446e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Repositories/Eloquent/BankTransferRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public function list(array $filters = [])
}
}

if (! empty($filters['transaction_form_id'])) {
$query->where('transaction_form_id', $filters['transaction_form_id']);
}

//Display Trashed
if (isset($filters['trashed']) && ! empty($filters['trashed'])) {
$query->onlyTrashed();
Expand Down
4 changes: 4 additions & 0 deletions src/Repositories/Eloquent/CashPickupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public function list(array $filters = [])
}
}

if (! empty($filters['transaction_form_id'])) {
$query->where('transaction_form_id', $filters['transaction_form_id']);
}

//Display Trashed
if (isset($filters['trashed']) && $filters['trashed'] === true) {
$query->onlyTrashed();
Expand Down
4 changes: 4 additions & 0 deletions src/Repositories/Eloquent/WalletTransferRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public function list(array $filters = [])
}
}

if (! empty($filters['transaction_form_id'])) {
$query->where('transaction_form_id', $filters['transaction_form_id']);
}

//Display Trashed
if (isset($filters['trashed']) && $filters['trashed'] === true) {
$query->onlyTrashed();
Expand Down

0 comments on commit 41c446e

Please sign in to comment.