This commit is contained in:
Mekan1206
2026-04-29 22:40:09 +05:00
parent dd633ef7da
commit bc2770c24d
7 changed files with 32 additions and 10 deletions

View File

@@ -62,6 +62,10 @@ class OrderFieldsForUpdate
Text::make(__('Shipping price'), 'shipping_price')
->rules('required', 'numeric')
->dependsOn('shippingMethod', function ($field, $request, $formData) {
if ($formData->shipping_price) {
return;
}
if ($formData->shippingMethod) {
$method = OrderShippingMethodModel::query()->find($formData->shippingMethod);
if ($method) {