From 0b9376f180e3d22920038b2d289a2b4eab00c926 Mon Sep 17 00:00:00 2001 From: Lionel Guichard Date: Fri, 5 Jul 2024 17:33:30 +0200 Subject: [PATCH] Fix - Price non-numeric value encountered (#1804) This PR fix error occurs when the use try to save decimal price --- .../src/Support/Concerns/Products/ManagesProductPricing.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/admin/src/Support/Concerns/Products/ManagesProductPricing.php b/packages/admin/src/Support/Concerns/Products/ManagesProductPricing.php index 3d79da491d..a9d7936560 100644 --- a/packages/admin/src/Support/Concerns/Products/ManagesProductPricing.php +++ b/packages/admin/src/Support/Concerns/Products/ManagesProductPricing.php @@ -88,6 +88,7 @@ public function getBasePriceFormSection(): Section Forms\Components\TextInput::make('value') ->label('') ->statePath($index.'.value') + ->numeric() ->label( __('lunarpanel::relationmanagers.pricing.form.basePrices.form.price.label') ) @@ -114,6 +115,7 @@ public function getBasePriceFormSection(): Section Forms\Components\TextInput::make('compare_price') ->label('') ->statePath($index.'.compare_price') + ->numeric() ->label( __('lunarpanel::relationmanagers.pricing.form.basePrices.form.compare_price.label') )