From 18312b95838daab314deda4a5ec1ec815b5f8c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 20 Nov 2020 14:31:47 +0100 Subject: [PATCH] always show invoice.totals --- app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php index c59a31ec8d2e..662ba2fcd343 100644 --- a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php +++ b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php @@ -195,6 +195,11 @@ trait DesignHelpers // Extract $invoice.date => date // so we can append date as $entity->date and not $entity->$invoice.date; + // When it comes to invoice balance, we'll always show it. + if ($variable == '$invoice.total') { + return false; + } + try { $_variable = explode('.', $variable)[1]; } catch (Exception $e) {