mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Sort order or payment methods
This commit is contained in:
parent
cfd76fc8df
commit
b0d5117a0f
@ -153,7 +153,7 @@ class Client extends BaseModel implements HasLocalePreference
|
||||
|
||||
public function gateway_tokens()
|
||||
{
|
||||
return $this->hasMany(ClientGatewayToken::class);
|
||||
return $this->hasMany(ClientGatewayToken::class)->orderBy('is_default', 'ASC');
|
||||
}
|
||||
|
||||
public function expenses()
|
||||
|
@ -189,8 +189,8 @@ class AutoBillInvoice extends AbstractService
|
||||
->adjustCreditBalance($amount * -1)
|
||||
->save();
|
||||
|
||||
$this->invoice->ledger()
|
||||
->updateInvoiceBalance($amount * -1, "Invoice {$this->invoice->number} payment using Credit {$current_credit->number}")
|
||||
$this->invoice->ledger() //09-03-2022
|
||||
// ->updateInvoiceBalance($amount * -1, "Invoice {$this->invoice->number} payment using Credit {$current_credit->number}")
|
||||
->updateCreditBalance($amount * -1, "Credit {$current_credit->number} used to pay down Invoice {$this->invoice->number}")
|
||||
->save();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user