wip
This commit is contained in:
@@ -149,7 +149,7 @@ class MakePaymentNovaVisaMaster extends Action
|
||||
|
||||
Hidden::make('usd_payment')
|
||||
->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('');
|
||||
@@ -160,7 +160,7 @@ class MakePaymentNovaVisaMaster extends Action
|
||||
->fullWidth()
|
||||
->readonly()
|
||||
->dependsOn('payment_amount', function ($field, $request, $formData) {
|
||||
if (property_exists($formData, 'payment_amount')) {
|
||||
if ($formData->payment_amount) {
|
||||
$field->setValue(
|
||||
floatval(number_format($formData->payment_amount, 2, '.', '')) + 23
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user