From 9dc61da56e14f84bb721889030fcb6838eeaa2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 23 Aug 2021 14:21:28 +0200 Subject: [PATCH] Add option to accept `payments` in the Design --- app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php index b9134d52620b..fd224d10260d 100644 --- a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php +++ b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php @@ -41,6 +41,10 @@ trait DesignHelpers $this->entity = $this->invoices->first(); } + if (isset($this->context['payments'])) { + $this->payments = $this->context['payments']; + } + $this->document(); return $this;