fixed claims price display for LBC currency

This commit is contained in:
Akinwale Ariwodola 2017-06-16 08:33:18 +01:00
parent 10f271ce67
commit e5bb7e470d

View file

@ -54,7 +54,7 @@ $cost = 'Free';
if (isset($claim->Price) && $claim->Price > 0) { if (isset($claim->Price) && $claim->Price > 0) {
$cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC';
} else if (isset($claim->Fee) && strtolower($claim->FeeCurrency) === '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; $desc = $claim->Description;
@ -171,7 +171,7 @@ if (strlen(trim($desc)) == 0) {
if (isset($claim->Price) && $claim->Price > 0) { if (isset($claim->Price) && $claim->Price > 0) {
$cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC';
} else if (isset($claim->Fee) && strtolower($claim->FeeCurrency) === '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 // content type
@ -286,7 +286,7 @@ if (strlen(trim($desc)) == 0) {
if (isset($claim->Price) && $claim->Price > 0) { if (isset($claim->Price) && $claim->Price > 0) {
$cost = $this->Amount->formatCurrency($claim->Price) . ' LBC'; $cost = $this->Amount->formatCurrency($claim->Price) . ' LBC';
} else if (isset($claim->Fee) && strtolower($claim->FeeCurrency) === '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 // content type