From e5bb7e470d5d458c9f09a40b83e150d7f5e97083 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 16 Jun 2017 08:33:18 +0100 Subject: [PATCH] fixed claims price display for LBC currency --- src/Template/Main/claims.ctp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Template/Main/claims.ctp b/src/Template/Main/claims.ctp index 660f1a0..0742bec 100644 --- a/src/Template/Main/claims.ctp +++ b/src/Template/Main/claims.ctp @@ -54,7 +54,7 @@ $cost = 'Free'; if (isset($claim->Price) && $claim->Price > 0) { $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; } else if (isset($claim->Fee) && strtolower($claim->FeeCurrency) === 'lbc') { - $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; + $cost = $this->Amount->formatCurrency($claim->Fee) . ' LBC'; } $desc = $claim->Description; @@ -171,7 +171,7 @@ if (strlen(trim($desc)) == 0) { if (isset($claim->Price) && $claim->Price > 0) { $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; } else if (isset($claim->Fee) && strtolower($claim->FeeCurrency) === 'lbc') { - $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; + $cost = $this->Amount->formatCurrency($claim->Fee) . ' LBC'; } // content type @@ -286,7 +286,7 @@ if (strlen(trim($desc)) == 0) { if (isset($claim->Price) && $claim->Price > 0) { $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; } else if (isset($claim->Fee) && strtolower($claim->FeeCurrency) === 'lbc') { - $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; + $cost = $this->Amount->formatCurrency($claim->Fee) . ' LBC'; } // content type