1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Working on gateway fees

This commit is contained in:
Hillel Coren 2017-03-16 23:02:32 +02:00
parent fb09a38efa
commit 4e7050206d

View File

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