mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-31 21:51:10 -04:00
fix tax percent & pdf money format issue
This commit is contained in:
@ -181,10 +181,14 @@
|
||||
@foreach ($expenseCategories as $expenseCategory)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $expenseCategory->category->name }}</p>
|
||||
<p class="expense-title">
|
||||
{{ $expenseCategory->category->name }}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($expenseCategory->total_amount) !!}</p>
|
||||
<p class="expense-money">
|
||||
{!! format_money_pdf($expenseCategory->total_amount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@ -220,10 +220,14 @@
|
||||
@foreach ($expenseCategories as $expenseCategory)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $expenseCategory->category->name }}</p>
|
||||
<p class="expense-title">
|
||||
{{ $expenseCategory->category->name }}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($expenseCategory->total_amount) !!}</p>
|
||||
<p class="expense-money">
|
||||
{!! format_money_pdf($expenseCategory->total_amount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@ -223,10 +223,14 @@
|
||||
@foreach ($customer->invoices as $invoice)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $invoice->formattedInvoiceDate }} ({{ $invoice->invoice_number }})</p>
|
||||
<p class="expense-title">
|
||||
{{ $invoice->formattedInvoiceDate }} ({{ $invoice->invoice_number }})
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($invoice->total) !!}</p>
|
||||
<p class="expense-money">
|
||||
{!! format_money_pdf($invoice->total) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@ -235,7 +239,9 @@
|
||||
<table class="expense-total-table">
|
||||
<tr>
|
||||
<td class="expense-total-cell">
|
||||
<p class="expense-total">{!! format_money_pdf($customer->totalAmount) !!}</p>
|
||||
<p class="expense-total">
|
||||
{!! format_money_pdf($customer->totalAmount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -249,7 +255,9 @@
|
||||
<p class="profit-title">TOTAL SALES</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="profit-money">{!! format_money_pdf($totalAmount) !!}</p>
|
||||
<p class="profit-money">
|
||||
{!! format_money_pdf($totalAmount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -222,10 +222,14 @@
|
||||
<table class="expenses-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="expense-title">{{ $item->name }}</p>
|
||||
<p class="expense-title">
|
||||
{{ $item->name }}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="expense-money">{!! format_money_pdf($item->total_amount) !!}</p>
|
||||
<p class="expense-money">
|
||||
{!! format_money_pdf($item->total_amount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -235,7 +239,9 @@
|
||||
<table class="expense-total-table">
|
||||
<tr>
|
||||
<td class="expense-total-cell">
|
||||
<p class="expense-total">{!! format_money_pdf($totalAmount) !!}</p>
|
||||
<p class="expense-total">
|
||||
{!! format_money_pdf($totalAmount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -248,7 +254,9 @@
|
||||
<p class="profit-title">TOTAL SALES</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="profit-money">{!! format_money_pdf($totalAmount) !!}</p>
|
||||
<p class="profit-money">
|
||||
{!! format_money_pdf($totalAmount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -174,10 +174,14 @@
|
||||
<table class="header">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="heading-text">{{ $company->name }}</p>
|
||||
<p class="heading-text">
|
||||
{{ $company->name }}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="heading-date-range">{{ $from_date }} - {{ $to_date }}</p>
|
||||
<p class="heading-date-range">
|
||||
{{ $from_date }} - {{ $to_date }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -192,10 +196,14 @@
|
||||
@foreach ($taxTypes as $tax)
|
||||
<tr>
|
||||
<td>
|
||||
<p class="tax-title">{{ $tax->taxType->name }}</p>
|
||||
<p class="tax-title">
|
||||
{{ $tax->taxType->name }}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="tax-money">{!! format_money_pdf($tax->total_tax_amount) !!}</p>
|
||||
<p class="tax-money">
|
||||
{!! format_money_pdf($tax->total_tax_amount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@ -207,7 +215,9 @@
|
||||
<table class="tax-total-table">
|
||||
<tr>
|
||||
<td class="tax-total-cell">
|
||||
<p class="tax-total">{!! format_money_pdf($totalTaxAmount) !!}</p>
|
||||
<p class="tax-total">
|
||||
{!! format_money_pdf($totalTaxAmount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -217,7 +227,9 @@
|
||||
<p class="total-tax-title">TOTAL TAX</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="total-tax-money">{!! format_money_pdf($totalTaxAmount) !!}</p>
|
||||
<p class="total-tax-money">
|
||||
{!! format_money_pdf($totalTaxAmount) !!}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user