test appprove group mapping transaction api

This commit is contained in:
edmondlang
2023-05-02 18:21:54 +07:00
parent b09308d969
commit 60d5406384
@@ -86,6 +86,8 @@ class ApproveDuplicateBankStatementDetailsStatusLogic extends AbstractController
$otherBankStatement = $rejectedBankSatementDetails->first();
$otherSetBankStatement = StatementTransactionOwner::where('system', $otherBankStatement->system)->where('owner_type', $otherBankStatement->owner_type)->where('owner_id', $otherBankStatement->owner_id)->get();
dump($request->route('id'));
dd($otherSetBankStatement);
foreach ($otherSetBankStatement as $otherStatement) {
if ($otherStatement->id == $request->route('id')) {
$this->updatesBankStatementTransactionOwnerStatus->execute($otherStatement, ApprovalStatus::REJECTED);