wip
This commit is contained in:
@@ -142,8 +142,6 @@ class MakeSberPaymentAction extends Action
|
|||||||
|
|
||||||
Hidden::make('usd_payment')
|
Hidden::make('usd_payment')
|
||||||
->dependsOn('payment_amount', function ($field, $request, $formData) use ($usd_to_rub, $rub_to_tmt) {
|
->dependsOn('payment_amount', function ($field, $request, $formData) use ($usd_to_rub, $rub_to_tmt) {
|
||||||
$field->setValue(2000);
|
|
||||||
|
|
||||||
if (property_exists($formData, 'payment_amount')) {
|
if (property_exists($formData, 'payment_amount')) {
|
||||||
$usdValue = number_format($formData->payment_amount / ($usd_to_rub * $rub_to_tmt), 2, '.', '');
|
$usdValue = number_format($formData->payment_amount / ($usd_to_rub * $rub_to_tmt), 2, '.', '');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user