mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Bug fix for activity tracking
This commit is contained in:
parent
281b36b67c
commit
4e3e29a78e
@ -188,10 +188,10 @@ class Activity extends Eloquent
|
||||
}
|
||||
}
|
||||
|
||||
if ($diff > 0 || $fieldChanged) {
|
||||
if ($diff != 0 || $fieldChanged) {
|
||||
$backupInvoice = Invoice::with('invoice_items', 'client.account', 'client.contacts')->find($invoice->id);
|
||||
|
||||
if ($diff > 0 && !$invoice->is_quote && !$invoice->is_recurring) {
|
||||
if ($diff != 0 && !$invoice->is_quote && !$invoice->is_recurring) {
|
||||
$client->balance = $client->balance + $diff;
|
||||
$client->save();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user