debug
This commit is contained in:
@@ -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 مقادیر بدست امده صحیح نمی باشد.'
|
||||
|
||||
Reference in New Issue
Block a user