From 1f341fb29a98f2937b3c9d4ec2ffd1befc8a2ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 24 Aug 2021 15:36:08 +0200 Subject: [PATCH] Option to pass `show_payment_table` for `statementPaymentTable` --- 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 806959590ab7..e330ade5697f 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -388,6 +388,10 @@ class Design extends BaseDesign return []; } + if (\array_key_exists('show_payment_table', $this->options) && $this->options['show_payment_table'] === false) { + return []; + } + $tbody = []; foreach ($this->payments as $payment) {