This commit is contained in:
2024-11-25 19:50:38 +05:00
parent 6bc1b0e9ba
commit 51c7c64355

View File

@@ -138,9 +138,8 @@ class MakePaymentNovaVisaMaster extends Action
Text::make(__('USD ekwalendi'), 'usd_rate')
->fullWidth()
->readonly()
->dependsOn('payment_amount', function ($field, $request, $formData) use ($usd_to_tmt) {
if (property_exists($formData, 'payment_amount')) {
if ($formData->payment_amount) {
$field->setValue(number_format($formData->payment_amount / $usd_to_tmt, 2, '.', ''));
} else {
$field->setValue('');