1
0
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:
Hillel Coren 2015-03-20 09:11:58 +02:00
parent 281b36b67c
commit 4e3e29a78e

View File

@ -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();
}