mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +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);
|
$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->balance = $client->balance + $diff;
|
||||||
$client->save();
|
$client->save();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user