diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 705348c8..4a422bd5 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -49,6 +49,7 @@ $routes->post('supplierExist','Supplier::checksupplier'); $routes->post('supplierGSTExist','Supplier::checkGST'); $routes->post('supplierPANExist','Supplier::checkPAN'); $routes->get('exportsupplier','Supplier::exportsupplier'); // export supplier details +$routes->post('deletesupplier','Supplier::deletesupplier'); diff --git a/app/Controllers/Supplier.php b/app/Controllers/Supplier.php index d3d1e41f..e37f717a 100644 --- a/app/Controllers/Supplier.php +++ b/app/Controllers/Supplier.php @@ -376,7 +376,18 @@ class Supplier extends BaseController return $this->response->setJSON($query); } + function deletesupplier() + { + $Sid = $this->request->getPost('id'); + + $updatedDate = get_current_date_time(); + $SupplierInfo = array('IsActive' => 0, 'updatedBy' => $this->session->get('userId'), 'Updatedon' => $updatedDate); + + $result = $this->supplier_model->deleteSupplier($Sid, $SupplierInfo); + + echo 'Succssfully change the Supplier status to InAcive'; + } function exportsupplier() { diff --git a/app/Models/Supplier_model.php b/app/Models/Supplier_model.php index cb8e8a6a..41fcf03d 100644 --- a/app/Models/Supplier_model.php +++ b/app/Models/Supplier_model.php @@ -18,7 +18,7 @@ class Supplier_model extends Model { $builder = $this->db->table('t_supplierdetailsn as BaseT') - ->select('BaseT.SupplierID, BaseT.SupplierName, BaseT.Address, BaseT.ContactNumber, BaseT.AlternateContactNumber,BaseT.EmailAddress,BaseT.Exiseregistration, BaseT.TIN, BaseT.PAN,,BaseT.GSTNO,BaseT.GSTRange,BaseT.CollectrateAddress,BaseT.UANumber,BaseT.CreatedOn,BaseT.PaymentID,pmt.PaymentTerms,BaseT.CSTDate') //,BaseT.PaymentTerms,BaseT.PaymentDays,BaseT.PayableAT,pmt.Details'); + ->select('BaseT.SupplierID, BaseT.SupplierName, BaseT.Address, BaseT.ContactNumber, BaseT.AlternateContactNumber,BaseT.EmailAddress,BaseT.Exiseregistration, BaseT.TIN, BaseT.PAN,,BaseT.GSTNO,BaseT.GSTRange,BaseT.CollectrateAddress,BaseT.UANumber,BaseT.CreatedOn,BaseT.PaymentID,pmt.PaymentTerms,BaseT.CSTDate,BaseT.IsActive') //,BaseT.PaymentTerms,BaseT.PaymentDays,BaseT.PayableAT,pmt.Details'); ->join('t_paymentterms as pmt', 'pmt.PaymentID = BaseT.PaymentID', 'left'); $query = $builder->get(); diff --git a/app/Views/POlist.php b/app/Views/POlist.php index 2a341784..0cb2ba8f 100644 --- a/app/Views/POlist.php +++ b/app/Views/POlist.php @@ -3,6 +3,42 @@ margin: 0px !important; } + + + +
@@ -44,10 +80,10 @@ - + + - @@ -64,13 +100,14 @@ $index = $index + 1; ?> - - - - + + + @@ -142,20 +179,66 @@ - - + + + + + + + + + + + + \ No newline at end of file diff --git a/app/Views/editSupplier.php b/app/Views/editSupplier.php index 43bf3ca9..cf6f5ed2 100644 --- a/app/Views/editSupplier.php +++ b/app/Views/editSupplier.php @@ -266,9 +266,11 @@ if (!empty($supplier)) {
-
- name="isactive"> IsActive -
+ +
+ name="isactive"> IsActive +
+ Supplier Information
@@ -411,7 +413,9 @@ if (!empty($supplier)) {
+ + Cancel
diff --git a/app/Views/supplierListing.php b/app/Views/supplierListing.php index 84c0458c..3c5672bb 100644 --- a/app/Views/supplierListing.php +++ b/app/Views/supplierListing.php @@ -54,6 +54,7 @@ + @@ -71,7 +72,11 @@ - + + deletesupplier", + success:function(data) { + if(data) + { + $('#content').loader('hide'); + alert(data); + location.reload(); + } + } + }); + } + } diff --git a/app/Views/viewinwardgateregister.php b/app/Views/viewinwardgateregister.php index e237022d..25c8c7c8 100644 --- a/app/Views/viewinwardgateregister.php +++ b/app/Views/viewinwardgateregister.php @@ -41,6 +41,13 @@ } .dataTables_wrapper .clear { clear: both; + } + th, td { + white-space: nowrap; + } + .dataTables_wrapper { + width: 100%; + overflow-x: auto; }
#PO Date PONO# PO TypePO Date Supplier Name Total Order Value PO Status
PONO ?>ReqType ?>PODate); + PODate ?> + PODate); $PODate = $Pdt->format('d-m-Y'); echo $PODate ?>PONO ?>ReqType ?>SupplierName ?> TotalOrderValue ?> PAN GST Number Payment Terms
EmailAddress ?> PAN ?> GSTNO ?>PaymentTerms ?>PaymentTerms ?>IsActive == 0){ echo "Deactived"; }else{ ?> +     + +