wip
This commit is contained in:
@@ -52,7 +52,7 @@ class MakePaymentNovaVisaMaster extends Action
|
|||||||
return ActionResponse::danger('Şahamça visa/master tölegi kabul edip bilmeýär.');
|
return ActionResponse::danger('Şahamça visa/master tölegi kabul edip bilmeýär.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$total_amount = floatval(number_format($fields->payment_amount, 2)) + 23;
|
$total_amount = floatval(number_format($fields->payment_amount, 2, '.', '')) + 23;
|
||||||
|
|
||||||
$payment = $this->order($resource, $total_amount);
|
$payment = $this->order($resource, $total_amount);
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ class MakePaymentNovaVisaMaster extends Action
|
|||||||
->dependsOn('payment_amount', function ($field, $request, $formData) {
|
->dependsOn('payment_amount', function ($field, $request, $formData) {
|
||||||
if (is_numeric($formData->payment_amount)) {
|
if (is_numeric($formData->payment_amount)) {
|
||||||
$field->setValue(
|
$field->setValue(
|
||||||
floatval(number_format($formData->payment_amount, 2, '', '')) + 23
|
floatval(number_format($formData->payment_amount, 2, '.', '')) + 23
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$field->setValue('');
|
$field->setValue('');
|
||||||
|
|||||||
Reference in New Issue
Block a user