Merge pull request #4340 from beganovich/v5-show-invoice-totals-always

(v5) Always show invoice total on the PDFs
This commit is contained in:
Benjamin Beganović 2020-11-20 14:32:58 +01:00 committed by GitHub
commit 87c644b998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,11 @@ trait DesignHelpers
// Extract $invoice.date => date
// so we can append date as $entity->date and not $entity->$invoice.date;
// When it comes to invoice balance, we'll always show it.
if ($variable == '$invoice.total') {
return false;
}
try {
$_variable = explode('.', $variable)[1];
} catch (Exception $e) {