mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-24 21:38:42 +00:00
fix tests
This commit is contained in:
parent
811c9a0381
commit
5d399c85de
|
|
@ -916,7 +916,7 @@ final class ApiBillController extends Controller
|
|||
/**
|
||||
* Api method to create a bill element
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param HttpRequest $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
* @param array $data Generic data
|
||||
*
|
||||
|
|
|
|||
|
|
@ -106,9 +106,9 @@ final class ApiTaxController extends Controller
|
|||
$account->mainAddress->setCountry($defaultCountry);
|
||||
}
|
||||
|
||||
$taxCodeAttribute = $client !== null
|
||||
? $this->getClientTaxCode($account, $unit->mainAddress)
|
||||
: $this->getSupplierTaxCode($account, $unit->mainAddress);
|
||||
$taxCodeAttribute = $client !== null /* @phpstan-ignore-line */
|
||||
? $this->getClientTaxCode($account, $unit->mainAddress) /* @phpstan-ignore-line */
|
||||
: $this->getSupplierTaxCode($account, $unit->mainAddress); /* @phpstan-ignore-line */
|
||||
|
||||
return TaxCombinationMapper::get()
|
||||
->with('taxCode')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user