This commit is contained in:
2025-11-26 09:46:17 +03:30
parent d47b23f368
commit 6a8d27b2c3
12 changed files with 102 additions and 18 deletions

View File

@@ -40,24 +40,24 @@ class ComputingPaymentRequest extends FormRequest
{
return [
function () {
$fe = config('harim_web_services.Harim_Payment.per');
$fee = config('harim_web_services.Harim_Payment.fee');
$arse = (
$this->traffic *
$this->road_type *
$this->position *
$fe*
$fee *
$this->final_area_space
);
$ayan =(
$this->traffic *
$this->road_type *
$this->position *
$fe*
$fee *
$this->final_plan_space
);
$result = floor($arse + $ayan);
if ($result !== $this->payment_amount) {
if ($result != $this->payment_amount) {
$this->validator->errors()->add(
'payment_amount',
'payment_amount مقادیر بدست امده صحیح نمی باشد.'