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:
parent
d870bb5a87
commit
3c23d5e31f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user