emergency po new

This commit is contained in:
venbatechnologies@gmail.com 2017-11-21 13:38:06 +05:30
parent 58ce7e23bb
commit 7f5ba30d30
22 changed files with 511 additions and 42 deletions

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

28
application/controllers/emergencypurchaseorder.php Normal file → Executable file
View File

@ -136,7 +136,10 @@ class emergencypurchaseorder extends BaseController
function addNewServicePurchaseOrder()
{
echo "t54";
//die();
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
$SupplierID = $this->input->post('drpSupplier');
@ -299,8 +302,19 @@ class emergencypurchaseorder extends BaseController
}
if($POStatus==SPECIAL_PO){
$file =$this->addfile();
$myfile = array('FilePath'=>$file,'MaterialCode'=>$MaterialCode,'PONO'=>$PONO);
$result= $this->purchaseorder_model->fileupload($myfile);
}
}
if($POStatus == REQ_DRAFT)
{
echo 'Emergency Service Purchase Order Saved Successfully!The PO NO Is: '.$PONO;
@ -515,6 +529,9 @@ $RequestedBy = $this->input->post('drpDepartment');
if($txtspl==1 || $txtspl==2)
{
//secho "cwwe";
//die();
$PONOigr = $PONO;
//echo $PONOigr;
@ -552,7 +569,6 @@ $RequestedBy = $this->input->post('drpDepartment');
$IGRNO = '';
if(count($igrM)>0)
{
@ -561,7 +577,7 @@ $RequestedBy = $this->input->post('drpDepartment');
$IGRNO=$key->IGRNO;
}
}
//echo $IGRNO;
// echo $IGRNO;
$IGRItemStatus = REQITEM_NEW;
@ -644,16 +660,14 @@ $RequestedBy = $this->input->post('drpDepartment');
}
for ($i = 1; $i <= $splRow; $i++)
{
$file =$this->addfile();
$emergencyitemcode = $this->input->post('materialCode'.$i);
$myfile = array('FilePath'=>$file,'MaterialCode'=>$emergencyitemcode,'PONO'=>$PONO,'IGRNO'=>$IGRNO);
$result= $this->purchaseorder_model->fileupload($myfile);
}
}

0
application/logs/log-2017-11-16.php Normal file → Executable file
View File

View File

@ -0,0 +1,205 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-11-21 07:28:05 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/classes/grad.php 3
ERROR - 2017-11-21 07:28:05 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/classes/mpdfform.php 3
ERROR - 2017-11-21 07:28:05 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/classes/cssmgr.php 3
ERROR - 2017-11-21 07:28:05 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/classes/otl.php 12
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
ERROR - 2017-11-21 07:28:05 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/classes/ttfontsuni.php 51
ERROR - 2017-11-21 07:43:29 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 07:43:29 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 07:43:29 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 07:43:29 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 07:43:29 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 07:44:35 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 07:45:12 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 07:46:05 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 07:46:05 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 07:46:05 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 07:46:05 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 07:46:05 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 07:50:07 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 07:50:07 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 07:50:07 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 07:50:07 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 07:50:07 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 07:51:09 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_driver.php 77
ERROR - 2017-11-21 07:51:09 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_driver.php 77
ERROR - 2017-11-21 07:51:09 --> Unable to connect to the database
ERROR - 2017-11-21 07:51:27 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_driver.php 77
ERROR - 2017-11-21 07:51:27 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_driver.php 77
ERROR - 2017-11-21 07:51:27 --> Unable to connect to the database
ERROR - 2017-11-21 07:52:32 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 07:52:32 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 07:52:32 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 07:52:32 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 07:52:32 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 07:54:20 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 07:55:53 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 07:55:53 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 07:55:53 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 07:55:53 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 07:55:53 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 07:57:57 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 08:00:06 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:00:06 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:00:06 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:00:06 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:00:06 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:02:22 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:02:22 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:02:22 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:02:22 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:02:22 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:02:35 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:02:35 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:02:35 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:02:35 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:02:35 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:04:19 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:04:19 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:04:19 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:04:19 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:04:19 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:07:52 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:07:52 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:07:52 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:07:52 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:07:52 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:09:05 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 08:09:49 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:09:49 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:09:49 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:09:49 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:09:49 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:15:41 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:15:41 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:15:41 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:15:41 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:15:41 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:17:12 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 08:23:16 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:23:16 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:23:16 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:23:16 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:23:16 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:26:03 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:26:03 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:26:03 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:26:03 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:26:03 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:32:26 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:32:26 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:32:26 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:32:26 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:32:26 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:33:43 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 08:35:41 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:35:41 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:35:41 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:35:41 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:35:41 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:37:17 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 08:41:37 --> Severity: Notice --> Undefined property: stdClass::$AvlBudAmt /opt/lampp/htdocs/siddharth_application/application/views/editimportpo.php 2715
ERROR - 2017-11-21 08:41:44 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 08:42:06 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 08:42:13 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 08:42:28 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 08:43:47 --> Query error: Unknown column 'mm.MaterialName' in 'field list'
ERROR - 2017-11-21 08:44:24 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 08:44:24 --> Severity: Notice --> Undefined property: stdClass::$MaterialCode /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:44:24 --> Severity: Notice --> Undefined property: stdClass::$MaterialName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:44:24 --> Severity: Notice --> Undefined property: stdClass::$MaterialCode /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:44:24 --> Severity: Notice --> Undefined property: stdClass::$MaterialName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:45:57 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 08:45:57 --> Severity: Notice --> Undefined property: stdClass::$MaterialCode /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:45:57 --> Severity: Notice --> Undefined property: stdClass::$MaterialName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:45:57 --> Severity: Notice --> Undefined property: stdClass::$MaterialCode /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:45:57 --> Severity: Notice --> Undefined property: stdClass::$MaterialName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4095
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4095
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4096
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4096
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4096
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4096
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4098
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4098
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4100
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4100
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4101
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4101
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4102
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4102
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4103
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4103
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Undefined variable: gd /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4104
ERROR - 2017-11-21 08:47:42 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4104
ERROR - 2017-11-21 08:50:56 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 08:50:56 --> Severity: Notice --> Undefined property: stdClass::$MaterialCode /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:50:56 --> Severity: Notice --> Undefined property: stdClass::$MaterialName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:50:56 --> Severity: Notice --> Undefined property: stdClass::$MaterialCode /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:50:56 --> Severity: Notice --> Undefined property: stdClass::$MaterialName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 4097
ERROR - 2017-11-21 08:56:12 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:56:12 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:56:12 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:56:12 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:56:12 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 08:57:22 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 08:58:10 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 08:58:10 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 08:58:10 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 08:58:10 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 08:58:10 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 09:00:44 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 09:00:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 09:00:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 09:00:44 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 09:00:44 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 09:01:37 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-11-21 09:01:50 --> Severity: Notice --> Undefined property: stdClass::$FirstName /opt/lampp/htdocs/siddharth_application/application/views/editRevenuepurchaseorder.php 128
ERROR - 2017-11-21 09:02:01 --> Severity: Notice --> Undefined variable: RequistionDetails /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 233
ERROR - 2017-11-21 09:02:01 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 234
ERROR - 2017-11-21 09:02:01 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 235
ERROR - 2017-11-21 09:02:01 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 281
ERROR - 2017-11-21 09:02:01 --> Severity: Notice --> Undefined variable: CostList /opt/lampp/htdocs/siddharth_application/application/views/alterpurchaseorder.php 309
ERROR - 2017-11-21 09:03:09 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38

0
application/models/cashbook_model.php Normal file → Executable file
View File

View File

@ -35,11 +35,11 @@ class purchaseorder_model extends CI_Model
function getfunction($pono)
{
$this->db->distinct();
$this->db->select('bill.PONO,mstr.IGRNO,bill.BillNo,bill.MaterialCode,bill.FilePath,mstr.DeliveryChellanOrInvoiceNo,mstr.DeliveryChellanDate,mstr.VehicleNo,mstr.CourierNo,dtl.QuantityAsPerInvoice,pom.POType,mm.MaterialName');
$this->db->select('bill.PONO,mstr.IGRNO,bill.BillNo,,bill.FilePath,mstr.DeliveryChellanOrInvoiceNo,mstr.DeliveryChellanDate,mstr.VehicleNo,mstr.CourierNo,dtl.QuantityAsPerInvoice,pom.POType');
$this->db->from('T_PurchaseOrder_BillUpload bill');
$this->db->join('T_IGR_Master mstr','bill.IGRNO = mstr.IGRNO');
$this->db->join('T_IGR_Master mstr','bill.PONO = mstr.PONO');
$this->db->join('T_IGR_Details dtl','mstr.IGRNO = dtl.IGRNO');
$this->db->join('T_MaterialMaster mm','mm.MaterialCode = bill.MaterialCode');
// $this->db->join('T_MaterialMaster mm','mm.MaterialCode = bill.MaterialCode');
$this->db->join('T_PurchaseOrder_Master pom','pom.PONO = bill.PONO');
$this->db->where('bill.PONO',$pono);
//$this->db->or_where('pom.status',SPECIAL_PO);

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

299
application/views/alterpurchaseorder.php Normal file → Executable file
View File

@ -1731,6 +1731,10 @@ function calculatePackaging(isEdit)
function SpecialPOcheck()
{
// alert('splpo')
$('#content').loader('show');
POcheck=$("input:radio[name='Quality']:checked").val();
@ -1740,17 +1744,21 @@ function SpecialPOcheck()
var row=$('#txtRowCount1').val();
var PO=$('#POType').val();
if(splrow!=row)
{
alert("You havent add all the material details")
return false;
}
// if(splrow!=row)
// {
// alert("You havent add all the material details")
// return false;
// }
else
{
// else
// {
if(PO=='REVENUE')
{
var images = $('#images').val();
if(POcheck==0)
{
$('#txtSpecial').val(1);
@ -1768,6 +1776,10 @@ function SpecialPOcheck()
RevenueSave(4);
}
}
@ -1779,7 +1791,7 @@ function SpecialPOcheck()
Save(2)
}
}
//}
}
/* Set the Packaging calculation option for calculating Packaging */
@ -1801,6 +1813,7 @@ function SpecialPOcheck()
//alert('normalemergency');
$('#txtSpecial').val(0);
$('#content').loader('show');
RevenueSave(1)
}
else
@ -1825,7 +1838,7 @@ function SpecialPOcheck()
else
{
//window.location.href ="<?php echo base_url() ?>purchaseorder/addNewPurchaseOrder";
$('#filemodel').modal('show');
$('#servicemodel').modal('show');
//$('#txtSpecialservice').val(1);
//Save(2)
@ -2960,12 +2973,14 @@ function populateValueMainFormForDeleteItem(rowid)
<div class="modal-body">
<form>
<div class="radio">
<label><input type="radio" name="optsubmit" id="optsubmit" value='1' >YES</label>
</div>
<div class="radio">
<label><input type="radio" name="optsubmit" checked="checked" value='0' id="optsubmit">NO</label>
</div>
<div class="radio">
<label><input type="radio" name="optsubmit" id="optsubmit" value='1' >YES</label>
</div>
<div class="modal-footer">
<a class="btn btn-primary" ID="PackagingOption" onclick="submitoption();dropdownselect();" style="margin-top: -24px;">&nbsp;&nbsp;<span class="bold">Ok</span></a>
@ -2988,12 +3003,12 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
<div class="modal-body" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4 pad"><strong>Select Item Code</strong>
<!-- <div class="col-md-4 pad"><strong>Select Item Code</strong>
<select id="emergencyitemcode" name="emergencyitemcode" class = "form-control select2">
<!-- <option value="1"> select material code</option> -->
<!-- <option value="1"> select material code</option>
</select>
</div>
</div>-->
<div class="col-md-4 pad"><strong>Delivery Challan /Inv No</strong>
<input type="text" name="ChallanInvNo" id="ChallanInvNo" maxlength="12" class="form-control" value="" required onkeypress="return isNumberKey(event)">
</div>
@ -3040,11 +3055,11 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-12 text-right" style="padding-bottom:1%;">
<!--<div class="col-md-12 text-right" style="padding-bottom:1%;">
<div class="col-md-4" style="margin-left: 64%;">
<a class="btn btn-primary Add" onclick="addtable();"><span class="bold">Add LineItem</span></a>
</div>
</div>
</div>-->
</div>
<!-- <div class="col-md-12 text-right">
// <a class="btn btn-primary font Add" id="addtable"><span class="bold">Add table</span></a>
@ -3054,7 +3069,7 @@ function populateValueMainFormForDeleteItem(rowid)
<table id="specialtable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
<thead style="background-color:#ddf">
<!--<thead style="background-color:#ddf">
<tr>
<th>MaterialCode1</th>
<th>DeliveryChallanDate</th>
@ -3064,7 +3079,7 @@ function populateValueMainFormForDeleteItem(rowid)
<th>Quantity12</th>
<th>File</th>
</tr>
</thead>
</thead>-->
<tbody id="specialappend">
@ -3090,7 +3105,123 @@ function populateValueMainFormForDeleteItem(rowid)
<!-- </form> -->
</div>
<div id="servicemodel" class="modal fade" data-backdrop-limit="1" role="dialog" aria-labelledby="myModalLabel" >
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content" style="width:950px;">
<div class="modal-header">
<h4 class="modal-title">SERVICE Bill Details</h4>
</div>
<div class="modal-body" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4 pad"><strong>Select Item Code</strong>
<select id="serviceitemcode" name="serviceitemcode" class = "form-control select2">
<!-- <option value="1"> select material code</option> -->
</select>
<input type="text" name="servicerow" id="servicerow" value="">
</div>
<div class="col-md-4 pad"><strong>Description</strong>
<input type="text" name="description" id="description" maxlength="12" class="form-control" value="" required onkeypress="return isNumberKey(event)">
</div>
<div class="col-md-4">
<input type = "file" size = "20" input accept=".docx,.pdx,.doc.JPG,.PNG" id="images1" name="images1"/>
<label for="images">Select Company file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
</div>
<!--<div class="col-md-4 pad"><strong>Delivery Challan /Inv Date</strong>
<!-- <input type="Date" name="Date1" onkeypress="return onlyAlphabets(event);" maxlength="100" id="Date1" class="form-control" required value="2">
<?php
$data = array('name' => 'Date1','value' => set_value('Date1',$CurrentDate),'id'=>'Date1', 'class' => 'form-control num' ,'required' => 'true');
echo form_input($data);?>
</div>-->
</div>
<!-- <div class="col-md-12">
<div class="col-md-4 pad"><strong>Advise Quantity</strong>
<input type="text" name="AQuantity" id="AQuantity" maxlength="12" class="form-control" value="" required>
</div>
<input type="hidden" id="tablevalues" value="sample" name="tablevalues"/>
<input type="hidden" id="splrow" value="sample" name="splrow"/>
<div class="col-md-4 pad"><strong>Vehicle No</strong>
<input type="text" name="VehicleNo" id="VehicleNo" maxlength="12" class="form-control" value="" required>
</div>
<div class="col-md-4 pad"><strong>Courier No</strong>
<input type="text" name="CourierNo" id="CourierNo" maxlength="12" class="form-control" value="" required>
</div>
</div>-->
<!--<div class="col-md-12">
<div class="col-md-5">
<input type = "file" size = "20" input accept=".docx,.pdx,.doc.JPG,.PNG" id="images" name="images"/>
<label for="images">Select Company file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
</div>
<div class="col-md-5" id="QualityChecked"><strong>Is Quality Check Required</strong>
<div class="radio">
<label><input type="radio" name="Quality" checked="checked" value='0' id="Quality">Yes</label>
</div>
<div class="radio">
<label><input type="radio" name="Quality" id="Quality" value='1' >No</label>
</div>
</div>
</div>-->
<div class="col-md-12 text-right" style="padding-bottom:1%;">
<div class="col-md-4" style="margin-left: 64%;">
<a class="btn btn-primary Add" onclick="servicetable();"><span class="bold">Add LineItem</span></a>
</div>
</div>
</div>
<!-- <div class="col-md-12 text-right">
// <a class="btn btn-primary font Add" id="addtable"><span class="bold">Add table</span></a>
// </div>-->
<div class="col-md-12">
<table id="specialservicetable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
<thead style="background-color:#ddf">
<tr>
<th>MaterialCode</th>
<th>Description</th>
<th>File1</th>
</tr>
</thead>
<tbody id="specialserviceappend">
</tbody>
</table>
</div>
<div class="modal-footer">
<div class="col-md-12 text-right">
<!-- <div class="col-md-4">
<a class="btn btn-primary Add" onclick="addtable();"><span class="bold">Add table</span></a>
</div> -->
<div class="col-md-4 col-md-offset-8">
<a class="btn btn-primary ok" ID="ExciseOption12" onclick="SpecialPOcheck();" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-primary" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
</div>
</div>
</div>
</div>
</div>
<!-- </form> -->
</div>
<div id="freightmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
@ -7285,7 +7416,7 @@ $('#content').loader('hide');
function Save(status)
{
alert('Save fn');
if(status == '0')
{
@ -8157,10 +8288,13 @@ $("#PaymentMethod").change(function() {
var itemvalue = new Array();
var itemname = new Array();
var servalue = new Array();
var sername = new Array();
var reqType = $('#purpose').val();
var x = 0;
var y = 0;
var z = $('#RevenueAppend tr').length;
var zz = $('#ServiceAppend tr').length;
var options='';
// alert(z);
// var values = array(0,15,30,45);
@ -8202,11 +8336,29 @@ $("#PaymentMethod").change(function() {
//$("#emergency_itemcode").append( $('<option></option>').val(options).html(option));
$("#emergencyitemcode").html(options);
}
// else
// {
// option = "select materials code kjjh "
// $("#emergency_itemcode").html('sdfsdf');
// }
else if(reqType == 'SERVICE')
{
$("#serviceTax tr:gt(0) td:nth-child(3)").each(function(){
var temp3=$(this).html();
if($.inArray(temp3, itemvalue) < 0)
{
itemvalue[x]=temp3;
x++;
}
});
for(var j=0;j<zz;j++)
{
options += '<option value="' + itemvalue[j] + '">' + itemvalue[j] + '</option>';
}
$("#serviceitemcode").html(options);
}
else{
}
}
</script>
@ -8221,6 +8373,16 @@ $("#PaymentMethod").change(function() {
<td style="width: 15%;" align="left"><%=File%></td>
</tr>
</script>
</script>
<script type="text/html" id="addservice">
<tr id="<%=index%>">
<td style="width: 15%;" align="left"><%=MaterialCode%></td>
<td style="width: 15%;" align="left"><%=Description%></td>
<td style="width: 15%;" align="left"><%=File1%></td>
</tr>
</script>
<script>
//table append for file uploading
var index = '1';
@ -8238,7 +8400,7 @@ var specialrow=0;
var Quantity123 = $('#AQuantity').val();
var images = $('#images').val();
// var actqty=$('#quantity'+temp);
//var actqty=$('#quantity'+temp);
// console.log(actqty);
@ -8340,6 +8502,91 @@ var specialrow=0;
// $("#tablevalues").val(jsondata);
}//add click function closed
//var index1 = '1';
var specialservicerow=0;
function servicetable()
{
alert("addonclick");
var temp = index;
var serviceitemcode = $('#serviceitemcode').val();
var description = $('#description').val();
var images12 = $('#images1').val();
console.log(serviceitemcode);
console.log(description);
console.log(images12);
console.log(temp);
//var actqty=$('#quantity'+temp);
//console.log(actqty);
if(images12 == ''||description == '' || serviceitemcode=='')
{
//alert('hai'+Quantity123+CourierNo1);
//alert('both insert and update operation evaluated');
if(serviceitemcode == ''){
alert("Please Enter Material Code");
$("#serviceitemcode").focus();
}
else if (description == ''){
alert("Please Enter description");
$('#description').focus();
return false;
}
else if (images12 == ''){
alert("Please select your file");
$('#images1').focus();
return false;
}
}//validation if closed
else
{
var template = jQuery("#addservice").html();
index = parseInt(index)+1;
$('#specialserviceappend').append(_.template(template,{index:temp,MaterialCode:serviceitemcode,Description:description,File1:images12}));
var theForm=$(".CreatealterPO");
addHidden(theForm,"serviceitemcode"+temp,emergencyitemcode );
addHidden(theForm,"images1"+temp,images );
// specialservicerow++;
// $('#splrow').val(specialrow);
// var a=$('#emergencyitemcode'+temp).val();
// var b=$('#images'+temp).val();
//console.log(a);
// console.log(b);
// addHidden(theForm,"VehicleNo"+temp,Reqnumber );
// addHidden(theForm,"CourierNo"+temp,Reqnumber );
// addHidden(theForm,"AQuantity"+temp,Reqnumber );
//$('#emergencyitemcode').val('');
// $('#ChallanInvNo').val('');
// $('#ChallanInvDate').val('');
// $('#VehicleNo').val('');
// $('#CourierNo').val('');
// $('input[name="Quality"]').attr('checked', false);
// $('#images').val('');
}//else closed
//if closed
// var tablevalue = $('#specialtable').tableToJSON(); // Convert the table into a javascript object
// var jsondata = JSON.stringify(tablevalue);
//alert(jsondata);
// $("#tablevalues").val(jsondata);
// $("#tablevalues").val(jsondata);
}//add click function closed
</script>

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

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

View File

@ -4072,12 +4072,12 @@ function calculateEditTaxValue()
<thead style="background-color:#ddf">
<tr>
<th>Bill No </th>
<th>Materials</th>
<!-- <th>Materials</th> -->
<th>Delivery Challan No</th>
<th>Delivery Challan Date</th>
<th>Vehicle No</th>
<th>Courier No</th>
<th>Quantity</th>
<!-- <th>Quantity</th> -->
<th>File</th>
<th>Action</th>
@ -4094,13 +4094,13 @@ function calculateEditTaxValue()
?>
<tr>
<td><?php echo $gd->BillNo ?></td>
<td><?php echo $gd->MaterialCode ?> - <?php echo $gd->MaterialName ?></td>
<!-- <td><?php echo $gd->MaterialCode ?> - <?php echo $gd->MaterialName ?></td> -->
<td><?php echo $gd->DeliveryChellanOrInvoiceNo?></td>
<td><?php $date = new DateTime($gd->DeliveryChellanDate);
echo $date->format('d-m-Y'); ?></td>
<td><?php echo $gd->VehicleNo?></td>
<td><?php echo $gd->CourierNo?></td>
<td><?php echo $gd->QuantityAsPerInvoice?></td>
<!-- <td><?php echo $gd->QuantityAsPerInvoice?></td> -->
<td><?php echo $gd->FilePath?></td>
<td><a href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $gd->FilePath ?>"><i class="fa fa-download" ></i></a></td>
</tr>
@ -4128,8 +4128,11 @@ function calculateEditTaxValue()
<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a> <?php }?>
<a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-primary Save" ID="Cancel" href="<?php echo base_url().'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<?php }else {?>
<a class="btn btn-primary" ID="Viewsave" onclick="Save(2)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<?php }
else {?>
<!-- <a class="btn btn-primary" ID="Viewsave" onclick="Save(2)">&nbsp;&nbsp;<span class="bold">Submit</span></a> -->
<a class="btn btn-primary" ID="OK" href="<?php echo base_url().'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a> <?php } ?>

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

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

0
uploads/BillFiles/importpdf.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

0
uploads/BillFiles/phperror.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 188 KiB

0
uploads/BillFiles/phperror1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB