mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #4692 from beganovich/v5-show-partial-due
(v5) Show partial due at invoice totals
This commit is contained in:
commit
6a8f3d6b1c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user