From 4e7050206d61a68774a496c02bb4601052086e01 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 16 Mar 2017 23:02:32 +0200 Subject: [PATCH] Working on gateway fees --- app/Ninja/Repositories/InvoiceRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);