From c1efcba422b199d932449d7b2123f93b4676d6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 20 Sep 2021 08:50:22 +0200 Subject: [PATCH] Showing partial due on the quotes --- app/Services/PdfMaker/Design.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 818307c806ef..6164bad7a2e9 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -241,6 +241,10 @@ class Design extends BaseDesign if ($this->entity instanceof Quote) { $variables = $this->context['pdf_variables']['quote_details']; + + if ($this->entity->partial > 0) { + $variables[] = '$quote.balance_due'; + } } if ($this->entity instanceof Credit) {