mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for auto bill
This commit is contained in:
parent
c30a06bd70
commit
0bf387a56d
@ -304,7 +304,7 @@ class AutoBillInvoice extends AbstractService
|
|||||||
{
|
{
|
||||||
|
|
||||||
//get all client gateway tokens and set the is_default one to the first record
|
//get all client gateway tokens and set the is_default one to the first record
|
||||||
$gateway_tokens = $this->client->gateway_tokens()->orderBy('is_default', 'DESC');
|
$gateway_tokens = $this->client->gateway_tokens()->orderBy('is_default', 'DESC')->get();
|
||||||
// $gateway_tokens = $this->client->gateway_tokens;
|
// $gateway_tokens = $this->client->gateway_tokens;
|
||||||
|
|
||||||
$filtered_gateways = $gateway_tokens->filter(function ($gateway_token) use($amount) {
|
$filtered_gateways = $gateway_tokens->filter(function ($gateway_token) use($amount) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user