wip
This commit is contained in:
1 parent
9d77e50191
commit
ae0ecffe98
1 file changed
+2
@@ -32,6 +32,8 @@ public function handle(ActionFields $fields, Collection $models): mixed
|
||||
{
|
||||
$usd_to_tmt = CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value');
|
||||
|
||||
info($fields);
|
||||
|
||||
if (! $usd_to_tmt || ! property_exists($fields, 'payment_amount') || ! property_exists($fields, '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