Fixes for html display of invoices
This commit is contained in:
parent
0f402d9ee1
commit
55a11fef05
|
|
@ -172,7 +172,7 @@ class PdfSlot extends Component
|
||||||
'products' => $this->getProducts(),
|
'products' => $this->getProducts(),
|
||||||
'services' => $this->getServices(),
|
'services' => $this->getServices(),
|
||||||
'amount' => Number::formatMoney($this->entity()->amount, $this->entity()->client ?: $this->entity()->vendor),
|
'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,
|
'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,
|
'taxes' => $this->entity_calc->getTotalTaxes() > 0 ? Number::formatMoney($this->entity_calc->getTotalTaxes(), $this->entity()->client ?: $this->entity()->vendor) : false,
|
||||||
'company_details' => $this->getCompanyDetails(),
|
'company_details' => $this->getCompanyDetails(),
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ span {
|
||||||
</tr>
|
</tr>
|
||||||
@if(!$is_quote)
|
@if(!$is_quote)
|
||||||
<tr>
|
<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>
|
<td style="text-align:right; padding-right:10px;" class="text-lg">{{ $balance }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue