mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add updateBalance method to credit service
This commit is contained in:
parent
d870bb5a87
commit
3c23d5e31f
@ -104,6 +104,13 @@ class CreditService
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function updateBalance($adjustment)
|
||||||
|
{
|
||||||
|
$this->credit->balance -= $adjustment;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function fillDefaults()
|
public function fillDefaults()
|
||||||
{
|
{
|
||||||
$settings = $this->credit->client->getMergedSettings();
|
$settings = $this->credit->client->getMergedSettings();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user