mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
fa38433de9
commit
ee8a4b6ab6
@ -99,10 +99,10 @@ class StorecoveRouter
|
|||||||
* Return the routing code based on country and entity classification
|
* Return the routing code based on country and entity classification
|
||||||
*
|
*
|
||||||
* @param string $country
|
* @param string $country
|
||||||
* @param string $classification
|
* @param ?string $classification
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function resolveRouting(string $country, string $classification): string
|
public function resolveRouting(string $country, ?string $classification = 'business'): string
|
||||||
{
|
{
|
||||||
$rules = $this->routing_rules[$country];
|
$rules = $this->routing_rules[$country];
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ class StorecoveRouter
|
|||||||
* @param ?string $classification
|
* @param ?string $classification
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function resolveTaxScheme(string $country, ?string $classification): string
|
public function resolveTaxScheme(string $country, ?string $classification = "business"): string
|
||||||
{
|
{
|
||||||
|
|
||||||
$rules = isset($this->routing_rules[$country]) ? $this->routing_rules[$country] : [false, false, false, false];
|
$rules = isset($this->routing_rules[$country]) ? $this->routing_rules[$country] : [false, false, false, false];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user