wip
This commit is contained in:
@@ -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, '.', '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user