From beb25e8dee48107cfb1ba57eab9199ea8407ebcf Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 16 Mar 2017 18:34:51 +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 1ef8ff93986f..853ec2b5d814 100644 --- a/app/Ninja/Repositories/InvoiceRepository.php +++ b/app/Ninja/Repositories/InvoiceRepository.php @@ -1025,7 +1025,7 @@ class InvoiceRepository extends BaseRepository if ($location == FEE_LOCATION_ITEM) { // todo } else { - if ($invoice->$field > 0) { + if ($invoice->$location > 0) { $data = $invoice->toArray(); $data[$location] = 0; $invoice = $this->save($data, $invoice);