1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Order gateways by is_default

This commit is contained in:
David Bomba 2021-10-04 21:10:56 +11:00
parent 5a31634f81
commit 129a8a0210
2 changed files with 7 additions and 2 deletions

View File

@ -306,8 +306,8 @@ class AutoBillInvoice extends AbstractService
{
//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;
$gateway_tokens = $this->client->gateway_tokens()->orderBy('is_default', 'DESC');
// $gateway_tokens = $this->client->gateway_tokens;
$filtered_gateways = $gateway_tokens->filter(function ($gateway_token) use($amount) {

View File

@ -0,0 +1,5 @@
@extends('portal.ninja2020.layout.error')
@section('title', __('Server Error'))
@section('code', '500')
@section('message', __($message) ?: 'System Error')