diff --git a/app/Ninja/Repositories/InvoiceRepository.php b/app/Ninja/Repositories/InvoiceRepository.php index 203324e04e..8d77b8b83e 100644 --- a/app/Ninja/Repositories/InvoiceRepository.php +++ b/app/Ninja/Repositories/InvoiceRepository.php @@ -1021,7 +1021,7 @@ class InvoiceRepository extends BaseRepository if ($location == FEE_LOCATION_ITEM) { // todo } else { - if ($invoice->$location > 0) { + if ($invoice->$location != 0) { $data = $invoice->toArray(); $data[$location] = 0; $invoice = $this->save($data, $invoice);