From 850c1e99fff8deb5ccd764ac72e862b606d836d9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 10 Jan 2024 13:21:43 +1100 Subject: [PATCH] Version bump --- VERSION.txt | 2 +- config/ninja.php | 4 ++-- .../2024_01_09_084515_product_cost_field_population.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index fb54fe3dc1..97276d1dee 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.8.6 \ No newline at end of file +5.8.7 \ No newline at end of file diff --git a/config/ninja.php b/config/ninja.php index ce02443746..add7d2a3ba 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -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.8.6'), - 'app_tag' => env('APP_TAG', '5.8.6'), + 'app_version' => env('APP_VERSION', '5.8.7'), + 'app_tag' => env('APP_TAG', '5.8.7'), 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', false), diff --git a/database/migrations/2024_01_09_084515_product_cost_field_population.php b/database/migrations/2024_01_09_084515_product_cost_field_population.php index d47126d049..fd3ab9a432 100644 --- a/database/migrations/2024_01_09_084515_product_cost_field_population.php +++ b/database/migrations/2024_01_09_084515_product_cost_field_population.php @@ -34,7 +34,7 @@ return new class extends Migration if($product = Product::where('company_id', $invoice->company_id)->where('product_key', $item->product_key)->where('cost', '>', 0)->first()) { if((property_exists($item, 'product_cost') && $item->product_cost == 0) || !property_exists($item, 'product_cost')) - $line_items[$key]->product_cost = $product->cost; + $line_items[$key]->product_cost = (float)$product->cost; } }