diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 7d41c6aeb12e..cb42ebbb7cea 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -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);