mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 10:04:30 -04:00
Add client to tax report
This commit is contained in:
parent
1903ef619f
commit
c91a16f6ca
@ -8,6 +8,7 @@ use Auth;
|
||||
class TaxRateReport extends AbstractReport
|
||||
{
|
||||
public $columns = [
|
||||
'client',
|
||||
'invoice',
|
||||
'tax_name',
|
||||
'tax_rate',
|
||||
@ -67,7 +68,8 @@ class TaxRateReport extends AbstractReport
|
||||
foreach ($taxTotals as $currencyId => $taxes) {
|
||||
foreach ($taxes as $tax) {
|
||||
$this->data[] = [
|
||||
$invoice->present()->link,
|
||||
$this->isExport ? $client->getDisplayName() : $client->present()->link,
|
||||
$this->isExport ? $invoice->invoice_number : $invoice->present()->link,
|
||||
$tax['name'],
|
||||
$tax['rate'] . '%',
|
||||
$account->formatMoney($tax['amount'], $client),
|
||||
|
Loading…
x
Reference in New Issue
Block a user