mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 18:04:31 -04:00
Working on gateway fees
This commit is contained in:
parent
0ddd4479b7
commit
beb25e8dee
@ -1025,7 +1025,7 @@ class InvoiceRepository extends BaseRepository
|
|||||||
if ($location == FEE_LOCATION_ITEM) {
|
if ($location == FEE_LOCATION_ITEM) {
|
||||||
// todo
|
// todo
|
||||||
} else {
|
} else {
|
||||||
if ($invoice->$field > 0) {
|
if ($invoice->$location > 0) {
|
||||||
$data = $invoice->toArray();
|
$data = $invoice->toArray();
|
||||||
$data[$location] = 0;
|
$data[$location] = 0;
|
||||||
$invoice = $this->save($data, $invoice);
|
$invoice = $this->save($data, $invoice);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user