From 351b787220d72d64ef86ca3e3ac2d6de05943ccc Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 20 Feb 2023 09:25:03 +1100 Subject: [PATCH] Do not show paid to date on 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 b72841433f8c..667b22737788 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -766,6 +766,10 @@ class Design extends BaseDesign if ($this->entity->partial > 0) { $variables[] = '$partial_due'; } + + if (in_array('$paid_to_date', $variables)) { + $variables = \array_diff($variables, ['$paid_to_date']); + } } if ($this->entity instanceof Credit) {