Working on gateway fees

This commit is contained in:
Hillel Coren 2017-03-16 18:34:51 +02:00
parent 0ddd4479b7
commit beb25e8dee

View File

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