wip
This commit is contained in:
@@ -138,9 +138,8 @@ class MakePaymentNovaVisaMaster extends Action
|
|||||||
|
|
||||||
Text::make(__('USD ekwalendi'), 'usd_rate')
|
Text::make(__('USD ekwalendi'), 'usd_rate')
|
||||||
->fullWidth()
|
->fullWidth()
|
||||||
->readonly()
|
|
||||||
->dependsOn('payment_amount', function ($field, $request, $formData) use ($usd_to_tmt) {
|
->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, '.', ''));
|
$field->setValue(number_format($formData->payment_amount / $usd_to_tmt, 2, '.', ''));
|
||||||
} else {
|
} else {
|
||||||
$field->setValue('');
|
$field->setValue('');
|
||||||
|
|||||||
Reference in New Issue
Block a user