From 3fb9ffbbe78b27fadb6b8dcb9816123d70664aeb Mon Sep 17 00:00:00 2001 From: Nadim Salloum Date: Fri, 30 Dec 2022 13:06:29 +0100 Subject: [PATCH] correct price in car all and sold export --- app/Http/Controllers/CarController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/CarController.php b/app/Http/Controllers/CarController.php index 048b6bf..40fe7a0 100644 --- a/app/Http/Controllers/CarController.php +++ b/app/Http/Controllers/CarController.php @@ -73,10 +73,10 @@ class CarController extends Controller 'known_damage' => $car->known_damage, 'seller' => $bcontract ? $bcontract->contact->full_title : null, 'buy_date' => $bcontract ? $bcontract->date_formatted : null, - 'price' => $bcontract ? $bcontract->price : null, + 'price' => $bcontract ? $bcontract->price_for_excel : null, 'buyer' => $scontract ? $scontract->contact->full_title : null, 'sell_date' => $scontract ? $scontract->date_formatted : null, - 'sell_price' => $scontract ? $scontract->price : null, + 'sell_price' => $scontract ? $scontract->price_for_excel : null, ]; }); @@ -172,10 +172,10 @@ class CarController extends Controller 'known_damage' => $car->known_damage, 'seller' => $bcontract ? $bcontract->contact->full_title : null, 'buy_date' => $bcontract ? $bcontract->date_formatted : null, - 'price' => $bcontract ? $bcontract->price : null, + 'price' => $bcontract ? $bcontract->price_for_excel : null, 'buyer' => $scontract ? $scontract->contact->full_title : null, 'sell_date' => $scontract ? $scontract->date_formatted : null, - 'sell_price' => $scontract ? $scontract->price : null, + 'sell_price' => $scontract ? $scontract->price_for_excel : null, ]; });