php 7.4
This commit is contained in:
parent
ac0ef77740
commit
fc8518e35e
@ -76,9 +76,9 @@ class BillTotal extends Model
|
|||||||
$title .= ' (';
|
$title .= ' (';
|
||||||
|
|
||||||
if (setting('localisation.percent_position', 'after') == 'after') {
|
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 {
|
} else {
|
||||||
$title .= $this->code == 'discount' ? false : $tax->type == 'fixed' ? $percent : '%' . $percent;
|
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||||
}
|
}
|
||||||
|
|
||||||
$title .= ')';
|
$title .= ')';
|
||||||
|
@ -76,9 +76,9 @@ class InvoiceTotal extends Model
|
|||||||
$title .= ' (';
|
$title .= ' (';
|
||||||
|
|
||||||
if (setting('localisation.percent_position', 'after') == 'after') {
|
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 {
|
} else {
|
||||||
$title .= $this->code == 'discount' ? false : $tax->type == 'fixed' ? $percent : '%' . $percent;
|
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||||
}
|
}
|
||||||
|
|
||||||
$title .= ')';
|
$title .= ')';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user