Merge pull request #6362 from beganovich/v5-607
(v5) Hide $oustanding from Quotes' PDF
This commit is contained in:
commit
0b917347bf
1 changed files with 7 additions and 0 deletions
|
|
@ -456,6 +456,13 @@ class Design extends BaseDesign
|
|||
return $elements;
|
||||
}
|
||||
|
||||
if ($this->entity instanceof Quote) {
|
||||
// We don't want to show Balanace due on the quotes.
|
||||
if (in_array('$outstanding', $variables)) {
|
||||
$variables = \array_diff($variables, ['$outstanding']);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (['discount'] as $property) {
|
||||
$variable = sprintf('%s%s', '$', $property);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue