refs #1408 discount show rate
This commit is contained in:
parent
550be2ef53
commit
929e1a74bd
@ -72,13 +72,12 @@ class BillTotal extends Model
|
||||
}
|
||||
|
||||
if (!empty($percent)) {
|
||||
|
||||
$title .= ' (';
|
||||
|
||||
if (setting('localisation.percent_position', 'after') == 'after') {
|
||||
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : $percent . '%');
|
||||
$title .= ($this->code == 'discount') ? $percent. '%' : (($tax->type == 'fixed') ? $percent : $percent . '%');
|
||||
} else {
|
||||
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||
$title .= ($this->code == 'discount') ? '%' .$percent : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||
}
|
||||
|
||||
$title .= ')';
|
||||
|
@ -72,13 +72,12 @@ class InvoiceTotal extends Model
|
||||
}
|
||||
|
||||
if (!empty($percent)) {
|
||||
|
||||
$title .= ' (';
|
||||
|
||||
if (setting('localisation.percent_position', 'after') == 'after') {
|
||||
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : $percent . '%');
|
||||
$title .= ($this->code == 'discount') ? $percent. '%' : (($tax->type == 'fixed') ? $percent : $percent . '%');
|
||||
} else {
|
||||
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||
$title .= ($this->code == 'discount') ? '%' .$percent : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||
}
|
||||
|
||||
$title .= ')';
|
||||
|
Loading…
x
Reference in New Issue
Block a user