diff --git a/app/Controllers/Business.php b/app/Controllers/Business.php index 98fe182..5023888 100644 --- a/app/Controllers/Business.php +++ b/app/Controllers/Business.php @@ -16,6 +16,8 @@ class Business extends BaseController $business=$BusinessModel->findAll(); $data['business']=$business; + // echo "
";
+ // print_r($data);die;
return view('business_list',$data);
}
diff --git a/app/Controllers/Vehicle.php b/app/Controllers/Vehicle.php
index db65a0a..89ad6d3 100644
--- a/app/Controllers/Vehicle.php
+++ b/app/Controllers/Vehicle.php
@@ -163,7 +163,12 @@ class Vehicle extends BaseController
$register_find = $VehicleModel->where('reg_no',$reg_no)->first();
- return json_encode($register_find);
+ if ($register_find) {
+ return json_encode($register_find);
+ }else{
+ return json_encode(false);
+ }
+
}
}
\ No newline at end of file
diff --git a/app/Views/branch_edit_form.php b/app/Views/branch_edit_form.php
index f36467b..12337ca 100644
--- a/app/Views/branch_edit_form.php
+++ b/app/Views/branch_edit_form.php
@@ -14,7 +14,7 @@
-
+
+
+
+
+
diff --git a/app/Views/branch_list.php b/app/Views/branch_list.php
index 6262112..343884f 100644
--- a/app/Views/branch_list.php
+++ b/app/Views/branch_list.php
@@ -1,4 +1,6 @@
+
+
@@ -6,7 +8,7 @@
Branch List -
@@ -98,7 +100,7 @@
-
+
@@ -110,13 +112,13 @@
-
+
-
+
@@ -192,7 +194,7 @@
};
var form = $(params).parent().parent();
-
+ // console.log(form);
var isValid = true;
form[0].querySelectorAll('[required]').forEach(function(element) {
if (!element.value.trim()) {
@@ -249,6 +251,11 @@
}
});
}
+
+ $('#add_branch_model_open').click( function(){
+ $('#model_form_data')[0].reset();
+ })
+
diff --git a/app/Views/business_list.php b/app/Views/business_list.php
index 6f7fa42..c58e219 100644
--- a/app/Views/business_list.php
+++ b/app/Views/business_list.php
@@ -25,13 +25,13 @@
#
Business Name
- Email
- Mobile
+
+
- City
- State
- Postal Code
- Country
+
+
+
+
Branch List
Action
@@ -44,13 +44,13 @@
= $value['business_id']; ?>
= $value['business_name']; ?>
- = $value['email']; ?>
- = $value['mobile']; ?>
-
- = $value['city']; ?>
- = $value['state']; ?>
- = $value['postal_code']; ?>
- = $value['country']; ?>
+ = $value['email']; ?>
+ = $value['mobile']; ?>
+ = $value['address']; ?>
+ = $value['city']; ?>
+ = $value['state']; ?>
+ = $value['postal_code']; ?>
+ = $value['country']; ?>
" style="margin-left: 20px;">View
diff --git a/app/Views/client_form.php b/app/Views/client_form.php
index 5d74b00..34c9e59 100644
--- a/app/Views/client_form.php
+++ b/app/Views/client_form.php
@@ -24,7 +24,7 @@
-
+
diff --git a/app/Views/job_card_form.php b/app/Views/job_card_form.php
index 3c3b496..bd1c4f1 100644
--- a/app/Views/job_card_form.php
+++ b/app/Views/job_card_form.php
@@ -60,7 +60,7 @@
-
+
Billing Address Details :
@@ -182,7 +182,7 @@
Complaint
- Custom Complaint
+ Customer Complaint
Outsource
@@ -299,7 +299,7 @@
-
+
@@ -313,7 +313,7 @@
- Terms & Condition :
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
diff --git a/app/Views/sales_order_form.php b/app/Views/sales_order_form.php
index 6d113d4..28f794b 100644
--- a/app/Views/sales_order_form.php
+++ b/app/Views/sales_order_form.php
@@ -59,8 +59,8 @@
+ value="= isset($sales['mobile_no']) ? $sales['mobile_no'] : '' ?>" maxlength="16"
+ minlength="6" onkeypress="return onlyNumbers(event)" readonly>
-
+ >
Service
-
Mobile
-
+
diff --git a/app/Views/vendor_form.php b/app/Views/vendor_form.php
index 3e02b6e..649de73 100644
--- a/app/Views/vendor_form.php
+++ b/app/Views/vendor_form.php
@@ -82,7 +82,7 @@
Mobile*
-
+
Designation*
@@ -96,7 +96,7 @@
Mobile
-
+
Designation
@@ -110,7 +110,7 @@
Mobile
-
+
Designation