From 1073e70f7083c6b9196d904259b8c2666d00cfe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 29 Jul 2021 12:55:30 +0200 Subject: [PATCH] Hide $oustanding from Quotes' PDF --- app/Services/PdfMaker/Design.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 7d41c6aeb1..cb42ebbb7c 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);