wip
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Modules\SberPaymentOrder\Nova\Resources\Concerns;
|
||||
|
||||
use App\Modules\VisaMasterPaymentOrder\Nova\Resources\NovaSberPaymentOrderItem;
|
||||
use App\Nova\Resources\Branch\Branch;
|
||||
use App\Repos\Order\OrderRepo;
|
||||
use App\Repos\System\Settings\Legal\PassportRepo;
|
||||
@@ -9,6 +10,7 @@ use App\Repos\System\Settings\Location\RegionRepo;
|
||||
use Ebess\AdvancedNovaMediaLibrary\Fields\Files;
|
||||
use Laravel\Nova\Fields\Badge;
|
||||
use Laravel\Nova\Fields\BelongsTo;
|
||||
use Laravel\Nova\Fields\HasMany;
|
||||
use Laravel\Nova\Fields\Hidden;
|
||||
use Laravel\Nova\Fields\ID;
|
||||
use Laravel\Nova\Fields\Select;
|
||||
@@ -169,6 +171,8 @@ class SberPaymentOrderFieldsForDetail
|
||||
|
||||
Files::make('Ugradyjy we kabul ediji (talyp) 2015-nji ýyldan soňra Türkmenistanyň raýatynyň pasportyny ikinji gezek alandan soňra birinji gezek alan pasportynyň seriýasy baradaky maglumaty bilmeýän, bolsa onda polisiýanyň degişli edaralaryndan birinji alan pasportynyň seriýasy baradaky güwänamasy', 'sender_passport_local_old_replacement'),
|
||||
]),
|
||||
|
||||
HasMany::make(__('Payment items'), 'paymentItems', NovaSberPaymentOrderItem::class),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,12 +34,6 @@ class MakeSberPaymentAction extends Action
|
||||
$payment_amount = floatval($fields->get('payment_amount'));
|
||||
$usd_payment = $fields->get('usd_payment');
|
||||
|
||||
info([
|
||||
'usd_to_tmt' => $usd_to_tmt,
|
||||
'payment_amount' => $payment_amount,
|
||||
'usd_payment' => $usd_payment,
|
||||
]);
|
||||
|
||||
if (! $usd_to_tmt || ! $payment_amount || ! $usd_payment) {
|
||||
return ActionResponse::danger('Walýuta hasaby girizilmedik, operator bilen habarlaşmagyňyzy haýyş edýärin.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user