Sfoglia il codice sorgente

undo promotion price

ifah
Siti Hajar Ibrahim 5 anni fa
parent
commit
b6f936dd63
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4
    4
      app/Http/Controllers/DS/DealerClaimController.php

+ 4
- 4
app/Http/Controllers/DS/DealerClaimController.php Vedi File

@@ -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 = [

Loading…
Annulla
Salva