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)) {
|
if (!empty($percent)) {
|
||||||
|
|
||||||
$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') ? $percent. '%' : (($tax->type == 'fixed') ? $percent : $percent . '%');
|
||||||
} else {
|
} else {
|
||||||
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
$title .= ($this->code == 'discount') ? '%' .$percent : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||||
}
|
}
|
||||||
|
|
||||||
$title .= ')';
|
$title .= ')';
|
||||||
|
@ -72,13 +72,12 @@ class InvoiceTotal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($percent)) {
|
if (!empty($percent)) {
|
||||||
|
|
||||||
$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') ? $percent. '%' : (($tax->type == 'fixed') ? $percent : $percent . '%');
|
||||||
} else {
|
} else {
|
||||||
$title .= ($this->code == 'discount') ? false : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
$title .= ($this->code == 'discount') ? '%' .$percent : (($tax->type == 'fixed') ? $percent : '%' . $percent);
|
||||||
}
|
}
|
||||||
|
|
||||||
$title .= ')';
|
$title .= ')';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user