Fixes for tax model migrations

This commit is contained in:
David Bomba 2024-12-20 10:45:49 +11:00
parent 2da23ab5c5
commit 08ec334e4c
3 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
5.11.4
5.11.5

View File

@ -46,7 +46,13 @@ class TaxModel
$this->acts_as_receiver = $model->acts_as_receiver ?? false;
$modelArray = get_object_vars($model);
foreach ($modelArray as $key => $value) {
if($key == 'seller_subregion' && $value == null) {
$value = '';
}
$this->{$key} = $value;
}

View File

@ -17,8 +17,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => env('APP_VERSION', '5.11.4'),
'app_tag' => env('APP_TAG', '5.11.4'),
'app_version' => env('APP_VERSION', '5.11.5'),
'app_tag' => env('APP_TAG', '5.11.5'),
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),