mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 22:14:29 -04:00
fix return type in AddGatewayFee
This commit is contained in:
parent
5072d63436
commit
c8a9997a98
@ -45,7 +45,7 @@ class AddGatewayFee extends AbstractService
|
|||||||
$gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount), $this->invoice->client->currency()->precision);
|
$gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount), $this->invoice->client->currency()->precision);
|
||||||
|
|
||||||
if((int)$gateway_fee == 0)
|
if((int)$gateway_fee == 0)
|
||||||
return;
|
return $this->invoice;
|
||||||
|
|
||||||
$this->cleanPendingGatewayFees();
|
$this->cleanPendingGatewayFees();
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class TaskTransformer extends EntityTransformer
|
|||||||
'documents'
|
'documents'
|
||||||
];
|
];
|
||||||
|
|
||||||
public function includeDocuments(Vendor $vendor)
|
public function includeDocuments(Task $task)
|
||||||
{
|
{
|
||||||
$transformer = new DocumentTransformer($this->serializer);
|
$transformer = new DocumentTransformer($this->serializer);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user