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

Add updateBalance method to credit service

This commit is contained in:
David Bomba 2021-02-12 08:16:43 +11:00
parent d870bb5a87
commit 3c23d5e31f

View File

@ -104,6 +104,13 @@ class CreditService
return $this;
}
public function updateBalance($adjustment)
{
$this->credit->balance -= $adjustment;
return $this;
}
public function fillDefaults()
{
$settings = $this->credit->client->getMergedSettings();