mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
clean up development
This commit is contained in:
+6
-5
@@ -71,14 +71,15 @@ class UpdateRefundTransactionStatusLogic extends AbstractControllerLogic
|
||||
|
||||
$transaction = $this->updatesTransactionStatus->execute($transaction, $request->input('status'));
|
||||
|
||||
$company = $this->fetchesCompany->execute(['id' => $transaction->booking->company_id]);
|
||||
$booking = $transaction->owner->owner;
|
||||
|
||||
$reference = 'Refund for booking reference '.$transaction->booking->marking;
|
||||
$reference = 'Credit Voucher for Overpaid for Ref. '.$booking->marking;
|
||||
|
||||
if ($transaction->status == ApprovalStatus::APPROVED) {
|
||||
// add to credit wallet
|
||||
$this->creditWalletProcessor->execute($company, $transaction->type, $transaction->amount, $reference);
|
||||
}
|
||||
$this->creditWalletProcessor->execute($booking->company, $transaction->type, $transaction->amount, $reference);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $this->response([]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user