fix return type in AddGatewayFee

This commit is contained in:
David Bomba 2020-10-12 10:27:38 +11:00
parent 5072d63436
commit c8a9997a98
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class AddGatewayFee extends AbstractService
$gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount), $this->invoice->client->currency()->precision);
if((int)$gateway_fee == 0)
return;
return $this->invoice;
$this->cleanPendingGatewayFees();

View File

@ -33,7 +33,7 @@ class TaskTransformer extends EntityTransformer
'documents'
];
public function includeDocuments(Vendor $vendor)
public function includeDocuments(Task $task)
{
$transformer = new DocumentTransformer($this->serializer);