diff --git a/app/Controllers/Products.php b/app/Controllers/Products.php index c93149b..5053650 100644 --- a/app/Controllers/Products.php +++ b/app/Controllers/Products.php @@ -313,10 +313,14 @@ public function save_model() { ]; - $BikemodelsModel->insert($modelData); + $model_id = $BikemodelsModel->insert($modelData); + + $modelData = $BikemodelsModel->where('make_id',$make_id)->findAll(); $response['success'] = true; + $response['model_id'] = $model_id; + $response['model_value'] = $model; } else { $response['success'] = false; diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php index 53bfb3e..61545e2 100644 --- a/app/Views/layout/header.php +++ b/app/Views/layout/header.php @@ -121,6 +121,8 @@ + + get('logged_user_role') == 'Floor Manager' || session()->get('logged_user_role') == 'Job Card Manager' || @@ -144,7 +146,7 @@ Vendor
  • - Purchase + Purchase Order
  • @@ -156,18 +158,7 @@ - - - - - -
  • - - - Make & Models - -
  • - +
  • @@ -175,6 +166,9 @@
  • + + + Reorder Level Products @@ -207,7 +201,19 @@
  • Business
  • - + + + + + + +
  • + + + Make & Models + +
  • + diff --git a/app/Views/product_form.php b/app/Views/product_form.php index 2d56f70..ceb66cb 100644 --- a/app/Views/product_form.php +++ b/app/Views/product_form.php @@ -26,53 +26,56 @@
    - + + ' ?> + + + +
    +
    - - -
    + + '; ?> + +
    - - -
    -
    - - -
    + + + +
    + + +
    @@ -139,9 +142,9 @@ $tax = $sgst + $cgst; // Total tax (sum of SGST and CGST) ?> - - + +
    @@ -230,9 +233,9 @@