mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04:00
Minor fixes
This commit is contained in:
parent
46b28d6b09
commit
73f4417797
@ -37,7 +37,8 @@ class ClientService
|
|||||||
|
|
||||||
public function calculateBalance(?Invoice $invoice = null)
|
public function calculateBalance(?Invoice $invoice = null)
|
||||||
{
|
{
|
||||||
$balance = Invoice::where('client_id', $this->client->id)
|
$balance = Invoice::withTrashed()
|
||||||
|
->where('client_id', $this->client->id)
|
||||||
->whereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL])
|
->whereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL])
|
||||||
->where('is_deleted', false)
|
->where('is_deleted', false)
|
||||||
->sum('balance');
|
->sum('balance');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user