Option to pass show_payment_table for statementPaymentTable

This commit is contained in:
Benjamin Beganović 2021-08-24 15:36:08 +02:00
parent 6de3637501
commit 1f341fb29a

View File

@ -388,6 +388,10 @@ class Design extends BaseDesign
return []; return [];
} }
if (\array_key_exists('show_payment_table', $this->options) && $this->options['show_payment_table'] === false) {
return [];
}
$tbody = []; $tbody = [];
foreach ($this->payments as $payment) { foreach ($this->payments as $payment) {