|
|
|
@@ -50,7 +50,7 @@ class DealerClaimController extends Controller |
|
|
|
$product = Product::where('speed', $formD->PackageDetail->name)->where('formT',$formD->type_application)->first(); |
|
|
|
$docket = Docket::where('work_order_id',$formD->WorkOrder->wo)->first(); |
|
|
|
|
|
|
|
if(date('m/Y', strtotime(Carbon::parse($formD->created_at)->setTimezone('Asia/Kuala_Lumpur'))) == '10/2020'){ |
|
|
|
if(date('m/Y', strtotime(Carbon::parse($formD->created_at)->setTimezone('Asia/Kuala_Lumpur'))) == '12/2020'){ |
|
|
|
$price = (int)$product->promotion_price; |
|
|
|
} else { |
|
|
|
$price = (int)$product->retail_price; |