This commit is contained in:
denisdulici 2019-12-04 21:21:15 +03:00
parent ac0ef77740
commit fc8518e35e
2 changed files with 4 additions and 4 deletions

View File

@ -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 .= ')';

View File

@ -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 .= ')';