wip
This commit is contained in:
@@ -69,14 +69,14 @@ class MakeSberPaymentAction extends Action
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$max_value = number_format(96.05 * 250 * 0.038611, 2, '.', '');
|
$max_value = number_format(96.05 * 250 * 0.036621, 2, '.', '');
|
||||||
$tvebTaxTMT = $usd_to_tmt->value * 18;
|
$tvebTaxTMT = $usd_to_tmt->value * 18;
|
||||||
$bankTax = 120.75;
|
$bankTax = 120.75;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
Heading::make(Blade::render(<<<HTML
|
Heading::make(Blade::render(<<<HTML
|
||||||
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">1 USD = $usd_to_tmt->value TMT</h3>
|
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">1 USD = $usd_to_tmt->value TMT</h3>
|
||||||
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">1 RUB = 0.038611 TMT</h3>
|
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">1 RUB = 0.036621 TMT</h3>
|
||||||
<br>
|
<br>
|
||||||
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">TVEB USD tutumy: 18 USD</h3>
|
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">TVEB USD tutumy: 18 USD</h3>
|
||||||
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">TVEB tutumy TMT = $tvebTaxTMT TMT</h3>
|
<h3 class="uppercase tracking-wide font-bold text-xs" dusk="heading">TVEB tutumy TMT = $tvebTaxTMT TMT</h3>
|
||||||
@@ -95,7 +95,7 @@ class MakeSberPaymentAction extends Action
|
|||||||
->readonly()
|
->readonly()
|
||||||
->dependsOn('payment_amount', function ($field, $request, $formData) {
|
->dependsOn('payment_amount', function ($field, $request, $formData) {
|
||||||
if ($formData->payment_amount) {
|
if ($formData->payment_amount) {
|
||||||
$usdValue = number_format($formData->payment_amount / (96.05 * 0.038611), 2, '.', '');
|
$usdValue = number_format($formData->payment_amount / (96.05 * 0.036621), 2, '.', '');
|
||||||
|
|
||||||
$field->setValue($usdValue);
|
$field->setValue($usdValue);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user