diff --git a/VERSION.txt b/VERSION.txt index fb54fe3dc194..97276d1dee4b 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 ce024437469e..add7d2a3baf8 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 d47126d04906..fd3ab9a43258 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; } }