| $product = Product::where('speed', $formD->PackageDetail->name)->where('formT',$formD->type_application)->first(); | $product = Product::where('speed', $formD->PackageDetail->name)->where('formT',$formD->type_application)->first(); | ||||
| $docket = Docket::where('work_order_id',$formD->WorkOrder->wo)->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; | $price = (int)$product->retail_price; | ||||
| } | |||||
| // } | |||||
| if(!empty($docket->docket_id)){ | if(!empty($docket->docket_id)){ | ||||
| $subsData = [ | $subsData = [ |