done emergency po addns and bugs

This commit is contained in:
venbatechnologies@gmail.com 2017-06-15 15:45:26 +05:30
parent 28ac34ab9f
commit 591797d05c
18 changed files with 8613 additions and 115 deletions

View File

@ -135,7 +135,8 @@ define('VAT_ONEXICSEVALUE', '(((basicValue - discou
//CST
define('CST_ONBASICVALUE', '((CSTValue/100) * basicValue)');
define('CST_ONEXICSEVALUE', '((CSTValue/100) * (basicValue+ExciseDuty))');
//define('CST_ONEXICSEVALUE', '((CSTValue/100) * (basicValue+ExciseDuty))');
define('CST_ONEXICSEVALUE', '(((basicValue - discountValue) + (packageValue + ExciseDuty)) * (CSTValue/100))');
//GST
define('GSTTAX', '((GSTValue/100) * basicValue)');
//Other Tax

View File

@ -52,7 +52,7 @@ class emergencypurchaseorder extends BaseController
$this->global['pageTitle'] = 'Siddharth : Create Emergency Purchase Order';
$data['RequestType'] = $this->requistion_model->getConfigValue('C004');
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
$data['DeptList'] = $this->purchaseorder_model->getDepartmentListForAllReq();
$data['DeptList'] = $this->purchaseorder_model->getDepartmentAllList();
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
$data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006');
@ -84,13 +84,25 @@ class emergencypurchaseorder extends BaseController
//This used to Create Service Purchase Order
function addNewServicePurchaseOrder()
{
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
$SupplierID = $this->input->post('drpSupplier');
$DeliveryAddr = $this->input->post('DeliveryAddr');
$dt = $this->input->post('Deliverydt');
$CostCenterName = $this->input->post('CostCenterName');
$Deliverydt = $this->getDateformat($dt);
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
$Deliverydt = '';
$DeliverySchedule = $this->input->post('Scheduleby');
}
else{
$Deliverydt = $this->getDateformat($dt);
$DeliverySchedule = '';
}
$POType = $this->input->post('POType');
$SpcialInstruction = $this->input->post('TextSpcialInstruction');
@ -99,6 +111,7 @@ class emergencypurchaseorder extends BaseController
$POStatus = $this->input->post('TextStatus');
$CreateBy = $this->session->userdata ('userId');
$RequestedBy = $this->session->userdata ('EmpID');
$ReqStatus = REQITEM_Emergency_PO_CREATED;
$RowCount = $this->input->post('TextRowCount');
@ -123,7 +136,7 @@ class emergencypurchaseorder extends BaseController
// PO Master
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt );
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt );
$POMaster = $this->purchaseorder_model->addPOMaster($POList);
$PONO = '';
@ -228,7 +241,15 @@ class emergencypurchaseorder extends BaseController
$SupplierID = $this->input->post('drpSupplier');
$DeliveryAddr = $this->input->post('DeliveryAddr');
$dt = $this->input->post('Deliverydt');
$Deliverydt = $this->getDateformat($dt);
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
$Deliverydt = '';
$DeliverySchedule = $this->input->post('Scheduleby');
}
else{
$Deliverydt = $this->getDateformat($dt);
$DeliverySchedule = '';
}
$CostCenterName = $this->input->post('CostCenterName');
$POType = $this->input->post('POType');
$PoRange = $this->input->post('txtPoRange');
@ -260,7 +281,7 @@ class emergencypurchaseorder extends BaseController
$RegNo = $Req[0]['ReqNo'];
}
// PO Master
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt );
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt );
$POMaster = $this->purchaseorder_model->addPOMaster($POList);

File diff suppressed because it is too large Load Diff

0
application/controllers/inwardgateregister.php Normal file → Executable file
View File

View File

@ -78,6 +78,7 @@ class Login extends CI_Controller
'DEPCode'=>$res->DEPCode,
'HeadDept'=>$res->HeadDept,
'DepartmentName'=>$res->DepartmentName,
'EmpID' => $res->EmpID,
'isLoggedIn' => TRUE
);

View File

@ -48,6 +48,7 @@ class BaseController extends CI_Controller {
$this->DEPCode = $this->session->userdata ( 'DEPCode' );
$this->HeadDept = $this->session->userdata ( 'HeadDept' );
$this->DepartmentName = $this->session->userdata ( 'DepartmentName' );
$this->EmpID = $this->session->userdata ( 'EmpID' );
$this->global ['name'] = $this->name;
$this->global ['role'] = $this->role;
$this->global ['role_text'] = $this->roleText;
@ -155,4 +156,4 @@ class BaseController extends CI_Controller {
"segment" => $segment
);
}
}
}

View File

@ -0,0 +1,88 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-06-14 16:45:01 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 16:45:01 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 16:45:01 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 141
ERROR - 2017-06-14 16:45:01 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 187
ERROR - 2017-06-14 16:45:01 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 215
ERROR - 2017-06-14 16:46:09 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 16:46:09 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 16:46:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 141
ERROR - 2017-06-14 16:46:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 187
ERROR - 2017-06-14 16:46:09 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 215
ERROR - 2017-06-14 16:54:24 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 16:54:24 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 16:54:24 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 16:54:24 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 16:54:24 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 16:59:24 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 16:59:24 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 16:59:24 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 16:59:24 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 16:59:24 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 16:59:26 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 16:59:26 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 16:59:26 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 16:59:26 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 16:59:26 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:03:59 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:03:59 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:03:59 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:03:59 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:03:59 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:22:59 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:22:59 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:22:59 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:22:59 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:22:59 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:24:27 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:24:27 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:24:27 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:24:27 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:24:27 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:43 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:25:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:26:22 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-14 17:26:22 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-14 17:26:22 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-14 17:26:22 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-14 17:26:22 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-14 17:26:59 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/Git_Server/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38

View File

@ -0,0 +1,145 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-06-15 06:39:59 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 06:39:59 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 06:39:59 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 06:39:59 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 06:39:59 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 08:03:27 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 08:03:27 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 08:03:27 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 08:03:27 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 08:03:27 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 09:24:09 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 09:24:09 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 09:24:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 09:24:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 09:24:09 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 09:24:10 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 09:24:10 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 09:24:10 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 09:24:10 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 09:24:10 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 09:38:37 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 09:38:37 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 09:38:37 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 09:38:37 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 09:38:37 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 09:39:31 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/Git_Server/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-06-15 09:40:17 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 09:40:17 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 09:40:17 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 09:40:17 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 09:40:17 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:31:56 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:31:56 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:31:56 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:31:56 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:31:56 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:32:57 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:32:57 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:32:57 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:32:57 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:32:57 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:34:21 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/Git_Server/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-06-15 10:37:47 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:37:47 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:37:47 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:37:47 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:37:47 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:38:48 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:38:48 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:38:48 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:38:48 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:38:48 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:39:18 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:39:18 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:39:18 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:39:18 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:39:18 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:45:31 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:45:31 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:45:31 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:45:31 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:45:31 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:45:32 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:45:32 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:45:32 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:45:32 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:45:32 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 10:45:49 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 10:45:49 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 10:45:49 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 10:45:49 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 10:45:49 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:23:48 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:23:48 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:23:48 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:23:48 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:23:48 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:25:21 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:25:21 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:25:21 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:25:21 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:25:21 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:26:02 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:26:02 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:26:02 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:26:02 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:26:02 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:29:09 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:29:09 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:29:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:29:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:29:09 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:30:40 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:30:40 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:30:40 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:30:40 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:30:40 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:32:05 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:32:05 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:32:05 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:32:05 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:32:05 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:47:07 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:47:07 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:47:07 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:47:07 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:47:07 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:52:57 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:52:57 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:52:57 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:52:57 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:52:57 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:53:16 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:53:16 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:53:16 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:53:16 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:53:16 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:53:58 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:53:58 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:53:58 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:53:58 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:53:58 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:54:49 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:54:49 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:54:49 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:54:49 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:54:49 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:55:15 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:55:15 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:55:15 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:55:15 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:55:15 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 11:56:35 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/Git_Server/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-06-15 11:57:28 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 11:57:28 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 11:57:28 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 11:57:28 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 11:57:28 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214
ERROR - 2017-06-15 12:08:51 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 138
ERROR - 2017-06-15 12:08:51 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 139
ERROR - 2017-06-15 12:08:51 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-06-15 12:08:51 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-06-15 12:08:51 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/Git_Server/siddharth_application/application/views/alterpurchaseorder.php 214

View File

@ -10,7 +10,7 @@ class Login_model extends CI_Model
*/
function loginMe($email, $password)
{
$this->db->select('BaseTbl.userId, BaseTbl.password, Emp.FirstName,Emp.Designation, BaseTbl.roleId, Roles.role,DEPT.DEPCode,DEPT.DepartmentName,DEPT.HeadDept');
$this->db->select('BaseTbl.userId, BaseTbl.password, Emp.EmpID,Emp.FirstName,Emp.Designation, BaseTbl.roleId, Roles.role,DEPT.DEPCode,DEPT.DepartmentName,DEPT.HeadDept');
$this->db->from('tbl_users as BaseTbl');
$this->db->join('tbl_roles as Roles','Roles.roleId = BaseTbl.roleId');
$this->db->join('T_Employee_Details as Emp','BaseTbl.EmpID = Emp.EmpID');
@ -34,4 +34,4 @@ class Login_model extends CI_Model
}
}
?>
?>

View File

@ -621,6 +621,18 @@ class purchaseorder_model extends CI_Model
//print_r($query);
return $query->result();
}
/*
This Method to get all department list
*/
function getDepartmentAllList()
{
$subQuery ='SELECT DISTINCT DEPCode,DepartmentName FROM T_DepartmentDetails';
$query = $this->db->query($subQuery);
//print_r($query);
return $query->result();
}
function getStatusListforAllReq()
{
@ -780,4 +792,4 @@ class purchaseorder_model extends CI_Model
}

View File

@ -1,4 +1,3 @@
<?php $ReqType =''; ?>
<?php $ReqType ='';
$CompanyAddress = '';
@ -840,7 +839,7 @@ function calculatePackaging(isEdit)
if($('#txtAfterExciseDuty').val() == '')
{
alert("5");
alert('Please Enter the Excise value');
$('#txtExciseDuty').focus();
$('#txtVat').val('');
@ -871,6 +870,7 @@ function calculatePackaging(isEdit)
var packageValue = parseFloat($('#txtAfterPackaging').val());
AfterVat = <?php echo VAT_ONEXICSEVALUE; ?>;
var Vatval = parseFloat(AfterVat).toFixed(2);
@ -956,6 +956,7 @@ function calculatePackaging(isEdit)
{
if(isEdit == '0')
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
@ -974,6 +975,8 @@ function calculatePackaging(isEdit)
else
{
var basicValue = parseFloat($('#txtBasicValue').val());
var discountValue = parseFloat($('#txtAfterDiscount').val());
var packageValue = parseFloat($('#txtAfterPackaging').val());
var AfterCST = 0.0;
if(CSTCalculation != 0 && $('#txtCST').val() != '' )
{
@ -989,7 +992,8 @@ function calculatePackaging(isEdit)
{
var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
var CSTValue= parseFloat($('#txtCST').val());
AfterCST = <?php echo CST_ONBASICVALUE; ?>;
AfterCST = <?php echo CST_ONEXICSEVALUE; ?>;
var Vatval = parseFloat(AfterCST).toFixed(2);
$('#txtAfterCST').val(Vatval);
@ -997,10 +1001,13 @@ function calculatePackaging(isEdit)
}
else if(CSTCalculation == 0 && $('#txtCST').val() != '')
{
var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
var CSTValue= parseFloat($('#txtCST').val());
AfterCST = <?php echo CST_ONBASICVALUE; ?>;
AfterCST = <?php echo CST_ONEXICSEVALUE; ?>;
var Vatval = parseFloat(AfterCST).toFixed(2);
$('#txtAfterCST').val(Vatval);
}
@ -1033,6 +1040,8 @@ function calculatePackaging(isEdit)
{
var basicValue = parseFloat($('#txtEditRevenueBasicValue').val());
var discountValue = parseFloat($('#txtEditAfterDiscount').val());
var packageValue = parseFloat($('#txtEditAfterPackaging').val());
var AfterCST = 0.0;
if(CSTCalculation != 0 && $('#txtEditCST').val() != '' )
{
@ -1048,7 +1057,7 @@ function calculatePackaging(isEdit)
{
var ExciseDuty = parseFloat($('#txtEditAfterExciseDuty').val());
var CSTValue= parseFloat($('#txtEditCST').val());
AfterCST = <?php echo CST_ONBASICVALUE; ?>;
AfterCST = <?php echo CST_ONEXICSEVALUE; ?>;
var Vatval = parseFloat(AfterCST).toFixed(2);
$('#txtEditAfterCST').val(Vatval);
@ -1056,8 +1065,9 @@ function calculatePackaging(isEdit)
}
else if(CSTCalculation == 0 && $('#txtEditCST').val() != '')
{
var ExciseDuty = parseFloat($('#txtEditAfterExciseDuty').val());
var CSTValue= parseFloat($('#txtEditCST').val());
AfterCST = <?php echo CST_ONBASICVALUE; ?>;
AfterCST = <?php echo CST_ONEXICSEVALUE; ?>;
var Vatval = parseFloat(AfterCST).toFixed(2);
$('#txtEditAfterCST').val(Vatval);
@ -1262,6 +1272,7 @@ function calculatePackaging(isEdit)
{
var basicValue = parseFloat($('#txtBasicValue').val());
var FreightType =$("#drpFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
@ -1294,6 +1305,9 @@ function calculatePackaging(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
AfterFreight = <?php echo FREIGHT_PERTRIP;?>;
}
else {
AfterFreight = $("#txtFreight").val();
}
var AfterFreightval = parseFloat(AfterFreight).toFixed(2);
@ -1359,7 +1373,10 @@ function calculatePackaging(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
AfterFreight = <?php echo FREIGHT_PERTRIP;?>;
}
}
else {
AfterFreight = $("#txtEditFreight").val();
}
var AfterFreightval = parseFloat(AfterFreight).toFixed(2);
$('#txtEditAfterFreight').val(AfterFreightval);
@ -1442,7 +1459,7 @@ function calculatePackaging(isEdit)
calculateOtherTaxes(isEdit);
calculateFreight(isEdit)
calculateEditVatValue();
calculateEditTotalValue($('#isEdit').val());
calculateEditTotalValue();
}
@ -1526,7 +1543,7 @@ function calculatePackaging(isEdit)
var Freight = $('#txtEditAfterFreight').val() == '' ? '0.00' : $('#txtEditAfterFreight').val();
var Insurance = $('#txtEditInsurance').val() == '' ? '0.00' : $('#txtEditInsurance').val();
var Discount = $('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val();
var BasicVal = $('#txtEditBasicValue').val() == '' ? '0.00' : $('#txtEditBasicValue').val();
var BasicVal = $('#txtEditRevenueBasicValue').val() == '' ? '0.00' : $('#txtEditRevenueBasicValue').val();
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(ExciseDuty)+ parseFloat(Vat) + parseFloat(CST)+ parseFloat(GST) + parseFloat(OtherTax) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
@ -1651,19 +1668,20 @@ function calculatePackaging(isEdit)
{
var td = document.getElementById(rowid);
td.parentNode.removeChild(td);
var materialCode = $('#materialCode'+rowid).val();
var removeItem = $('#materialCode'+rowid).val();
//This function is used to add material list after delete
$.each(JSON.parse(materialData), function (index, value) {
if (value.MaterialCode==materialCode) {
$("#MaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
}
});
SelectedMaterialCode.splice( SelectedMaterialCode.indexOf('removeItem'), 1 );
SelectedMaterialCode.splice( SelectedMaterialCode.indexOf('removeItem'), 1 );
// $.each(SelectedMaterialList.Mat, function(i, el){
//if (this.materialCode == removeItem){//Type = '';
// SelectedMaterialList.Mat.splice(i, 1);
// }
// });
// alert(SelectedMaterialCode);
if(DelRows != '')
{
DelRows = DelRows + ":" + rowid;
@ -1673,7 +1691,7 @@ function calculatePackaging(isEdit)
DelRows= "0" + ":" + rowid;
}
$('#txtDeletedRow').val(DelRows);
$('#txtDeletedRow1').val(DelRows);
populateValueMainFormForDeleteItem(rowid);
}
@ -1794,56 +1812,25 @@ function populateValueMainFormForDeleteItem(rowid)
echo form_input($data);
?>
</div>
</div>
<div class="col-md-3" id="currencyexchange" style='display:none;'>
<div class="col-md-6">
<label>Currency Type</label>
<div class="form-group">
<?php
$data = array('name' => 'txtcurrencytype','value' => set_value('txtcurrencytype'),'id'=>'txtcurrencytype', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-6">
<label>Exchange Rate</label>
<div class="form-group">
<?php
$data = array('name' => 'txtexachangerate','value' => set_value('txtexachangerate'),'id'=>'txtexachangerate', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-12">
<a href="http://www.xe.com/" target="_blank"><u>To check Today's Foreign Exchange value</u></a>
</div>
</div>
<div class="col-md-3">
<div class="col-md-3" style='display:none;' id='txtPoRange'>
<b><u>Select Tax Range</u></b><br/>
<b><u>Select Delivery By</u></b><br/>
<tr>
<td>
<?php echo form_label('Local', 'Local') ."&nbsp;&nbsp;". form_radio(array("name"=>"Range", "id"=>"Local", "value"=>"0", 'checked'=>set_radio('Range', '0', TRUE))); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?php echo form_label('Date', 'Date') ."&nbsp;&nbsp;". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>set_radio('DateRange', '0', TRUE))); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<?php echo form_label('Inter state', 'Inter state') ."&nbsp;&nbsp;". form_radio(array("name"=>"Range", "id"=>"Inter_state", "value"=>"1", 'checked'=>set_radio('Range', '1', FALSE))); ?>
<?php echo form_label('Schedule', 'Schedule') ."&nbsp;&nbsp;". form_radio(array("name"=>"DateRange", "id"=>"Schedule", "value"=>"1", 'checked'=>set_radio('DateRange', '1', FALSE))); ?>
</td>
</tr>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-md-3">
<label>Supplier</label>
<div >
@ -1886,15 +1873,29 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-3">
<div class="col-md-3">
<div class="col-md-12" id="Schedulediv" style="display:none;">
<label >Schedule :</label>
<?php
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
echo Form_textarea($data);
?>
</div>
<div class="col-md-12" id="Deliverydtdiv">
<label>Delivery Date</label>
<div class="form-group">
<?php
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt'),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true');
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt'),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-3">
@ -1916,10 +1917,7 @@ function populateValueMainFormForDeleteItem(rowid)
echo form_dropdown('drpDepartment', $options,set_value('drpDepartment'),'id="DepartmentName"' ,'class = "form-control select2"','required="true"');
?>
</div>
</div>
<div class="col-md-3">
@ -1953,12 +1951,53 @@ function populateValueMainFormForDeleteItem(rowid)
?>
</div>
</div>
<div class="col-md-3" align="right" style="padding-top:2%">
<div class="col-md-3" style='display:none;' id='txtPoRange'>
<b><u>Select Tax Range</u></b><br/>
<tr>
<td>
<?php echo form_label('Local', 'Local') ."&nbsp;&nbsp;". form_radio(array("name"=>"Range", "id"=>"Local", "value"=>"0", 'checked'=>set_radio('Range', '0', TRUE))); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<?php echo form_label('Inter state', 'Inter state') ."&nbsp;&nbsp;". form_radio(array("name"=>"Range", "id"=>"Inter_state", "value"=>"1", 'checked'=>set_radio('Range', '1', FALSE))); ?>
</td>
</tr>
</div>
<div class="col-md-3" id="currencyexchange" style='display:none;'>
<div class="col-md-6">
<label>Currency Type</label>
<?php
$data = array('name' => 'txtcurrencytype','value' => set_value('txtcurrencytype'),'id'=>'txtcurrencytype', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
<div class="col-md-6">
<label>Exchange Rate</label>
<?php
$data = array('name' => 'txtexachangerate','value' => set_value('txtexachangerate'),'id'=>'txtexachangerate', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
<div class="col-md-12">
<a href="http://www.xe.com/" target="_blank"><u>To check Today's Foreign Exchange value</u></a>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-1 col-md-offset-11" align="right" >
<a data-toggle="modal" onclick="showmodel();" class=" btn btn-primary"> Add Line Item </a>
</div>
</div>
</div>
</div>
</div>
<!-- Modal for Packing Calculation -->
<div id="packagingcalmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
@ -2319,7 +2358,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="container-fluid">
<table class="table table-bordered" style="border:1px solid #333">
@ -2433,7 +2472,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label> Total Discount Rate</label>
<label>Discounted Amount </label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterDiscount','value' => set_value('txtAfterDiscount'),'id'=>'txtAfterDiscount', 'class' => 'form-control' ,'readonly' => 'true');
@ -2452,7 +2491,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2" >
<label>Vat Rate </label>
<label>Vat Amount </label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterVat','value' => set_value('txtAfterVat'),'id'=>'txtAfterVat', 'class' => 'form-control' ,'readonly' => 'true','onkeypress'=>'return isNumberKey(event);');
@ -2472,7 +2511,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2" >
<label>CST Rate</label>
<label>CST Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterCST','value' => set_value('txtAfterCST'),'id'=>'txtAfterCST', 'class' => 'form-control' ,'readonly' => 'true');
@ -2517,7 +2556,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Total Packaging Rate</label>
<label>Packaging Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterPackaging','value' => set_value('txtAfterPackaging'),'id'=>'txtAfterPackaging', 'class' => 'form-control' ,'readonly' => 'true');
@ -2535,7 +2574,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>GST Rate</label>
<label>GST Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterGST','value' => set_value('txtAfterGST'),'id'=>'txtAfterGST', 'class' => 'form-control' ,'readonly' => 'true');
@ -2558,7 +2597,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Total Excise Duty Rate</label>
<label> Excise Duty Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterExciseDuty','value' => set_value('txtAfterExciseDuty'),'id'=>'txtAfterExciseDuty', 'class' => 'form-control' ,'readonly' => 'true');
@ -2576,7 +2615,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Other Taxes Rate</label>
<label>Other Taxes Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterOtherTax','value' => set_value('txtAfterOtherTax'),'id'=>'txtAfterOtherTax', 'class' => 'form-control' ,'readonly' => 'true');
@ -2622,7 +2661,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Total Freight Rate </label>
<label>Freight Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterFreight','value' => set_value('txtAfterFreight'),'id'=>'txtAfterFreight', 'class' => 'form-control' ,'readonly' => 'true');
@ -3998,7 +4037,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Total Discount Amount </label>
<label>Discounted Amount </label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterDiscount','value' => set_value('txtEditAfterDiscount'),'id'=>'txtEditAfterDiscount', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4018,7 +4057,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
<div class="col-md-2" >
<label>Vat Rate </label>
<label>Vat Amount </label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterVat','value' => set_value('txtEditAfterVat'),'id'=>'txtEditAfterVat', 'class' => 'form-control' ,'readonly' => 'true','onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;');
@ -4039,7 +4078,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2" >
<label>CST Rate</label>
<label>CST Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterCST','value' => set_value('txtEditAfterCST'),'id'=>'txtEditAfterCST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4086,7 +4125,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Total Packaging Rate </label>
<label>Packaging Amount </label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterPackaging','value' => set_value('txtEditAfterPackaging'),'id'=>'txtEditAfterPackaging', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4104,7 +4143,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>GST Rate</label>
<label>GST Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterGST','value' => set_value('txtEditAfterGST'),'id'=>'txtEditAfterGST', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4127,7 +4166,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Total Excise Duty Rate</label>
<label> Excise Duty Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterExciseDuty','value' => set_value('txtEditAfterExciseDuty'),'id'=>'txtEditAfterExciseDuty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4145,7 +4184,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Other Taxes Rate</label>
<label>Other Taxes Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterOtherTax','value' => set_value('txtEditAfterOtherTax'),'id'=>'txtEditAfterOtherTax', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4191,7 +4230,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Total Freight Rate</label>
<label>Freight Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterFreight','value' => set_value('txtEditAfterFreight'),'id'=>'txtEditAfterFreight', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4355,21 +4394,15 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
<div class="col-md-12">
<div class="col-md-4">
<div class="col-md-3">
<label >Total Freight :</label>
<?php
$data = array('name' => 'txtTotalFreight','value' => set_value('txtTotalFreight'),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
<div class="col-md-4">
<label >Revenue Tax :</label>
<?php
$data = array('name' => 'revenueTax','value' => set_value('revenueTax'),'id'=>'revenueTax', 'class' => 'form-control');
echo form_input($data);
?>
</div>
<div class="col-md-4">
<div class="col-md-3">
<label >Total Order Value :</label>
<?php
$data = array('name' => 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary'),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control' ,'readonly' => 'true');
@ -4377,6 +4410,7 @@ function populateValueMainFormForDeleteItem(rowid)
?>
</div>
</div>
<div class="col-md-12">
<div class="col-md-12">
<label>Comments Of Special Instructions :</label>
<?php
@ -4384,6 +4418,7 @@ function populateValueMainFormForDeleteItem(rowid)
echo form_textarea($data);
?>
</div>
</div>
<div class="col-md-12">
<div class="col-md-3 col-md-offset-9"><br/>
<input type="hidden" name="txtPoRange" id="txtPoRange" />
@ -4486,7 +4521,7 @@ function populateValueMainFormForDeleteItem(rowid)
<br/>
</div>
</div>
</div>
</div> </div>
</div>
<script type="text/html" id="RevenueList">
@ -4825,7 +4860,18 @@ function populateValueMainFormForDeleteItem(rowid)
$('#TotCST').show();
});
});
$(document).ready(function () {
$('#Date').click(function () {
//for Date range selection
$('#Schedulediv').hide();
$('#Deliverydtdiv').show();
});
$('#Schedule').click(function () {
//for schedule range selection
$('#Deliverydtdiv').hide();
$('#Schedulediv').show();
});
});
$('#drpSupplier').change(function() {
@ -5013,7 +5059,7 @@ if(input == -1){
if (input=='SERVICE') {
$('#ServiceMaterialCode').empty();
$("#ServiceMaterialCode").append( $('<option></option>').val("0").html("Select Iten Code") );
$("#ServiceMaterialCode").append( $('<option></option>').val("0").html("Select Item Code") );
$.each(JSON.parse(data), function (index, value) {
$("#ServiceMaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
@ -5023,7 +5069,7 @@ if(input == -1){
}
else if (input=='REVENUE') {
$('#MaterialCode').empty();
$("#MaterialCode").append( $('<option></option>').val("0").html("Select Iten Code") );
$("#MaterialCode").append( $('<option></option>').val("0").html("Select Item Code") );
$.each(JSON.parse(data), function (index, value) {
$("#MaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
@ -5701,11 +5747,20 @@ $('#content').loader('hide');
{
var td = document.getElementById(rowid);
td.parentNode.removeChild(td);
var materialCode = $('#materialCode'+rowid).val();
var removeItem = $('#materialCode'+rowid).val();
$.each(JSON.parse(materialData), function (index, value) {
if (value.MaterialCode==materialCode) {
$("#ServiceMaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
}
});
SelectedMaterialCode.splice( SelectedMaterialCode.indexOf('removeItem'), 1 );
if(DelRows != '')
@ -5748,9 +5803,10 @@ $('#content').loader('hide');
var TextTotalOrderValueSummaryService = $('#txtTotalOrderValueSummaryService').val();
var TextSpcialInstruction = $('#txtSpcialInstruction').val();
var TextStatus = stat;
if(validate())
{
if(document.getElementById('serviceTax').rows.length < 3)
{
alert('Please Select Line item to Create PO');
@ -6354,6 +6410,20 @@ $('.EditRevenue').click(function(){
$('#txtTotalOrderValueSummary').val(parseFloat(totOrderSummaryAmt).toFixed(2) );
}
// this function is used to clear data changing schedule option
$('#Scheduleby').change(function(){
$("#Deliverydt").datepicker({
minDate : 'now',
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
});
});
$('#Deliverydt').change(function(){
$('#Scheduleby').val('');
});
</script>

File diff suppressed because it is too large Load Diff

View File

@ -79,8 +79,6 @@
<!-- fullCalendar 2.2.5-->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.print.css" media="print">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet">
<style>
.error{

View File

@ -0,0 +1,461 @@
<html>
<head>
<meta charset="UTF-8">
<title><?php echo $pageTitle; ?></title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.4 -->
<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
<link href="<?php echo base_url(); ?>assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons 2.0.0 -->
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="<?php echo base_url(); ?>assets/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="<?php echo base_url(); ?>assets/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<!-- daterange picker -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/daterangepicker/daterangepicker.css">
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-1.12.4.js"></script>
<!-- jquery-1.12.4.min -->
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.jeditable.js"></script>
<!-- DataTables -->
<script src="<?php echo base_url();?>assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- cdn fot data Table plugins-->
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/underscore.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-ui-1.10.4.min.js"></script>
<script src="<?php echo base_url();?>assets/dist/jquery.loader.js"></script>
<link href="<?php echo base_url();?>assets/dist/jquery.loader.css" rel="stylesheet" type="text/css" />
<!-- For Table Sorting -->
<script type="text/javascript" src="<?php echo base_url();?>assets/js/tsort.min.js"></script>
<!-- For Searchable dropdown -->
<script src="<?php echo base_url();?>assets/plugins/select2/select2.full.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/daterangepicker/moment.js"></script>
<script src="<?php echo base_url();?>assets/plugins/daterangepicker/moment.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/daterangepicker/daterangepicker.js"></script>
<link href="<?php echo base_url();?>assets/css/default.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/animate.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/style.min.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>assets/css/component.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" type="text/css">
<!-- Bootstrap 3.3.4 -->
<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
<link href="<?php echo base_url(); ?>assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons 2.0.0 -->
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="<?php echo base_url(); ?>assets/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<!-- Searchable dropdown -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/select2/select2.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/daterangepicker/daterangepicker.css">
<!-- fullCalendar 2.2.5 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<script src="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.js"></script>
<!-- fullCalendar 2.2.5-->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.print.css" media="print">
<!-- fullCalendar 2.2.5-->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.print.css" media="print">
<style>
.error{
color:red;
font-weight: normal;
}
#menu{color: #fff;line-height: 20px;position: relative;display: block; padding: 15px 15px;background-color: transparent;cursor: pointer;
}
@media (max-width: 500px)
{
.navbar-custom-menu>.navbar-nav>li>.dropdown-menu {
position: absolute;
right: 5%;
left: auto;
border: 1px solid #ddd;
background: #3c8dbc;
}
}
.box-header{padding:20px ! important}
select{
width: 100%;
padding: 2%;}
</style>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" crossorigin="anonymous">
<title>Siddharth Industries</title>
<!-- Data Tables-->
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.bootstrap.css"/>
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.responsive.css"/>
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.tableTools.min.css"/>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<link href="//cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
<script type="text/javascript"> var baseURL = "<?php echo base_url(); ?>";</script>
</head>
<body class="skin-blue sidebar-collapse">
<header class="main-header">
<!-- Logo -->
<a class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>SI</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Siddharth Industries</b></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation" >
<!-- Sidebar toggle button-->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<i class="fa fa-bars fa-2x" aria-hidden="true"></i>
</button>
</div>
<div class="navbar-custom-menu collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<li class="treeview">
<a href="<?php echo base_url(); ?>dashboard">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
</a>
</li>
<?php
if($role == ROLE_ADMIN || $DEPCode == SALES || $DEPCode == FINANCE )
{
?>
<li class="treeview">
<span id="menu" data-toggle="dropdown"><i class="fa fa-database" aria-hidden="true"></i> Master Details<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<?php //echo $DEPCode;
if($role == ROLE_ADMIN || $DEPCode == SALES || $DEPCode == FINANCE )
{
?>
<?php
if($DEPCode != FINANCE )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>supplierListing" >
<i class="fa fa-user-secret"></i>
<span class="nav-label">Supplier Details</span>
</a>
</li>
<?php
}
?>
<?php
if($DEPCode == FINANCE )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>costListing" >
<i class="fa fa-cart-plus"></i>
<span class="nav-label">Cost Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>assetListing" >
<i class="fa fa-cogs"></i>
<span class="nav-label">Asset Details</span>
</a>
</li>
<?php
}
?>
<?php
if($role == ROLE_ADMIN)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>employeeListing" >
<i class="fa fa-user-circle"></i>
<span class="nav-label">Employee Details</span>
</a>
</li>
<?php
}
?>
<?php
if($role == ROLE_ADMIN )
{
?>
<li class="treeview">
<a href="<?php echo base_url();?>rawmaterialListing" >
<i class="fa fa-files-o"></i>
<span>Material Master</span>
</a>
</li>
<?php
}
?>
<?php
}
if($role == ROLE_ADMIN )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>userListing">
<i class="fa fa-users"></i>
<span>Users</span>
</a>
</li>
<?php
}
?>
</ul>
</li>
<?php
}
?>
<?php
if( $role == ROLE_MANAGER|| $role == ROLE_EMPLOYEE || $role == ROLE_ADMIN)
{
?>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Requisition<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<?php if($role == ROLE_MANAGER || $role == ROLE_EMPLOYEE || $role == ROLE_ADMIN )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>Requisition">
<i class="fa fa-arrow-circle-up"></i>
<span>Raise Requisition </span>
</a>
</li>
<?Php
}
?>
<?php if($role == ROLE_MANAGER )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>ApproveRequisition">
<i class="fa fa-thumbs-o-up"></i>
<span>Approve Requisition </span>
</a>
</li>
<?Php
} ?>
<?Php
if($DEPCode != FINANCE || $DEPCode == PURCHASE)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>CreatePO">
<i class="fa fa-empire"></i>
<span>Purchase Order From Requisition</span>
</a>
</li>
<?Php } ?>
</ul>
</li>
<?php
}
?>
<?php
//if(($DEPCode == FINANCE && $role == ROLE_MANAGER)|| ($(DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)))
if($DEPCode == FINANCE || $DEPCode == PURCHASE )
{
?>
<li class="treeview">
<span id="menu" data-toggle="dropdown"><i class="fa fa-first-order"></i> Purchase order<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<?php
//if($DEPCode != FINANCE || $DEPCode == PURCHASE)
if( $DEPCode == PURCHASE)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>EmergencyPO">
<i class="fa fa-ambulance"></i>
<span>Emergency Purchase Order </span>
</a>
</li>
<?php
}
?>
<?php
//if($DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)
if($DEPCode == PURCHASE )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorderListing">
<i class="fa fa-list"></i>
<span>Purchase Order List </span>
</a>
</li>
<?php
}
?>
<!-- For Finance Team for PO approval list-->
<?php
//if($DEPCode == FINANCE && $role == ROLE_MANAGER)
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorder/poapproval">
<i class="fa fa-users"></i>
<span>Approve Purchase Order</span>
</a>
</li>
<?php
}
?>
<!-- this page is for gate keeper for view the full po list-->
<?php
//if($DEPCode != FINANCE && $DEPCode == PURCHASE)
if( $DEPCode == PURCHASE)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorder/viewfullpurchaseorder">
<i class="fa fa-history"></i>
<span>View Purchase Order</span>
</a>
</li>
<?php
}
?>
</ul>
</li>
<?php
}
?>
<?php
if($DEPCode == FINANCE)
{
?>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> PaySlip <span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
<li class="treeview">
<a href="<?php echo base_url(); ?>ExcelUpload">
<i class="fa fa-upload"></i>
<span>Upload Salary</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>ExcelUpload2">
<i class="fa fa-keyboard-o"></i>
<span>Monthly Salary Inputs</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>ViewPay">
<i class="fa fa-money"></i>
<span>PaySlip Generator</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>payslip/updatepayroll" >
<i class="fa fa-credit-card-alt"></i> <span>Payslip</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>emppayListings" >
<i class="fa fa-credit-card"></i> <span>Employee Salary Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>monthlyListings" >
<i class="fa fa-table"></i> <span>Employee Monthly Payment</span>
</a>
</li>
</ul>
</li>
<?php
}
?>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-check-square-o"></i> Inspection<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<li class="treeview">
<a href="<?php echo base_url(); ?>inwardgateregister/inwardgateregister">
<i class="fa fa-upload"></i>
<span>Inward Gate Register</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>inwardgateregister/materialinspectionreport">
<i class="fa fa-upload"></i>
<span>Material Inspection Report</span>
</a>
</li>
</ul>
</li>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo base_url(); ?>assets/dist/img/avatar.png" class="user-image" alt="User Image"/>
<span class="hidden-xs"><?php echo $name; ?></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="<?php echo base_url(); ?>assets/dist/img/avatar.png" class="img-circle" alt="User Image" />
<p>
<?php echo $name; ?>-<?php echo $role; ?>
<small><?php echo $role_text; ?></small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo base_url(); ?>loadChangePass" class="btn btn-default btn-flat">Change Password</a>
</div>
<div class="pull-right">
<a href="<?php echo base_url(); ?>logout" class="btn btn-default btn-flat">Sign out</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>

0
application/views/inwardgateregister.php Normal file → Executable file
View File

0
application/views/materialinspectionreport.php Normal file → Executable file
View File

View File

@ -47,7 +47,7 @@ function validate()
$('#DeliveryAddr').focus();
return false;
}
else if($('#Deliverydt').val() == '')
else if($('#Deliverydt').val() == '' && $('#Scheduleby').val() == '')
{
alert('Please Enter the Delivery Date');
$('#Deliverydt').focus();

184
assets/js/CreatePOValidation.js~ Executable file
View File

@ -0,0 +1,184 @@
/**
/**
* File : CreatePOValidation.js
*
* This file contain the validation of edit Create Po
*
* @author Gandhimathi
*/
$(document).ready(function(){
//Initialize Select2 Elements
$("#drpSupplier").select2();
});
function myFunction() {
if(validate())
{
var input = $('#POType').val();
$('#' + input).modal('show');
}
}
function validate()
{
if($('#PODate').val() == '')
{
alert('Please Enter the Purchase Order date');
$('#PODate').focus();
return false;
}
else if($('#drpSupplier').val() == "0")
{
alert('Please Select the Supplier details');
$('#drpSupplier').focus();
return false;
}
else if($('#DeliveryAddr').val() == '')
{
alert('Please Enter the Delivery Address');
$('#DeliveryAddr').focus();
return false;
}
else if($('#Deliverydt').val() == '' && $('#Scheduleby').val() == '')
{
alert('Please Enter the Delivery Date');
$('#Deliverydt').focus();
return false;
}
else
{
return true;
}
}
function validateRevenueTax()
{
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Quantity').val() == '')
{
alert('Please Enter the Quantity value');
$('#Quantity').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate of the Item');
$('#Rate').focus();
return false;
}
else
{
return true;
}
}
function calculateTotalValue()
{
var Packaging = $('#txtAfterPackaging').val() == '' ? '0.00' : $('#txtAfterPackaging').val();
var ExciseDuty = $('#txtAfterExciseDuty').val() == '' ? '0.00' : $('#txtAfterExciseDuty').val();
var Vat = $('#txtAfterVat').val() == '' ? '0.00' : $('#txtAfterVat').val();
var CST = $('#txtAfterCST').val() == '' ? '0.00' : $('#txtAfterCST').val();
var GST = $('#txtAfterGST').val() == '' ? '0.00' : $('#txtAfterGST').val();
var OtherTax = $('#txtAfterOtherTax').val() == '' ? '0.00' : $('#txtAfterOtherTax').val();
var Freight = $('#txtAfterFreight').val() == '' ? '0.00' : $('#txtAfterFreight').val();
var Insurance = $('#txtInsurance').val() == '' ? '0.00' : $('#txtInsurance').val();
var Discount = $('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val();
var BasicVal = $('#txtBasicValue').val() == '' ? '0.00' : $('#txtBasicValue').val();
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(ExciseDuty)+ parseFloat(Vat) + parseFloat(CST)+ parseFloat(GST) + parseFloat(OtherTax) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
var tot = parseFloat(totvalue).toFixed(2);
$('#txtTotalOrderValue').val(tot);
validateExceedLimit();
}
function calculateTaxValue()
{
var Packaging = $('#txtAfterPackaging').val() == '' ? '0.00' : $('#txtAfterPackaging').val();
var ExciseDuty = $('#txtAfterExciseDuty').val() == '' ? '0.00' : $('#txtAfterExciseDuty').val();
var Vat = $('#txtAfterVat').val() == '' ? '0.00' : $('#txtAfterVat').val();
var CST = $('#txtAfterCST').val() == '' ? '0.00' : $('#txtAfterCST').val();
var GST = $('#txtAfterGST').val() == '' ? '0.00' : $('#txtAfterGST').val();
var OtherTax = $('#txtAfterOtherTax').val() == '' ? '0.00' : $('#txtAfterOtherTax').val();
var Freight = $('#txtAfterFreight').val() == '' ? '0.00' : $('#txtAfterFreight').val();
var Insurance = $('#txtInsurance').val() == '' ? '0.00' : $('#txtInsurance').val();
var Discount = $('#txtAfterDiscount').val() == '' ? '0.00' : $('#txtAfterDiscount').val();
var totvalue = ( parseFloat(Packaging)+ parseFloat(ExciseDuty)+ parseFloat(Vat) + parseFloat(CST)+ parseFloat(GST) + parseFloat(OtherTax) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount) ;
var tot = parseFloat(totvalue).toFixed(2);
//alert('tot:'+tot);
return tot;
}
function validateExceedLimit()
{
var avalbudAmt = parseFloat($('#AvlBudAmt').val());
var basicAmountRate = parseFloat($('#txtBasicValue').val());
var totalAmount = parseFloat($('#txtTotalOrderValue').val());
if(basicAmountRate > avalbudAmt || totalAmount > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#Rate').focus();
return false;
}
else
{
return true;
}
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;
return true;
}
function change(){
ExceedQuantityCheck();
if($('#Quantity').val() != '' && $('#Rate').val() != '')
{
var txtQuantity = parseFloat( $('#Quantity').val());
var txtUnitPrice = parseFloat($('#Rate').val());
var Tot = txtQuantity * txtUnitPrice
$('#txtBasicValue').val(Tot);
calculateTotalValue();
}
}