mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Updates for invoice service auto bill standard invoices
This commit is contained in:
parent
630a163ecd
commit
b054f57286
@ -44,6 +44,9 @@ class ExpenseFilters extends QueryFilters
|
||||
})
|
||||
->orWhereHas('vendor', function ($q) use ($filter) {
|
||||
$q->where('name', 'like', '%'.$filter.'%');
|
||||
})
|
||||
->orWhereHas('client', function ($q) use ($filter) {
|
||||
$q->where('name', 'like', '%'.$filter.'%');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -570,7 +570,7 @@ class InvoiceService
|
||||
$this->invoice->exchange_rate = $this->invoice->client->setExchangeRate();
|
||||
}
|
||||
|
||||
if ($is_recurring && $this->invoice->client->getSetting('auto_bill_standard_invoices')) {
|
||||
if (!$is_recurring && $this->invoice->client->getSetting('auto_bill_standard_invoices')) {
|
||||
$this->invoice->auto_bill_enabled = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user