From fc8518e35e2c13b6f392ae0ef31f64a8dc2b0c0b Mon Sep 17 00:00:00 2001 From: denisdulici Date: Wed, 4 Dec 2019 21:21:15 +0300 Subject: [PATCH] php 7.4 --- app/Models/Expense/BillTotal.php | 4 ++-- app/Models/Income/InvoiceTotal.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Expense/BillTotal.php b/app/Models/Expense/BillTotal.php index a23424b65..d6a81705c 100644 --- a/app/Models/Expense/BillTotal.php +++ b/app/Models/Expense/BillTotal.php @@ -76,9 +76,9 @@ class BillTotal extends Model $title .= ' ('; if (setting('localisation.percent_position', 'after') == 'after') { - $title .= $this->code == 'discount' ? false : $tax->type == 'fixed' ? $percent : $percent . '%'; + $title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : $percent . '%'); } else { - $title .= $this->code == 'discount' ? false : $tax->type == 'fixed' ? $percent : '%' . $percent; + $title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent); } $title .= ')'; diff --git a/app/Models/Income/InvoiceTotal.php b/app/Models/Income/InvoiceTotal.php index a16f89164..ac96dbb19 100644 --- a/app/Models/Income/InvoiceTotal.php +++ b/app/Models/Income/InvoiceTotal.php @@ -76,9 +76,9 @@ class InvoiceTotal extends Model $title .= ' ('; if (setting('localisation.percent_position', 'after') == 'after') { - $title .= $this->code == 'discount' ? false : $tax->type == 'fixed' ? $percent : $percent . '%'; + $title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : $percent . '%'); } else { - $title .= $this->code == 'discount' ? false : $tax->type == 'fixed' ? $percent : '%' . $percent; + $title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent); } $title .= ')';