|
|
@@ -50,11 +50,11 @@ 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($product->promotion_price != "0"){ |
|
|
|
// $price = (int)$product->promotion_price; |
|
|
|
// } else { |
|
|
|
if($product->promotion_price != "0"){ |
|
|
|
$price = (int)$product->promotion_price; |
|
|
|
} else { |
|
|
|
$price = (int)$product->retail_price; |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
if(!empty($docket->docket_id)){ |
|
|
|
$subsData = [ |