From 9c3e44f6250fa8392d0952214ed8f8408722d596 Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Tue, 16 Jan 2024 11:55:19 +0700 Subject: [PATCH] update --- Modules/Internal/Services/RequestLogService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Internal/Services/RequestLogService.php b/Modules/Internal/Services/RequestLogService.php index eb1b89db..36dc8316 100644 --- a/Modules/Internal/Services/RequestLogService.php +++ b/Modules/Internal/Services/RequestLogService.php @@ -248,7 +248,7 @@ class RequestLogService [ 'request_log_id' => $requestLog->id, 'benefit_id' => $benefit->id, - 'amount_incurred' => $row['total_billing'], + 'amount_incurred' => $row['amount_approval'] + ($row['amount_not_approval'] ? $row['amount_not_approval'] : 0) , 'amount_approved' => $row['amount_approval'], 'amount_not_approved' => $row['amount_not_approval'] ?? 0, 'excess_paid' => $row['amount_not_approval'],