Merge pull request #9128 from turbo124/v5-develop

v5.8.7
This commit is contained in:
David Bomba 2024-01-10 13:22:08 +11:00 committed by GitHub
commit e9ef343b8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
5.8.6
5.8.7

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.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),

View File

@ -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;
}
}