This commit is contained in:
2024-11-25 19:46:18 +05:00
parent ae0ecffe98
commit a8825a7bd7

View File

@@ -142,6 +142,8 @@ class MakeSberPaymentAction extends Action
Hidden::make('usd_payment')
->dependsOn('payment_amount', function ($field, $request, $formData) use ($usd_to_rub, $rub_to_tmt) {
$field->setValue(2000);
if (property_exists($formData, 'payment_amount')) {
$usdValue = number_format($formData->payment_amount / ($usd_to_rub * $rub_to_tmt), 2, '.', '');