Fixes for html display of invoices

This commit is contained in:
David Bomba 2025-09-18 09:01:21 +10:00
parent 0f402d9ee1
commit 55a11fef05
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ class PdfSlot extends Component
'products' => $this->getProducts(),
'services' => $this->getServices(),
'amount' => Number::formatMoney($this->entity()->amount, $this->entity()->client ?: $this->entity()->vendor),
'balance' => Number::formatMoney($this->entity()->balance, $this->entity()->client ?: $this->entity()->vendor),
'balance' => Number::formatMoney($this->entity()->partial > 0 ? $this->entity()->partial : $this->entity()->balance, $this->entity()->client ?: $this->entity()->vendor),
'discount' => $this->entity_calc->getTotalDiscount() > 0 ? Number::formatMoney($this->entity_calc->getTotalDiscount(), $this->entity()->client ?: $this->entity()->vendor) : false,
'taxes' => $this->entity_calc->getTotalTaxes() > 0 ? Number::formatMoney($this->entity_calc->getTotalTaxes(), $this->entity()->client ?: $this->entity()->vendor) : false,
'company_details' => $this->getCompanyDetails(),

View File

@ -152,7 +152,7 @@ span {
</tr>
@if(!$is_quote)
<tr>
<td style="text-align:left; padding-right:10px;" class="text-lg">{{ ctrans('texts.balance') }}</td>
<td style="text-align:left; padding-right:10px;" class="text-lg">{{ ctrans('texts.balance_due') }}</td>
<td style="text-align:right; padding-right:10px;" class="text-lg">{{ $balance }}</td>
</tr>
@endif