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) {