diff --git a/VERSION.txt b/VERSION.txt index 339c435943b5..464ac1862d73 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.5.85 \ No newline at end of file +5.5.86 \ No newline at end of file diff --git a/app/Transformers/ClientTransformer.php b/app/Transformers/ClientTransformer.php index 81318349a487..959e8f751985 100644 --- a/app/Transformers/ClientTransformer.php +++ b/app/Transformers/ClientTransformer.php @@ -114,6 +114,7 @@ class ClientTransformer extends EntityTransformer 'balance' => (float) $client->balance, 'group_settings_id' => isset($client->group_settings_id) ? (string) $this->encodePrimaryKey($client->group_settings_id) : '', 'paid_to_date' => (float) $client->paid_to_date, + 'payment_balance' => (float) $client->payment_balance, 'credit_balance' => (float) $client->credit_balance, 'last_login' => (int) $client->last_login, 'size_id' => (string) $client->size_id, diff --git a/config/ninja.php b/config/ninja.php index bf48b77ba509..95ce1bf404a9 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.5.85', - 'app_tag' => '5.5.85', + 'app_version' => '5.5.86', + 'app_tag' => '5.5.86', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''), diff --git a/database/migrations/2023_03_09_121033_add_payment_balance_to_clients_table.php b/database/migrations/2023_03_09_121033_add_payment_balance_to_clients_table.php new file mode 100644 index 000000000000..9e7809629270 --- /dev/null +++ b/database/migrations/2023_03_09_121033_add_payment_balance_to_clients_table.php @@ -0,0 +1,44 @@ +decimal('payment_balance', 20, 6)->default(0); + }); + + Company::query() + ->cursor() + ->each(function (Company $company) { + + $settings = $company->settings; + + if(!property_exists($settings, 'show_task_item_description')) + $company->saveSettings((array)$company->settings, $company); + + + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + + } +};