mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Minor fixes
This commit is contained in:
parent
138fb7afd4
commit
3251bbdc6a
@ -147,7 +147,12 @@ class InvoiceItemExport extends BaseExport
|
|||||||
if(str_contains($key, "item.")){
|
if(str_contains($key, "item.")){
|
||||||
|
|
||||||
$key = str_replace("item.", "", $key);
|
$key = str_replace("item.", "", $key);
|
||||||
$item_array[$key] = $item->{$key};
|
|
||||||
|
if(property_exists($item, $key))
|
||||||
|
$item_array[$key] = $item->{$key};
|
||||||
|
else
|
||||||
|
$item_array[$key] = '';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -301,11 +301,6 @@ class CompanyGateway extends BaseModel
|
|||||||
|
|
||||||
$fee = $this->calcGatewayFee($amount, $gateway_type_id);
|
$fee = $this->calcGatewayFee($amount, $gateway_type_id);
|
||||||
|
|
||||||
// if ($fee > 0) {
|
|
||||||
// $fee = Number::formatMoney(round($fee, 2), $client);
|
|
||||||
// $label = ' - '.$fee.' '.ctrans('texts.fee');
|
|
||||||
// }
|
|
||||||
|
|
||||||
if($fee > 0) {
|
if($fee > 0) {
|
||||||
|
|
||||||
$fees_and_limits = $this->fees_and_limits->{$gateway_type_id};
|
$fees_and_limits = $this->fees_and_limits->{$gateway_type_id};
|
||||||
|
Loading…
Reference in New Issue
Block a user