From 3bcc9a2d74ecd1c5c62e2133de1620ea6af636bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 14 Jan 2021 16:49:24 +0100 Subject: [PATCH] show partial due --- app/Services/PdfMaker/Design.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 7102bcb237c1..7c40d1387781 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -474,6 +474,14 @@ class Design extends BaseDesign } } + if (!is_null($this->entity->partial) && $this->entity->partial > 0) { + $elements[] = ['element' => 'div', 'elements' => [ + ['element' => 'span', 'content' => 'This is placeholder for the 3rd fraction of element.', 'properties' => ['style' => 'opacity: 0%']], // Placeholder for fraction of element (3fr) + ['element' => 'span', 'content' => '$partial_due_label', 'properties' => ['data-ref' => 'totals_table-partial_due-label']], + ['element' => 'span', 'content' => '$partial_due'], + ]]; + } + return $elements; } }