mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
groupApprove statement transaction mapping api
This commit is contained in:
+4
-4
@@ -58,11 +58,11 @@ class GroupApproveStatementTransactionLogic extends AbstractControllerLogic
|
||||
));
|
||||
|
||||
foreach ($statementTrasactions as $statementTrasaction) {
|
||||
$statementTrasactionOwner = $statementTrasaction->owners->first();
|
||||
|
||||
dd($statementTrasactionOwner);
|
||||
$statementTrasactionOwner = $statementTrasaction->owners;
|
||||
|
||||
$this->updatesBankStatementTransactionOwnerStatus->execute($statementTrasactionOwner, ApprovalStatus::APPROVED);
|
||||
if (count($statementTrasactionOwner)) {
|
||||
$this->updatesBankStatementTransactionOwnerStatus->execute($statementTrasactionOwner->first(), ApprovalStatus::APPROVED);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->collectionResponse(BankStatementTransactionResource::collection($statementTrasactions));
|
||||
|
||||
Reference in New Issue
Block a user