Return earlier if payment type = credit

This commit is contained in:
David Bomba 2025-01-13 19:05:59 +11:00
parent 9a7478e175
commit 62bab1e353
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ class InvoicePay extends Component
$company_gateway = CompanyGateway::query()->find($company_gateway_id); $company_gateway = CompanyGateway::query()->find($company_gateway_id);
if(!$company_gateway)
return $this->required_fields = false;
$this->checkRequiredFields($company_gateway); $this->checkRequiredFields($company_gateway);
} }