updated code used in demo

This commit is contained in:
saravanakumar_kandasami 2017-07-11 11:58:06 +05:30
parent a5c0e910a9
commit 6adbd1ee89
49 changed files with 10748 additions and 23389 deletions

View File

@ -194,7 +194,7 @@ $route['ViewMRIRBilling'] = "MRIRcontroller/viewmrirforbilling";
$route['EditMRIR'] = "MRIRcontroller/editmaterialinspectionreport";
$route['ViewMRIR'] = "MRIRcontroller/viewmaterialinspectionreport";
$route['Viewigr'] = "MRIRcontroller/viewinwardgateregister";
$route['Distribution'] = "MRIRcontroller/viewmMaterialDistributionList";
//<-------------Store page----------------->
$route['Stock'] = "storestatus/storeavailability";

View File

@ -45,7 +45,15 @@ class MRIRcontroller extends BaseController
$this->loadViews("viewmrirforbilling", $this->global,$data , NULL);
}
public function viewmMaterialDistributionList()
{
$this->global['pageTitle'] = 'Siddharth : Distribution list ';
$data['Distribution'] = $this->mrir_model->ViewDistributionList();
$this->loadViews("MaterialIssueList", $this->global,$data , NULL);
}
/*FOR Displaying IGR Values (view folder- IGR view page (button link)) */
@ -119,7 +127,7 @@ class MRIRcontroller extends BaseController
//this array to store the value in master table..
$mrirmastervalues = array('IGRNO'=>$igrno,'PONO'=>$PONO,'CreatedBy'=>$CreatedBy,'Createdon'=>$createddt);
$mrirmastervalues = array('MRIRStatus'=>MRIR_CREATED,'IGRNO'=>$igrno,'PONO'=>$PONO,'CreatedBy'=>$CreatedBy,'Createdon'=>$createddt);
$mrirmaster = $this->mrir_model->master_mrir($mrirmastervalues);
$IGRDetails = array('IGRStatus'=>MRIR_CREATED,'UpdateBY'=>$CreatedBy,'UpdatedOn'=>$createddt);
@ -181,20 +189,24 @@ class MRIRcontroller extends BaseController
//echo "outside for loop";
for ($i = 1; $i <= $RowCount; $i++)
{
$acceptquantity=$this->input->post('AcceptQuantity'.$i);
$rejectquantity=$this->input->post('RejectQuantity'.$i);
$MaterialCode = $this->input->post('MaterialCode'.$i);
$acceptquantity=trim($this->input->post('AcceptQuantity'.$i));
$rejectquantity=trim($this->input->post('RejectQuantity'.$i));
$MaterialCode = trim($this->input->post('MaterialCode'.$i));
//echo $MaterialCode;
if(strlen($acceptquantity)>0)
{
$strStatus = MRIR_APPROVED;
$avlQty = 0;
$getAvailableqty = $this->mrir_model->getItemQuantityFromStock($MaterialCode);
$getAvailableqty = $this->mrir_model->getItemQuantityFromStock(trim($MaterialCode));
// print_r( $getAvailableqty);
if(count($getAvailableqty)>0)
{
$avlQty = $getAvailableqty[0]['Quantity'];
}
$updatStock = array('Quantity'=>($acceptquantity+$avlQty),'Status'=>'1','UpdatedOn'=>$UPdateon,'UpdatedBy'=>$UPdateby);
// print_r($updatStock);
// echo $avlQty;
$updatStock = array('Quantity'=>($acceptquantity+$avlQty),'Status'=>'0','UpdatedOn'=>$UPdateon,'UpdatedBy'=>$UPdateby,'Remarks'=>'Stock added for'.$mrir_no);
$this->mrir_model->UpdateStock($updatStock,trim($MaterialCode));
}
elseif(strlen($acceptquantity)==0 && strlen($rejectquantity)>0)
{

View File

@ -63,6 +63,7 @@ class amendmentpurchaseorder extends BaseController
$data['MaterialList'] = $result;//$this->purchaseorder_model->getRawMaterialList($ReqType,$ReqArray);
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
$data['Payment']=$this->purchaseorder_model->getConfigValue('C009');
$data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR');
//print_r($data['Payment']);
/* Cost code from Requisition - Client Review Fix
Start here */
@ -158,8 +159,8 @@ class amendmentpurchaseorder extends BaseController
}
else if($ReqType == CAPITAL)
{
$CapitalRange = $_GET['CapitalRange'];
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
@ -167,57 +168,65 @@ class amendmentpurchaseorder extends BaseController
{
$data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
}
$data['POItem'] = $this->purchaseorder_model->getCapitalPurchaseOrderDetails($PONO);
$data['requestedBy'] = $this->purchaseorder_model->GetRequesedByDetails($PONO);
if($CapitalRange=='0'){
$data['POItem'] = $this->purchaseorder_model->getCapitalPurchaseOrderDetails($PONO);
}
else if($CapitalRange=='1'){
$data['POItem'] = $this->purchaseorder_model->getDomesticCapitalPurchaseOrderDetails($PONO);
}
$data['requestedBy'] = $this->purchaseorder_model->GetRequesedByDetails($PONO);
$CapitalRange='';
$CapitalRange='';
foreach($data['POItem'] as $Rate)
{
$exRate=$Rate->ExchangeRate;
$CapitalRange=$Rate->CapitalRange;
foreach($data['POItem'] as $Rate)
{
}
foreach($data['POItem'] as $CUR)
{
$exRate=$Rate->ExchangeRate;
$CapitalRange=$Rate->CapitalRange;
}
foreach($data['POItem'] as $CUR)
{
$Currency=$CUR->CurrencyType;
$Currency=$CUR->CurrencyType;
}
if($CapitalRange=='0'){
$data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
$data['ExchangeRate']=$exRate;
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
}
}
else if($CapitalRange=='1'){
$data['CurrencyDetail']='';
$data['ExchangeRate']=$exRate;
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
if($CapitalRange=='0'){
}
$data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
$data['ExchangeRate']=$exRate;
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
}
else if($CapitalRange=='1'){
$data['CurrencyDetail']='';
$data['ExchangeRate']=$exRate;
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
}
$this->global['pageTitle'] = 'Siddharth : Edit Capital Purchase order form';
$this->loadViews("editCapitalAmendPO", $this->global, $data, NULL);
}
$this->global['pageTitle'] = 'Siddharth : Edit Capital Purchase order form';
$this->loadViews("editCapitalAmendPO", $this->global, $data, NULL);
}
}
@ -456,8 +465,8 @@ function UpdateAmendServicePurchaseOrder()
$updatedBy = $this->session->userdata ( 'userId' );
$RowCount = $this->input->post('txtRowCount');
// echo "ROw Count is" . $RowCount;
//echo "ROw Count is" . $RowCount;
//die();
// $DeletedRow = $this->input->post('txtDeletedRow');
//$comma_separated = explode(':', $DeletedRow);
@ -537,7 +546,7 @@ function UpdateAmendServicePurchaseOrder()
foreach($POLineItem as $line):
$LineItemNo = $line['LineItemNo'];
endforeach;
// echo " Last Lineitem no is" . $LineItemNo;
//echo " Last Lineitem no is" . $LineItemNo;
//}
@ -588,9 +597,9 @@ function UpdateAmendServicePurchaseOrder()
function EditAmendCapitalPurchaseOrder()
{
// echo "WELCOME-";
//echo "WELCOME-";
$PONO =$this->input->post('txtPONO');
//echo $PONO;
//echo $PONO."--";
$POdt =$this->input->post('PODate');
@ -639,7 +648,7 @@ function UpdateAmendServicePurchaseOrder()
$CreateBy = $this->session->userdata ( 'userId' );
$RowCount = $this->input->post('txtRowCount');
//echo $RowCount;
//die();
//$DeletedRow = $this->input->post('txtDeletedRow');
//$comma_separated = explode(':', $DeletedRow);
@ -661,7 +670,7 @@ function UpdateAmendServicePurchaseOrder()
$PODetail=array('Status'=>"ST030");//TO SET PARENT PO AS AMENDMENT STATUS
//print_r($PODetail);
$APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
// echo $APO."Affected</br>";
//echo $APO."Affected</br>";
$LineItemStatus = REQITEM_NEW;
@ -748,7 +757,7 @@ function UpdateAmendServicePurchaseOrder()
// if(strlen($POLineItemNo) == 0)
// {
$POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter);
// print_r($POLineItemList);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
$LineItemNo = '';

View File

@ -53,6 +53,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['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR');
/*$data['DeptList'] = $this->purchaseorder_model->getDepartmentAllList();*/
$empDetails = $this->requistion_model->GetEmployeeDetails($RequestedBy);

File diff suppressed because it is too large Load Diff

View File

@ -132,9 +132,9 @@ class inwardgateregister extends BaseController
$OrderedQuantity = $this->input->post('OrderedQuantity'.$i);
//echo 'OrderedQunatity'.$OrderedQuantity;
echo 'Successfully Created IGR ';
echo ' ';
if(strlen($QuantityAsPerInvoice)>0)
{
@ -160,9 +160,10 @@ class inwardgateregister extends BaseController
$this->inwardgateregister_model->UpdatePOLineItem($POLineItem,$PONO,$MaterialCode);
}
echo $IGRNO;
}
echo 'Successfully Created IGR Number:'. $IGRNO;
}
function ViewIGR()

View File

@ -45,7 +45,7 @@ class purchaseorder extends BaseController
{
$this->global['pageTitle'] = 'Siddharth : Advance Request';
$this->loadViews("Advancerequest", $this->global, NULL , NULL);
$this->loadViews("advancerequest", $this->global, NULL , NULL);
}
function requisition()
{
@ -260,144 +260,124 @@ class purchaseorder extends BaseController
$this->load->View("capitalpopdf", NULL);
}
//To View/Update Purchase Order
function EditPurchaseOrder()
{
$PONO = $_GET['PONO'];
$ReqType = $_GET['ReqType'];
$Req = $this->purchaseorder_model->getRequistionNoFromPO($PONO);
$data['ReqList'] = $Req ;
$result = array();
$ReqArray = array();
foreach ($Req as $SID):
$ReqArray[] = $SID->ReqNo ;
$result[] = $this->purchaseorder_model->getRawPOMaterialList($SID->ReqNo);
endforeach;
$data['MaterialList'] = $result;//$this->purchaseorder_model->getRawMaterialList($ReqType,$ReqArray);
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
$data['Payment']=$this->purchaseorder_model->getSupplierPayment('C009');
$data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR');
/* Cost code from Requisition - Client Review Fix
Start here */
$ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray);
$data['RequistionDetails'] = $ReqDetails;
foreach ($data['RequistionDetails'] as $ReqDet)
//To View/Update Purchase Order
function EditPurchaseOrder()
{
$PONO = $_GET['PONO'];
$ReqType = $_GET['ReqType'];
$Req = $this->purchaseorder_model->getRequistionNoFromPO($PONO);
$data['ReqList'] = $Req ;
$result = array();
$ReqArray = array();
foreach ($Req as $SID):
$ReqArray[] = $SID->ReqNo ;
$result[] = $this->purchaseorder_model->getRawPOMaterialList($SID->ReqNo);
endforeach;
$data['MaterialList'] = $result;//$this->purchaseorder_model->getRawMaterialList($ReqType,$ReqArray);
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
$data['Payment']=$this->purchaseorder_model->getSupplierPayment('C009');
$data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR');
/* Cost code from Requisition - Client Review Fix
Start here */
$ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray);
$data['RequistionDetails'] = $ReqDetails;
foreach ($data['RequistionDetails'] as $ReqDet)
{
$Status=$ReqDet->Status;
}
//print_r($Status);
$data['POSTATUS']=$this->purchaseorder_model->GetPOStatus($Status);
//print_r($data['POSTATUS']);
foreach ($data['POSTATUS'] as $POST)
{
$Status=$POST->StatusName;
$Status=$POST->StatusName;
}
//print_r($Status);
$CostCode = '';
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$Year = $dt->format('Y');
foreach ($ReqDetails as $Rs):
$CostCode = $Rs->CostCenterCode;
endforeach;
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
if(count($AvlBudget)>0)
{
$data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
}
/* End Here */
$data['POMaster'] = $this->purchaseorder_model->GetServicePurchaseOrder($PONO);
//$data['POSTATUS']=$this->purchaseorder_model->GetServicePurchaseOrder($PONO);
//print_r($data['POMaster']);
foreach ($data['POMaster'] as $Exc)
{
$exRate=$Exc->ExchangeRate;
}
foreach ($data['POMaster'] as $TER)
{
$PAYTERM=$TER->PaymentTerms;
}
// foreach ($data['POMaster'] as $STATUSCODE)
// {
// $STATUSNAME=$STATUSCODE->PaymentTerms;
// }
//print_r($PAYTERM);
//print_r($exRate);
//$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
$data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate();
$data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006');
$data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018');
if($ReqType == SERVICE)
{
$data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetails($PONO);
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
//$data['WorkStatus']=$this->purchaseorder_model->GetWorkStatus('C019');
$data['WorkStatus']=$this->purchaseorder_model->GetWorkStatus('C019');
$this->global['pageTitle'] = 'Siddharth : Edit Service Purchase order form';
$this->loadViews("EditservicePurchaseorder", $this->global, $data, NULL);
}
else if($ReqType == REVENUE)
{
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO);
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
//$data['WorkStatus']=$this->purchaseorder_model->GetWorkStatus('C019');
$this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form';
$this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL);
}
else if($ReqType == IMPORT)
$CostCode = '';
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$Year = $dt->format('Y');
foreach ($ReqDetails as $Rs):
$CostCode = $Rs->CostCenterCode;
endforeach;
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
if(count($AvlBudget)>0)
{
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
if(count($AvlBudget)>0)
{
$data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
}
$data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
}
/* End Here */
$data['POMaster'] = $this->purchaseorder_model->GetServicePurchaseOrder($PONO);
//$data['POSTATUS']=$this->purchaseorder_model->GetServicePurchaseOrder($PONO);
//print_r($data['POMaster']);
foreach ($data['POMaster'] as $Exc)
{
$exRate=$Exc->ExchangeRate;
}
foreach ($data['POMaster'] as $TER)
{
$PAYTERM=$TER->PaymentTerms;
}
// foreach ($data['POMaster'] as $STATUSCODE)
// {
// $STATUSNAME=$STATUSCODE->PaymentTerms;
// }
//print_r($PAYTERM);
//print_r($exRate);
//$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
$data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate();
$data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006');
$data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018');
if($ReqType == SERVICE)
{
$data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetails($PONO);
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
//$data['WorkStatus']=$this->purchaseorder_model->GetWorkStatus('C019');
$data['WorkStatus']=$this->purchaseorder_model->GetWorkStatus('C019');
$this->global['pageTitle'] = 'Siddharth : Edit Service Purchase order form';
$this->loadViews("EditservicePurchaseorder", $this->global, $data, NULL);
}
else if($ReqType == REVENUE)
{
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO);
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
//$data['WorkStatus']=$this->purchaseorder_model->GetWorkStatus('C019');
$this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form';
$this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL);
}
else if($ReqType == IMPORT)
{
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
if(count($AvlBudget)>0)
{
$data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
}
// print_r($data);
$data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetails($PONO);
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
foreach($data['POMaster'] as $CUR)
{
//print_r($CUR->CurrencyType);
$Currency=$CUR->CurrencyType;
}
// $data[$Rate->ExchangeRate]=$Rate->ExchangeRate;
$data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
//print_r($data['PaymentTerms']);
$unicode ='';
$unicode ='';
foreach ($data['CurrencyDetail'] as $Detail)
{
$unicode=$Detail->FontCode2000;
$unicode=$Detail->FontCode2000;
}
foreach ($data['CurrencyDetail'] as $Detail)
{
$currencycode=$Detail->Currency_Code;
$currencycode=$Detail->Currency_Code;
}
//print_r($unicode);
$data['unicode']=$unicode;
$data['currencycode']=$currencycode;
@ -408,74 +388,50 @@ class purchaseorder extends BaseController
{
$CapitalRange = $_GET['CapitalRange'];
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
if(count($AvlBudget)>0)
{
$data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
}
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
if(count($AvlBudget)>0)
{
$data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
}
if($CapitalRange=='0'){
$data['POItem'] = $this->purchaseorder_model->getCapitalPurchaseOrderDetails($PONO);
}
else if($CapitalRange=='1'){
$data['POItem'] = $this->purchaseorder_model->getDomesticCapitalPurchaseOrderDetails($PONO);
}
$data['requestedBy'] = $this->purchaseorder_model->GetRequesedByDetails($PONO);
$CapitalRange='';
foreach($data['POItem'] as $Rate)
{
$exRate=$Rate->ExchangeRate;
$CapitalRange=$Rate->CapitalRange;
}
foreach($data['POItem'] as $CUR)
{
$Currency=$CUR->CurrencyType;
}
if($CapitalRange=='0'){
$data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
$data['ExchangeRate']=$exRate;
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
}
else if($CapitalRange=='1'){
$data['CurrencyDetail']='';
$data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail('INR');
$data['ExchangeRate']=$exRate;
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
}
$this->global['pageTitle'] = 'Siddharth : Edit Capital Purchase order form';
$this->loadViews("editCapitalPo", $this->global, $data, NULL);
}
}
}
// To get the Material value based on the MaterialCode
function getDetailsforReq()
@ -978,151 +934,165 @@ $DeliveryOption = $this->input->post('DateRange');
}
public function revenuepoprint($PONO)
{
{
// Load all views as normal
//$PONO = $_GET['PO'];
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForPDF($PONO);
//$PONO = $_GET['PO'];
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForPDF($PONO);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
$Currencycode='';
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
$totalAmt=sprintf("%.2f", $TotalOrderValue);
$data['TotalAmountInWords']= $this->convertNumber($totalAmt);
$data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
// Add header to pdf
//$this->load->view('includes/pdfheader');
// Load the pdf page with multiviews
// Add header to pdf
//$this->load->view('includes/pdfheader');
// Load the pdf page with multiviews
$this->load->View("revenuepopdf", $data);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("RevenuePOReport.pdf",$data,$php);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("RevenuePOReport.pdf",$data,$php);
}
public function servicepoprint($PONO)
{
// $this->load->view('includes/pdfheader');
// Load the pdf page with multiviews
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetailsForPrint($PONO);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
//print_r( $data['CurrencySymbol']);
$TotalOrderValue=0;
$Currencycode='';
foreach ($data['POItem'] as $POValue)
{
$TotalOrderValue=$TotalOrderValue + $POValue->TotalValue;
}
public function servicepoprint($PONO)
{
// $this->load->view('includes/pdfheader');
// Load the pdf page with multiviews
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetailsForPrint($PONO);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
//print_r( $data['CurrencySymbol']);
$TotalOrderValue=0;
$Currencycode='';
foreach ($data['POItem'] as $POValue)
{
$TotalOrderValue=$TotalOrderValue + $POValue->TotalValue;
}
$totalAmt=sprintf("%.2f", $TotalOrderValue);
$data['TotalAmountInWords']= $this->convertNumber($totalAmt);
$data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
$totalAmt=sprintf("%.2f", $TotalOrderValue);
$data['TotalAmountInWords']= $this->convertNumber($totalAmt);
$data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
$this->load->View("servicepopdf", $data);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("ServicePOReport.pdf",$data,$php);
$this->load->View("servicepopdf", $data);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("ServicePOReport.pdf",$data,$php);
}
public function importpoprint($PONO)
{
// $this->load->view('includes/pdfheader');
// Load the pdf page with multiviews
$Requester='';
$Depcode='';
$Currencycode='';
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetailsForPDF($PONO);
foreach ($data['POItem'] as $Reqdby)
{
$Requester=$Reqdby->Requestedby;
public function importpoprint($PONO)
{
// $this->load->view('includes/pdfheader');
// Load the pdf page with multiviews
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetailsForPDF($PONO);
foreach ($data['POItem'] as $Reqdby)
{
$Requester=$Reqdby->Requestedby;
}
}
foreach ($data['POItem'] as $CURTYPE)
{
$Currencycode=$CURTYPE->CurrencyType;
}
foreach ($data['POItem'] as $CURTYPE)
{
$Currencycode=$CURTYPE->CurrencyType;
}
$data['Requestername']=$this->purchaseorder_model->GerRequesterName($Requester);
$data['Requestername']=$this->purchaseorder_model->GerRequesterName($Requester);
foreach ($data['Requestername'] as $ReqDep)
{
$Depcode=$ReqDep->Departmentcode;
}
foreach ($data['Requestername'] as $ReqDep)
{
$Depcode=$ReqDep->Departmentcode;
}
$data['DEPCODE']=$this->purchaseorder_model->GerRequesterDep($Depcode);
//print_r($data['Requestername']);
$data['Currencytype']=$this->purchaseorder_model->GerCurrencyCodeName($Currencycode);
$ProductPrice='';
foreach ($data['POItem'] as $PO )
{
$ProductPrice=$PO->ProductPrice;
}
$totalAmt=sprintf("%.2f", $ProductPrice);
$data['TotalAmountInWords']= $this->convertNumber($totalAmt);
//print_r($data['TotalAmountInWords']);
$data['DEPCODE']=$this->purchaseorder_model->GerRequesterDep($Depcode);
//print_r($data['Requestername']);
$data['Currencytype']=$this->purchaseorder_model->GerCurrencyCodeName($Currencycode);
$this->load->View("importpopdf", $data);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
//$this->dompdf->set_paper(array(0, 0, 841.89, 1190.55), 'landscape');
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("ImportPOReport.pdf",$data,$php);
$this->load->View("importpopdf", $data);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
//$this->dompdf->set_paper(array(0, 0, 841.89, 1190.55), 'landscape');
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("ImportPOReport.pdf",$data,$php);
}
/**
* This function used to load the Delete the Requistion Items
*/
@ -1228,7 +1198,7 @@ function addNewImportPurchaseOrder()
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'PayableAT'=>$Payableat,'PaymentDays'=>$PaymentDays,'POType'=>$POType);
//print_r($POList);PaymentDays
//print_r($POList);
//die();
$POMaster = $this->purchaseorder_model->addPOMaster($POList);
@ -1311,7 +1281,11 @@ function addNewImportPurchaseOrder()
if($SkipInsert == "False")
{
$POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter);
//print_r($POLineItemList);
//die();
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
$LineItemNo = '';
@ -1338,7 +1312,8 @@ function addNewImportPurchaseOrder()
echo 'Purchase Order Created Successfully! PO Number Is: '.$PONO ;
}
function EditImportPurchaseOrder()
function EditImportPurchaseOrder()
{
$PONO =$this->input->post('txtPONO');
@ -1408,53 +1383,56 @@ $createddt='';
//echo $RowCount;
for ($i = 1; $i <= $RowCount; $i++)
{
//echo "sdsfsd";
//die();
$MaterialCode = $this->input->post('materialCode'.$i);
$Quantity = $this->input->post('quantity'.$i);
$Reqnumber = $this->input->post('Reqnumber'.$i);
$itemRate = $this->input->post('itemRate'.$i);
$Quantity = $this->input->post('Quantity'.$i);
$Reqnumber = $this->input->post('Reqnumber'.$i);
$itemRate = $this->input->post('itemRate'.$i);
//$Exchangerate = $this->input->post('Exchangerate'.$i);
$BasicPriceinmton = $this->input->post('BasicPriceinUS'.$i);
$Productprice = $this->input->post('BasicAmt'.$i);
$LandingCharge = $this->input->post('LandingChargee'.$i);
$AfterLandingCharge = $this->input->post('AfterLandingChargee'.$i);
$HighSeas = $this->input->post('Highseass'.$i);
$AfterHighSeas = $this->input->post('AfterHighseass'.$i);
//$Exchangerate = $this->input->post('Exchangerate'.$i);
$BasicPriceinmton = $this->input->post('BasicPriceInMTon'.$i);
$Productprice = $this->input->post('BasicAmt'.$i);
$LandingCharge = $this->input->post('LandingCharge'.$i);
$AfterLandingCharge = $this->input->post('AfterLandingCharge'.$i);
$HighSeas = $this->input->post('HighSeasSalesCharge'.$i);
$AfterHighSeas = $this->input->post('AfterHighSeasSalesCharge'.$i);
$CustomDuty = $this->input->post('Customduty'.$i);
$AfterCustomDuty = $this->input->post('AfterCustomduty'.$i);
$CustomDuty = $this->input->post('CustomDuty'.$i);
$AfterCustomDuty = $this->input->post('AfterCustomDuty'.$i);
$ExciseDuty = $this->input->post('ExcisedutyTax'.$i);
$AfterExciseDuty = $this->input->post('AfterExcisedutyTax'.$i);
$ExciseDutyEd = $this->input->post('ExcisedutyED'.$i);
$AfterExciseDutyEd = $this->input->post('AfterExcisedutyED'.$i);
$ExciseDuty = $this->input->post('ExciseDuty'.$i);
$AfterExciseDuty = $this->input->post('AfterExciseDuty'.$i);
$ExciseDutyEd = $this->input->post('ExciseDutyEdCess'.$i);
$AfterExciseDutyEd = $this->input->post('AfterExciseDutyEdCess'.$i);
$ExciseDutySH = $this->input->post('ExcisedutySH'.$i);
$AfterExciseDutySH = $this->input->post('AfterExcisedutySH'.$i);
$ExciseDutySH = $this->input->post('ExciseDutySHCess'.$i);
$AfterExciseDutySH = $this->input->post('AfterExciseDutySHCess'.$i);
$CustomEd= $this->input->post('CustomEDcess'.$i);
$AfterCustomEd= $this->input->post('AfterCustomEDcess'.$i);
$CustomEd= $this->input->post('CustomEdCess'.$i);
$AfterCustomEd= $this->input->post('AfterCustomEdCess'.$i);
$CustomSH = $this->input->post('CustomSHcess'.$i);
$AfterCustomSH = $this->input->post('AfterCustomSHcess'.$i);
$CustomSH = $this->input->post('CustomSHCess'.$i);
$AfterCustomSH = $this->input->post('AfterCustomSHCess'.$i);
$AddAdtional = $this->input->post('AdditionalExciseduty'.$i);
$AfterAddAdtional = $this->input->post('AfterAdditionalExciseduty'.$i);
$AddAdtional = $this->input->post('AddlExciseDuty'.$i);
$AfterAddAdtional = $this->input->post('AfterAddlExciseDuty'.$i);
$Grossdutypayable = $this->input->post('Grossdutypayable'.$i);
$AvailableModvat = $this->input->post('AvilableModvat'.$i);
$Grossexpensesduetocustomduty = $this->input->post('Grossexpenses'.$i);
$purchaseratePerKG = $this->input->post('purchaserate'.$i);
$CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpenses'.$i);
$RMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomers'.$i);
$QuantityKG = $this->input->post('PurQuantity'.$i);
$POLineItemNo = $this->input->post('LineItemNo'.$i);
$CostCenter = $this->input->post('costCode'.$i);
$ExciseDutySH = $this->input->post('ExcisedutySH'.$i);
$Totalvalueitem=$this->input->post('TotalExp'.$i);
$LineItemNo = '';
$Grossdutypayable = $this->input->post('Grossdutypayable'.$i);
$AvailableModvat = $this->input->post('AvailableModvat'.$i);
$Grossexpensesduetocustomduty = $this->input->post('Grossexpensesduetocustomduty'.$i);
$purchaseratePerKG = $this->input->post('purchaseratePerKG'.$i);
$CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpensesPerKG'.$i);
$RMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i);
$QuantityKG = $this->input->post('QuantityKG'.$i);
$POLineItemNo = $this->input->post('LineItemNo'.$i);
$CostCenter = $this->input->post('costCode'.$i);
//$ExciseDutySH = $this->input->post('ExcisedutySH'.$i);
$Totalvalueitem=$this->input->post('TotalValue'.$i);
$LineItemNo = '';
// echo "sdsfsd";
//die();
//$currencytypeID = $this->input->post('currencytype');
$SkipInsert = "False";
@ -1605,7 +1583,7 @@ $createddt='';
echo "Successfully Released the Purchase Order No: ".$PONO;
}
else{
$store = array('Status'=>$StatusCode,'OnHoldOn'=>$ReleasedOn,'OnHoldBy'=>$ReleasedBy,'Remarks'=>$Remarks);
$store = array('Status'=>$StatusCode,'OnHoldOn'=>$ReleasedDate,'OnHoldBy'=>$ReleasedBy,'Remarks'=>$Remarks);
$this->purchaseorder_model->UpdatePO($store,$PONO);
echo "The Purchase Order No: ".$PONO ."is On Hold";
@ -1988,28 +1966,27 @@ $createddt='';
/* capital po print/pdf*/
public function CapitalPoPrint($PONO)
public function CapitalPoPrint($PONO)
{
// Load the pdf page with multiviews
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetCapitalPurchaseOrderDetailsForPDF($PONO);
// Load the pdf page with multiviews
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['POItem'] = $this->purchaseorder_model->GetCapitalPurchaseOrderDetailsForPDF($PONO);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$CurrencyType='';
if(!empty($data['POItem'])){
$CurrencyType=$data['POItem'][0]->CurrencyType;
}
else{
}
if($CurrencyType==''){
if($CurrencyType=='' OR $CurrencyType=='0'){
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
$totalAmt=sprintf("%.2f", $TotalOrderValue);
@ -2031,34 +2008,32 @@ $createddt='';
$data['TotalAmountInWords']= $this->convertNumberSymbol($totalAmt,$SymbolCurrency,$SymbolCurrencyName,$PaiseVal);
}
$data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
$this->load->View("capitalpopdf", $data);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("CapitalPOReport.pdf",$data,$php);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->load_html($php);
$this->dompdf->render();
$data['Attachment'] = FALSE;
$this->dompdf->stream("CapitalPOReport.pdf",$data,$php);
}
/*This function is used to convert amount(digit) into words*/

File diff suppressed because it is too large Load Diff

View File

@ -81,8 +81,10 @@ class storerequisitionlist extends BaseController
$this->global['pageTitle'] = 'Siddharth : StoreRequisition Listing';
$this->load->model('storerequistion_model');
$data['cost'] = $this->storerequistion_model->editRequistDetails($StoreReqNo);
$data['Status'] = $this->storerequistion_model->getStoreRequistionStatus($StoreReqNo);
$data['MaterialList'] = $this->storerequistion_model->getRawMaterialList($MaterialCode);
$data['MaterialList'] = $this->storerequistion_model->getRawMaterialList();
$data['DepName'] = $this->session->userdata('DepartmentName');
$data['LineItem']=$this ->storerequistion_model->editstorerequistions($StoreReqNo);
@ -121,55 +123,28 @@ class storerequisitionlist extends BaseController
$Requestedby = $this->session->userdata ( 'EmpID' );
$comma_separated = explode(':', $DeletedRow);
//echo 'done';
$IsExists = $this->storerequistion_model->RequistionIsExists($Requestedby);
$StoreReqNo ='';
if(count( $IsExists) == 0)
{
$StoreItemStatus =STORE_OPEN;
$Request = array( 'Requestedby'=>$Requestedby,'DepartmentCode'=>$DEPCode,'ReqDate'=>$createddt,'CostCenterCode'=>$CostCenter,'Status'=>$Status,'CreatedDate'=>$createddt,'CreatedBy'=>$CreateBy);
//print_r($Request);
$Req = $this->storerequistion_model->addRequistion($Request);
foreach ($Req[0] as $value)
{
$StoreReqNo = $value;
}
//echo $StoreReqNo;
}
else
if(count($Req)>0)
{
$Request = array('Requestedby'=>$Requestedby,'DepartmentCode'=>$DEPCode,'ReqDate'=>$createddt,'Status'=>$Status,'CreatedDate'=>$createddt,'CreatedBy'=>$CreateBy,'CostCenterCode'=>$CostCenter);
$UpdateReq = $this->storerequistion_model->UpdateRequistion($Request,$IsExists[0]['StoreReqNo']);
}
$ReqNumber = '';
//print_r($RowCount);die();
if(count($Req)>0)
{
$ReqNumber = $Req[0]['StoreReqNo'];
$StoreReqNo = $Req[0]['StoreReqNo'];
//printf_r($ReqNumber);
}
else
{
$ReqNumber = $IsExists[0]['StoreReqNo'];
}
echo $StoreReqNo;
$SkipInsert = False;
for ($i = 1; $i <= $RowCount; $i++)
{
$MaterialCode = $this->input->post('MaterialCode'.$i);
$QuantityRequired=$this->input->post('Quantity'.$i);
$Remarks=$this->input->post('Remarks'.$i);
$Request = array('MaterialCode'=>$MaterialCode,'Status'=>$Status,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'StoreReqNo'=>$value);
$addReq=$this->storerequistion_model->addstoreRequistion($Request);
$SkipInsert = "False";
if( count($comma_separated) > 0)
$SkipInsert = "False";
if( count($comma_separated) > 0)
{
for($j = 1; $j < count($comma_separated); $j++)
@ -185,7 +160,15 @@ class storerequisitionlist extends BaseController
}
}
if($SkipInsert == "False")
{
$MaterialCode = $this->input->post('MaterialCode'.$i);
$QuantityRequired=$this->input->post('Quantity'.$i);
$Remarks=$this->input->post('Remarks'.$i);
$Request = array('MaterialCode'=>$MaterialCode,'Status'=>$StoreItemStatus ,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'StoreReqNo'=>$StoreReqNo);
$addReq=$this->storerequistion_model->addstoreRequistion($Request);
}
}
@ -361,62 +344,43 @@ class storerequisitionlist extends BaseController
}
//not completed
function EditStoreRequisitions()
function UpdateStoreRequistion()
{
$CostCenter = $this->input->post('CostCenter');
$DeletedRow = $this->input->post('txtDeletedRow');
$RowCount = $this->input->post('txtRowCount');
$Status = $this->input->post('txtStatus');
$Requestedby = $this->session->userdata ( 'EmpID' );
$comma_separated = explode(':', $DeletedRow);
$StoreReqNo =$this->input->post('txtReqNo');
// echo $StoreReqNo;
$Status = $this->input->post('txtStatus');
$Requestedby = $this->input->post('RequestedBy');
$CostCenter = $this->input->post('CostCenter');
//echo $CostCenter;
$UpdatedBy = $this->session->userdata ('userId' );
//$ReqDate=$this->input->post('Date')
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updatedDate = $dt->format('Y-m-d H:i:s');
$DEPCode = $_GET['DEPCode'];
$DeletedRow = $this->input->post('txtDeletedRow');
$RowCount = $this->input->post('txtRowCount');
//print_r($RowCount); die();
$comma_separated = explode(':', $DeletedRow);
if(strlen($Status) >1)
{
$Request = array('Requestedby'=>$Requestedby,'DepartmentCode'=>$DEPCode,'ReqDate'=>$updatedDate,'CostCenterCode'=>$CostCenter,'Status'=>$Status,'updatedOn'=>$updatedDate );
//print_r($Request); die();
$UpdateReq = $this->storerequistion_model->UpdateRequistion($StoreReqNo,$Request);
//echo"string"; die();
// foreach ($UpdateReq as $value)
// {
// $StoreReqNo = $value;
// }
$Request = array('CostCenterCode'=>$CostCenter,'Status'=>$Status,'updatedOn'=>$updatedDate );
$UpdateReq = $this->storerequistion_model->UpdateRequistion($StoreReqNo,$Request);
}
$SkipInsert = False;
$StoreItemStatus =STORE_OPEN;
for ($i = 1; $i <= $RowCount; $i++)
{
//echo"hi";
$MaterialCode = $this->input->post('EditMaterialCode');
$QuantityRequired=$this->input->post('EditQuantity');
//echo"$QuantityRequired"; die();
$Remarks=$this->input->post('EditRemarks');
$Request = array('MaterialCode'=>$MaterialCode,'Status'=>$Status,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks);
//print_r($Request);die();
$addReq = $this->storerequistion_model->upstoreRequistion($Request);
{
$SkipInsert = "False";
if(count($comma_separated) > 0)
@ -438,39 +402,37 @@ class storerequisitionlist extends BaseController
if($SkipInsert == "False")
{
//echo "string"; die();
$MaterialCode = $this->input->post('EditMaterialCode'.$i);
//echo"MaterialCode"; die();
$MaterialCode = $this->input->post('MaterialCode'.$i);
$QuantityRequired=$this->input->post('Quantity'.$i);
$Remarks=$this->input->post('Remarks'.$i);
$Request = array('MaterialCode'=>$MaterialCode,'Status'=>$Status,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'StoreReqNo'=>$StoreReqNo);
//print_
r($Request);die();
$Remarks=$this->input->post('Remarks'.$i);
$IsExists = $this->storerequistion_model->LineItemIsExists($StoreReqNo,$MaterialCode);
if(count( $IsExists) == 0)
{
$ReqDetails = array('StoreReqNo'=>$StoreReqNo, 'MaterialCode'=>$MaterialCode,'QuantityRequired'=>$QuantityRequired,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDate);
$ReqDetails = array('StoreReqNo'=>$StoreReqNo, 'MaterialCode'=>$MaterialCode,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'Status'=>$StoreItemStatus,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDate);
$this->storerequistion_model->upRequistionDetails($ReqDetails);
$this->storerequistion_model->addstoreRequistion($ReqDetails);
}
else
{
$ReqDetails = array('StoreReqNo'=>$StoreReqNo, 'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDate);
$ReqDetails = array('QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'Status'=>$StoreItemStatus,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDate);
$this->storerequistion_model->UpdateRequistionLineItem($ReqDetails,$StoreReqNo,$MaterialCode);
$this->storerequistion_model->UpdateRequistionLineItem($ReqDetails,$StoreReqNo,$MaterialCode);
}
}
}
echo 'Successfully updated the Requistion details';
echo 'Successfully updated the Requistion details';
}

View File

@ -147,3 +147,150 @@ ERROR - 2017-07-07 16:35:09 --> Severity: Notice --> Undefined variable: Requis
ERROR - 2017-07-07 16:35:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Direct_Git/siddharth_application/application/views/alterpurchaseorder.php 140
ERROR - 2017-07-07 16:35:09 --> Severity: Notice --> Undefined variable: MaterialList /opt/lampp/htdocs/Direct_Git/siddharth_application/application/views/alterpurchaseorder.php 186
ERROR - 2017-07-07 16:36:14 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/Direct_Git/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-07-07 19:58:29 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'MRIRcontroller' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360
ERROR - 2017-07-07 19:58:30 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'MRIRcontroller' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360
ERROR - 2017-07-07 19:59:58 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'MRIRcontroller' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360
ERROR - 2017-07-07 19:59:58 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'MRIRcontroller' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360
ERROR - 2017-07-07 16:27:55 --> Severity: Notice --> Undefined variable: RequistionDetails /home/kasiram9/public_html/SIA_UAT/application/views/alterpurchaseorder.php 138
ERROR - 2017-07-07 16:27:55 --> Severity: Notice --> Undefined variable: MaterialList /home/kasiram9/public_html/SIA_UAT/application/views/alterpurchaseorder.php 140
ERROR - 2017-07-07 16:27:55 --> Severity: Notice --> Undefined variable: MaterialList /home/kasiram9/public_html/SIA_UAT/application/views/alterpurchaseorder.php 186
ERROR - 2017-07-07 16:28:01 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /home/kasiram9/public_html/SIA_UAT/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-07-07 16:28:04 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:28:04 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:28:31 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:28:31 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:28:44 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 16:28:44 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 16:28:44 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 16:28:44 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 16:28:44 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 16:28:44 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 16:28:44 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:28:44 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:32:54 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 16:32:54 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 16:32:54 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 16:32:54 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 16:32:54 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 16:32:54 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 16:32:54 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:32:54 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:32:59 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 16:32:59 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 16:32:59 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 16:32:59 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 16:32:59 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 16:32:59 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 16:32:59 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 16:32:59 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 22:14:05 --> Severity: Notice --> Undefined variable: RequistionDetails /home/kasiram9/public_html/SIA_UAT/application/views/alterpurchaseorder.php 138
ERROR - 2017-07-07 22:14:05 --> Severity: Notice --> Undefined variable: MaterialList /home/kasiram9/public_html/SIA_UAT/application/views/alterpurchaseorder.php 140
ERROR - 2017-07-07 22:14:05 --> Severity: Notice --> Undefined variable: MaterialList /home/kasiram9/public_html/SIA_UAT/application/views/alterpurchaseorder.php 186
ERROR - 2017-07-07 23:16:03 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /home/kasiram9/public_html/SIA_UAT/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-07-07 23:16:11 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:16:11 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:16:23 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:16:23 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:23:37 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:23:37 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:27:25 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /home/kasiram9/public_html/SIA_UAT/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-07-07 23:28:34 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:28:34 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:29:28 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 23:29:28 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2023
ERROR - 2017-07-07 23:29:28 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 23:29:28 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2024
ERROR - 2017-07-07 23:29:28 --> Severity: Notice --> Undefined offset: 0 /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 23:29:28 --> Severity: Notice --> Trying to get property of non-object /home/kasiram9/public_html/SIA_UAT/application/controllers/purchaseorder.php 2025
ERROR - 2017-07-07 23:29:28 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:29:28 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:30:06 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:30:06 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:30:39 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:30:39 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:37:52 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /home/kasiram9/public_html/SIA_UAT/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-07-07 23:38:09 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:38:09 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:50:37 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:50:37 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:50:56 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:50:56 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /home/kasiram9/public_html/SIA_UAT/application/third_party/dompdf/include/style.cls.php 948
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: Department /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 106
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: SupplierName /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 157
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: AssetStatus /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 210
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: AssetStatus /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 210
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: AssetStatus /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 210
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: AssetStatus /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 210
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: AssetStatus /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 210
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: AssetStatus /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 210
ERROR - 2017-07-07 23:56:18 --> Severity: Notice --> Undefined index: AssetStatus /home/kasiram9/public_html/SIA_UAT/application/views/addasset.php 210
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:22 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:56:33 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:57:25 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /home/kasiram9/public_html/SIA_UAT/system/database/drivers/mysqli/mysqli_result.php 38
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37
ERROR - 2017-07-07 23:58:06 --> Severity: Notice --> Undefined index: RequisitionStatus /home/kasiram9/public_html/SIA_UAT/application/views/requisitionlistapproval.php 37

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -57,7 +57,21 @@ class mrir_model extends CI_Model
return $result;
}
function ViewDistributionList()
{
$subQuery = 'select distinct MR.PONO,REQ.ReqNo,ReqLine.MaterialCode,MM.MaterialName,MM.UOM,
EMP.FirstName,DD.DEPCode,DD.DepartmentName,ReqLine.Quantity as RequestedQty,POL.Quantity as OrderedQuantity
,sum(MD.ActualQuantityReceived) as ActualReceivedqty,sum(MD.QuantityAccepted) as AcceptedQty,REQ.ReqDate from T_PurchaseOrder_LineItem POL left join T_Requestion_Details ReqLine on ReqLine.ReqNo = POL.ReqNo
left join T_Requestion_Master REQ on REQ.ReqNo = ReqLine.ReqNo
join T_MRIR_Master MR on MR.PONO = POL.PONO
join T_MRIR_Details MD on MD.MRIRNO = MR.MRIRNO
left join T_MaterialMaster MM on MM.MaterialCode = ReqLine.MaterialCode
left join T_Employee_Details EMP on EMP.EmpID = REQ.Requestedby
left join T_DepartmentDetails DD on DD.DEPCode = EMP.Departmentcode group by MR.PONO';
$query = $this->db->query($subQuery
);
return $query->result();
}
/* This function is used to list the MRIR value*/
function view_mrir()
{
@ -103,7 +117,7 @@ class mrir_model extends CI_Model
}
/* This function is used to get the MRIR value for edit*/
function edit_mrir($MrirNo)
function edit_mrir($MrirNo)
{
$this->db->distinct();
$this->db->select('TMM.MRIRNO,TMM.PONO,TMM.IGRNO,TMM.Createdon,TMD.ActualQuantityReceived,IGRM.DeliveryChellanOrInvoiceNo,IGRM.DeliveryChellanDate,IGRM.VehicleNo,IGRM.CourierNo,IGRM.CreatedDate,IGRD.QuantityAsPerInvoice,SUPP.SupplierName,SUPP.Address,POMR.PODate,POMR.DeliveryDate,POMR.ServiceDescription,TMD.MaterialCode,MM.MaterialName,MM.UOM,POLT.Quantity,POLT.ReceivedQuantity,ED.FirstName as PORasiedbyName,ED1.FirstName as MRIRRasiedbyName, ED2.FirstName as IGRRasiedbyName,TMM.MRIRStatus');
@ -122,8 +136,10 @@ class mrir_model extends CI_Model
$this->db->join ('tbl_users user2','user2.userid=IGRM.CreatedBy','left');//to get igrraisedby
$this->db->join ('T_Employee_Details ED2','ED2.EmpID = user2.EmpID','left');
$this->db->where('TMM.MRIRNO',$MrirNo);
$this->db->group_by('TMM.MRIRNO,TMD.MaterialCode');
$query = $this->db->get();
$result = $query->result();
$result = $query->result();
// print_r( $this->db->last_query());
return $result;
}

View File

@ -31,23 +31,23 @@ class purchaseorder_model extends CI_Model
*/
function purchaseorderListing($forwhat='')
{
$this->db->distinct();
$this->db->select('POMast.PONO,supp.SupplierName,TotalOrderValue,PODate,Stat.StatusName,Stat.StatusCode,POMast.POType as ReqType,DeliveryDate,DeliverySchedule,DeliveryOption,POMast.CapitalRange');
$this->db->from('T_PurchaseOrder_Master POMast');
$this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID');
$this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status');
$this->db->join('T_PurchaseOrder_LineItem LineItem', 'POMast.PONO = LineItem.PONO');
$this->db->join('T_Requestion_Master Req', 'Req.ReqNo = LineItem.ReqNo');
if($forwhat=='amendment')
{
$this->db->where('POMast.Status',PO_RELEASED);
}
$query = $this->db->get();
//print_r( $this->db->last_query());
$result = $query->result();
return $result;
}
{
$this->db->distinct();
$this->db->select('POMast.PONO,supp.SupplierName,TotalOrderValue,PODate,Stat.StatusName,Stat.StatusCode,POMast.POType as ReqType,DeliveryDate,DeliverySchedule,DeliveryOption,POMast.CapitalRange');
$this->db->from('T_PurchaseOrder_Master POMast');
$this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID');
$this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status');
$this->db->join('T_PurchaseOrder_LineItem LineItem', 'POMast.PONO = LineItem.PONO');
$this->db->join('T_Requestion_Master Req', 'Req.ReqNo = LineItem.ReqNo');
if($forwhat=='amendment')
{
$this->db->where('POMast.Status',PO_RELEASED);
}
$query = $this->db->get();
//print_r( $this->db->last_query());
$result = $query->result();
return $result;
}
/**
* This function is used to get the SupplierID and SupplierName information
@ -488,23 +488,22 @@ function purchaseorderListing($forwhat='')
// This Method to get the Service PO Child Details for Edit the Item
function GetServicePurchaseOrderDetailsForPrint($PONO = '')
{
$subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,Mat.UOM,
Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,ROUND((ServiceTax + EducessTax + SecHigherEducessTax + KrishiKalyantax + SwachhBharattax),2)as Taxamount
,TotalValue,ServiceTax,EducessTax,SecHigherEducessTax,KrishiKalyantax,SwachhBharattax,CostCenterCode ,sup.SupplierName,sup.Address,POMaster.DeliveryAddress,POMaster.DeliveryDate,POMaster.Status,POMaster.PODate,POMaster.PONO,POMaster.ServiceDescription,POMaster.PaymentTerms,POMaster.PaymentDays,POMaster.PayableAT FROM T_PurchaseOrder_LineItem LineItem
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
where LineItem.PONO =?';
$query = $this->db->query($subQuery,array($PONO));
return $query->result();
}
{
$subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,Mat.UOM,
Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,ROUND((ServiceTax + EducessTax + SecHigherEducessTax + KrishiKalyantax + SwachhBharattax),2)as Taxamount
,TotalValue,ServiceTax,EducessTax,SecHigherEducessTax,KrishiKalyantax,SwachhBharattax,CostCenterCode,sup.SupplierName,sup.Address,POMaster.* FROM T_PurchaseOrder_LineItem LineItem
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
where LineItem.PONO =?';
$query = $this->db->query($subQuery,array($PONO));
return $query->result();
}
// This Method to get the Revenue PO Child Details for Edit the Item
function GetRevenuePurchaseOrderDetails($PONO = '')
@ -606,7 +605,9 @@ function GetImportPurchaseOrderDetailsForPDF($PONO = '')
{
$subQuery='SELECT * from T_Currency_Details where Currency_Code=?';
$query=$this->db->query($subQuery,array($Currencycode));
return $query->result();
return $query->result();
}
@ -1113,25 +1114,24 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
// This Method to get the Capital PO Details for pdf
function GetCapitalPurchaseOrderDetailsForPDF($PONO = '')
{
$subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,
Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,
ROUND((ServiceTax + EducessTax + SecHigherEducessTax + KrishiKalyantax + SwachhBharattax),2)as Taxamount
,TotalValue,ServiceTax,EducessTax,SecHigherEducessTax,KrishiKalyantax,SwachhBharattax,CostCenterCode , POMaster.*,sup.SupplierName,sup.Address
FROM T_PurchaseOrder_LineItem LineItem
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
where LineItem.PONO =?';
$query = $this->db->query($subQuery,array($PONO));
return $query->result();
}
{
$subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,
Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,
ROUND((ServiceTax + EducessTax + SecHigherEducessTax + KrishiKalyantax + SwachhBharattax),2)as Taxamount
,TotalValue,ServiceTax,EducessTax,SecHigherEducessTax,KrishiKalyantax,SwachhBharattax,CostCenterCode , POMaster.*,sup.SupplierName,sup.Address
FROM T_PurchaseOrder_LineItem LineItem
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
where LineItem.PONO =?';
$query = $this->db->query($subQuery,array($PONO));
return $query->result();
}
// get requested by details
function GetRequesedByDetails($PONO){
$this->db->select('mast.CreatedBy,re.FirstName,Dept.DEPCode,Dept.DepartmentName');
@ -1177,39 +1177,36 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
//get pdf po requistion details
function GetPdfRequistionDetails($PONO){
$this->db->select('LineItem.ReqNo');
//$this->db->from('T_PurchaseOrder_Master mast');
$this->db->from('T_PurchaseOrder_LineItem LineItem');
// $this->db->from('T_Requestion_Master ReqMast','ReqMast.ReqNo=LineItem.ReqNo');
//$this->db->join('tbl_users tbl','mast.CreatedBy=tbl.userid');
//$this->db->join('T_Employee_Details re','re.EmpID=ReqMast.Requestedby');
//$this->db->join('T_DepartmentDetails Dept', 're.Departmentcode = Dept.DEPCode');
$this->db->where('LineItem.PONO',$PONO);
$result=$this->db->get();
//$result->result()
$ReqNo='';
foreach ($result->result() as $res){
$ReqNo = $res->ReqNo;
$this->db->select('ReqMast.ReqNo,ReqMast.CostCenterCode,re.FirstName,Dept.DEPCode,Dept.DepartmentName');
$this->db->from('T_Requestion_Master ReqMast');
//$this->db->join('tbl_users tbl','mast.CreatedBy=tbl.userid');
$this->db->join('T_Employee_Details re','re.EmpID=ReqMast.Requestedby');
$this->db->join('T_DepartmentDetails Dept', 're.Departmentcode = Dept.DEPCode');
$this->db->where('ReqMast.ReqNo',$ReqNo);
$Reqresult=$this->db->get();
$Details['RequistionNo']= $Reqresult->result()[0]->ReqNo;
$Details['RequestedName']= $Reqresult->result()[0]->FirstName;
$Details['RequestedDept']= $Reqresult->result()[0]->DepartmentName;
$Details['CostCenterCode']= $Reqresult->result()[0]->CostCenterCode;
$ResultArray[]=$Details;
}
$RequistionDetails = $ResultArray;
return $RequistionDetails;
}
function GetPdfRequistionDetails($PONO){
$this->db->select('LineItem.ReqNo');
$this->db->from('T_PurchaseOrder_LineItem LineItem');
$this->db->where('LineItem.PONO',$PONO);
$result=$this->db->get();
$ReqNo='';
foreach ($result->result() as $res){
if($ReqNo==$res->ReqNo){
}
else{
$ReqNo = $res->ReqNo;
$this->db->select('ReqMast.ReqNo,ReqMast.CostCenterCode,re.FirstName,Dept.DEPCode,Dept.DepartmentName');
$this->db->from('T_Requestion_Master ReqMast');
$this->db->join('T_Employee_Details re','re.EmpID=ReqMast.Requestedby');
$this->db->join('T_DepartmentDetails Dept', 're.Departmentcode = Dept.DEPCode');
$this->db->where('ReqMast.ReqNo',$ReqNo);
$Reqresult=$this->db->get();
$Details['RequistionNo']= $Reqresult->result()[0]->ReqNo;
$Details['RequestedName']= $Reqresult->result()[0]->FirstName;
$Details['RequestedDept']= $Reqresult->result()[0]->DepartmentName;
$Details['CostCenterCode']= $Reqresult->result()[0]->CostCenterCode;
$ResultArray[]=$Details;
}
}
$RequistionDetails = $ResultArray;
return $RequistionDetails;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -65,11 +65,8 @@ class storerequistion_model extends CI_Model
*/
function UpdateRequistion($StoreReqNo,$Request)
{
$this->db->where('StoreReqNo',$StoreReqNo);
$this->db->update('T_Store_Requestion_Master',$Request);
$this->db->update('T_Store_Requestion_Master',$Request);
return TRUE;
}
@ -211,7 +208,7 @@ class storerequistion_model extends CI_Model
* This function is used to update the details into Database
* @return array $result : This is result of the query
*/
function UpdateRequistionLineItem($StoreReqNo,$MaterialCode,$Request)
function UpdateRequistionLineItem($Request,$StoreReqNo,$MaterialCode)
{
$this->db->where('StoreReqNo', $StoreReqNo);
$this->db->where('MaterialCode', $MaterialCode);
@ -407,6 +404,15 @@ $this->db->select('StoreReqNo,Sr.CostCenterCode,Cc.CostCenterName
}
function getStoreRequistionStatus($StreReqNo='')
{
$this->db->select('Status');
$this->db->from('T_Store_Requestion_Master Sr');
$this->db->where('StoreReqNo',$StreReqNo);
$query = $this->db->get();
return $query->result();
}
function UpdateStoreRequistionItem($Items,$ReqNo,$MaterialCode)
{

View File

@ -1,13 +1,4 @@
<span style='color: #900'>13,312 KB</span> <span style='color: #090'>151.9060 ms</span><br /><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: explode() expects parameter 2 to be string, array given</p>
<p>Filename: include/style.cls.php</p>
<p>Line Number: 948</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<span style='color: #900'>12,032 KB</span> <span style='color: #090'>191.4020 ms</span><br /><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>

View File

@ -70,10 +70,10 @@
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditAmendPO?PONO='.$record->PONO.'&ReqType='.$record->ReqType; ?>" ><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a>
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditAmendPO?PONO='.$record->PONO.'&ReqType='.$record->ReqType.'&CapitalRange='.$record->CapitalRange; ?>" ><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a>
<a data-toggle="tooltip" href="<?php echo base_url().'EditAmendPO?PONO='.$record->PONO.'&ReqType='.$record->ReqType; ?>"> &nbsp;&nbsp;&nbsp; <a data-toggle="tooltip" href="<?php echo base_url().'purchaseorder/CreatePOPrint?PONO='.$record->PONO.'&ReqType='.$record->ReqType; ?>"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<a data-toggle="tooltip" href="<?php echo base_url().'EditAmendPO?PONO='.$record->PONO.'&ReqType='.$record->ReqType.'&CapitalRange='.$record->CapitalRange; ?>"> &nbsp;&nbsp;&nbsp; <a data-toggle="tooltip" href="<?php echo base_url().'purchaseorder/CreatePOPrint?PONO='.$record->PONO.'&ReqType='.$record->ReqType; ?>"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<?php
}?>
</tr>

View File

@ -153,7 +153,7 @@ if(!empty($MRIRDetails))
<label for="IGRRasiedbyName">IGR Rasied By</label>
<div class="form-group">
<?php
$data = array('name' => 'IGRRaisedBy','value' => set_value('IGRRaisedBy',$PORasiedbyName),'id'=>'IGRRaisedBy', 'class' => 'form-control' ,'readonly' => 'true');
$data = array('name' => 'IGRRaisedBy','value' => set_value('IGRRaisedBy',$IGRRasiedbyName),'id'=>'IGRRaisedBy', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>

View File

@ -0,0 +1,274 @@
<?php
//print_r($AppList);
?>
<style>
.table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {border: 1px solid #333;}
</style>
<div class="content-wrapper">
<section class="content">
<div>
<center><b><h2> SIA - Material Distribution List </h2></b></center>
<?php
$attributes = array('class' => 'form-label-left Approve ','name' => 'Approve','id' => 'Approve');
echo form_open($this->config->base_url().'requisitionform/SearchRequistList',$attributes); ?>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
</div>
</div>
<br/>
<table id="Requisition" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<div align="right" style="padding-right:10px">
<div id="content" > </div>
<thead style="background-color:#ddf">
<tr>
<th>Purchase Order Number</th>
<th>Requisition Number</th>
<th>Requested By</th>
<th>Requested Department</th>
<th>Requested Date</th>
<th>Material Code</th>
<th>Material Name</th>
<th>UOM</th>
<th>Requested Qty</th>
<th>Ordered Quantity</th>
<th>Accepted Quantity </th>
<th>Remarks</th>
<th>Action</th>
</tr>
</thead>
<tbody id="ApprovalList">
<?php
if(!empty($Distribution))
{
$index = 0;
foreach($Distribution as $record)
{
$index = $index +1;
?>
<tr id="<?php echo $index ?>" >
<td><a data-toggle="modal" data-target="#myModal" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><u><?php echo $record->PONO ?></u></a></td>
<td><?php echo $record->ReqNo ?></td>
<td><?php echo $record->FirstName ?></td>
<td><?php echo $record->DepartmentName ?></td>
<td align="right"><?php $Cdt = new DateTime($record->ReqDate);
$CreatedDate = $Cdt->format('d-m-Y');
echo $CreatedDate;
?></td>
<td><?php echo $record->MaterialCode ?></td>
<td><?php echo $record->MaterialName ?></td>
<td><?php echo $record->UOM ?></td>
<td><?php echo $record->RequestedQty ?></td>
<td><?php echo $record->OrderedQuantity ?></td>
<td><?php echo $record->AcceptedQty ?></td>
<td contenteditable="true"><input type="text" id="Remarks<?php echo $index ?>" name="Remarks<?php echo $index ?>"class="form-control" maxlength="100"></td>
<td data-name="sel" contenteditable="true" id="Action<?php echo $index ?>" onchange="saveToDatabase(this,'question','<?php echo $record->ReqNo ; ?>','<?php echo $index ; ?>')">
<select name="status<?php echo $index ?>" id="status<?php echo $index ?>">
<option value="1">Select Action</option>
<option value="2">Ready For Dispatch</option>
<option value="3">Dispatched</option>
</select>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<br>
</div>
</div>
</section>
</div>
<script>
var startDate = '';
var endDate = '';
function Reset()
{
$('#RequisitionStatus').val("-1");
$('#SearchDate').val('');
}
$("#myModal").on("shown.bs.modal", function(e) {
var ReqId = $(e.relatedTarget).data('userid');
$("#CostCenter").val('');
$("#tbleAppend").empty();
$("#ReqType").val('');
$("#ReqBy").val('');
$("#ReqDate").val('');
$("#Desigination").val('');
$("#AvlBudgetAmount").val('');
$('#AlertImg').attr("style","display:none;");
$('#content').loader('show');
$.ajax({
data:{id:ReqId},
type:"POST",
dataType: 'json',
url:"<?php echo base_url() ?>requisitionform/ViewRequest",
success:function(json) {
// success:function(data) {
$('#content').loader('hide');
//alert(data);
$("#ReqType").val(json.Requist[0]['ReqType']);
$("#ReqBy").val(json.Requist[0]['Requestedby']);
$("#ReqDate").val(json.Requist[0]['CreatedDate']);
$("#Desigination").val(json.Requist[0]['Designation']);
$("#CostCenter").val(json.Requist[0]['CostCenterCode']);
$("#AvlBudgetAmount").val(json.AvilBudAmount);
$("#tbleAppend").append(json.Items);
}
});
});
function saveToDatabase(editableObj,column,ReqId,Index) {
var id = $('#Remarks'+Index).val();
var Status = $('#status'+Index).val();
var StatusCode = '<?php echo REQ_APPROVED; ?>';
var strMsg = 'Do you want to Approve the Requisition?';
if(Status == '3')
{
StatusCode = '<?php echo REQ_REJECTED; ?>';
strMsg = 'Do you want to Reject the Requisition?'
}
var Remarks = $('#Remarks'+Index).val();
if(Status == '3' && Remarks == '')
{
alert('Please enter remarks');
$('#status'+Index).val('1');
return false;
}
var answer = confirm(strMsg);
if (answer)
{
$('#content').loader('show');
$.ajax({
data:{id:id},
type:"POST",
url:"<?php echo base_url() ?>requisitionform/ApproveRequest?Status="+StatusCode+"&ReqNo="+ReqId,
success:function(data) {
if(data)
{
$('#content').loader('hide');
alert(data);
location.reload();
}
else
{
alert("Error");
}
}
});
}
else
{
return;
}
}
$(function() {
var d = new Date();
var month = d.getMonth();
var day = d.getDate();
var year = d.getFullYear() ;
var SIAStartYear = year - 2015;
var mindt = year-70;
var maxdt = year-15;
$( ".datePicker" ).datepicker(
{
minDate : new Date(year-SIAStartYear,1,1),
maxDate :'now',
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,
}
);
//$('#SearchDate').daterangepicker( );
//Initialize Select2 Elements
$(".select2").select2();
//$('#SearchDate').val('');
$('#SearchDate').daterangepicker(
{
locale: {
format: 'DD-MM-YYYY'
},
showDropdowns: true
},
function(start, end, label) {
startDate = start.format('DD-MM-YYYY');
endDate = end.format('DD-MM-YYYY');
$('#FromDate').val(startDate);
$('#ToDate').val(endDate);
//alert("A new date range was chosen: " + start.format('DD-MM-YYYY') + ' to ' + end.format('DD-MM-YYYY'));
});
});
$(function () {
$('#Requisition').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true
});
});
</script>

View File

@ -1,113 +0,0 @@
<!-- In this purchase order listing , datatable is used for sorting , pagination and etc.. , new design is used for table fro the theme-->
<style>
.pagination {
margin:0px !important;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<center><h3 class="box-title">Siddharth Industries - Purchase Order List</h3></center>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr bgcolor="LightSlateGray ">
<th>#</th>
<th>PONO#</th>
<th>PO Type</th>
<th>PO Date</th>
<th>Supplier Name</th>
<th>Total Order Value</th>
<th>PO Status</th>
<th>Delivery Option</th>
<th>Delivery Date</th>
<th>Delivery Schedule</th>
<th>Action</th>
</tr>
</thead>
<tbody><?php
if(!empty($POData))
{
$index = 0;
foreach($POData as $record)
{
$index = $index + 1;
?>
<tr id="<?php echo $index ; ?>">
<td align="left"><?php echo $index ; ?></td>
<td><?php echo $record->PONO ?></td>
<td><?php echo $record->ReqType ?></td>
<td align="right"><?php $Pdt = new DateTime($record->PODate);
$PODate = $Pdt->format('d-m-Y');
echo $PODate
?></td>
<td><?php echo $record->SupplierName ?></td>
<td align="right"><?php echo $record->TotalOrderValue ?></td>
<td><?php echo $record->StatusName ?></td>
<td><?php $option = 'By Deliver Date';
if($record->DeliveryOption == 1){
$option = "By Schedule" ; }
echo $option ?></td>
<td align="right"><?php
$Ddt = new DateTime($record->DeliveryDate);
$Deliverydt = $Ddt->format('d-m-Y');
if($record->DeliveryOption == 1){$Deliverydt = '';}
echo $Deliverydt ?></td>
<td><?php echo $record->DeliverySchedule ?></td>
<?php $statusCode = $record->StatusCode;
if($statusCode == PO_DRAFT)
{?>
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditPO?PONO='.$record->PONO.'&ReqType='.$record->ReqType.'&CapitalRange='.$record->CapitalRange; ?>" ><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<?php
} else {?>
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditPO?PONO='.$record->PONO.'&ReqType='.$record->ReqType.'&CapitalRange='.$record->CapitalRange; ?>"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> &nbsp;&nbsp;&nbsp; <a data-toggle="tooltip" href="<?php echo base_url().'purchaseorder/CreatePOPrint?PONO='.$record->PONO.'&ReqType='.$record->ReqType; ?>"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<?php
}?>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>
$(function () {
$('#example1').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
</script>

View File

@ -87,7 +87,7 @@ $(function() {
<?php
$Costs = array("0"=>'Select Cost Center Name');
$Costs = array("-1"=>'Select Cost Center Name');
//print_r( $options);
if(!empty($cost))
@ -99,7 +99,7 @@ $(function() {
endforeach;
}
echo form_dropdown('CostCenter', $Costs,set_value('CostCenter'),'id="CostCenter"' ,'class="form-control select2"' ,'readonly="true"','required="true"');
echo form_dropdown('CostCenter', $Costs,set_value('CostCenter'),'id="CostCenter"' ,'class="form-control select2"' );
?>
</div>
@ -120,7 +120,7 @@ $(function() {
<table class="table table-bordered" style="border:1px solid #333">
<div align="right" style="padding-right:10px">
<div align="right">
<a onclick="return validateBeforeAdd();" class="btn btn-primary">Add Line Item</a>
<a onclick="openmodal()" class="btn btn-primary">Add Line Item</a>
<!-- Add line Item -->
<div class="modal fade" id="mypo" role="dialog">
<div class="modal-dialog">
@ -129,7 +129,7 @@ $(function() {
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<center><h4>Add Line Item </h4></center>
<center><h4>Add Requistion </h4></center>
</div>
<div align="left">
@ -137,7 +137,7 @@ $(function() {
<label>Material Code</label>
<div >
<?php
$options = array("0"=>'Material Code');
$options = array("-1"=>'Material Code');
//print_r( $options);
if(!empty($MaterialList))
@ -224,7 +224,7 @@ $(function() {
<label>Material Code</label>
<div >
<?php
$options = array("0"=>'Material Code');
$options = array("-1"=>'Material Code');
//print_r( $options);
if(!empty($MaterialList))
@ -445,14 +445,28 @@ $("#UOM").val('');
input.value = value;
theForm.append(input);
}
$("#mypo").on("shown.bs.modal", function(e) {
if($("option:selected", $("#CostCenter")).val() == '-1')
function openmodal()
{
if($("option:selected", $("#CostCenter")).val() == '-1')
{
alert('Please select the CostCenter ');
e.close();
$("#CostCenter").focus();
return false;
}
});
else if($('#Date').val() == '')
{
alert('Please Enter the Requested Date ');
$("#Date").focus();
return false;
}
else
{
$('#mypo').modal('show');
}
}
var index=1;
$('.addClick').click(function()

View File

@ -18,6 +18,16 @@ if(!empty($CompanyDetails))
$CompanyAddress = $Req->Address;
}
}
if(!empty($INRSYMBOL))
{
foreach($INRSYMBOL as $INRS)
{
$INRSYM=$INRS->FontCode2000;
}
}
?>
<style>
@ -268,6 +278,7 @@ var SelectedMaterialList = {
$('#txtPackaging').attr('readonly', 'true');
$('#txtPackaging').val('0.00');
$('#txtAfterPackaging').val('0.00');
}
else
{
@ -311,6 +322,7 @@ var SelectedMaterialList = {
$('#txtFreight').attr('readonly', 'true');
$('#txtFreight').val('0.00');
$('#txtAfterFreight').val('0.00');
}
else
@ -633,11 +645,11 @@ function calculatePackaging(isEdit)
var basicValue = parseFloat($('#txtBasicValue').val());
if($('#txtExciseDuty').val() != '' && $('#txtExciseDuty').val() != '0')
if($('#txtExciseDuty').val() != '' && $('#txtExciseDuty').val() != '0' && ExciseCalculation!='')
{
var AfterExciseDuty = 0.0;
var ExciseDuty = parseFloat($('#txtExciseDuty').val());
if(ExciseCalculation == '0')
{
AfterExciseDuty = <?php echo EXCISE_ONBASICVALUE; ?>;
@ -706,8 +718,9 @@ function calculatePackaging(isEdit)
}
}
calculateVat(0);
calculateCST(0);
calculateVat(0);
calculateCST(0);
calculateTotalValue();
}
else
@ -827,7 +840,34 @@ function calculatePackaging(isEdit)
$('#Rate').focus();
$('#txtVat').val('');
return false;
}
}
else if($('#txtAfterDiscount').val() == '')
{
// alert('Please Enter the Rate value');
$('#txtDiscount').focus();
$('#txtVat').val('');
return false;
}
else if($('#txtAfterPackaging').val() == '')
{
//alert('Please Enter the Rate value');
$('#txtPackaging').focus();
$('#txtVat').val('');
return false;
}
else if($('#txtAfterExciseDuty').val() == '')
{
//alert('Please Enter the Rate value');
$('#txtExciseDuty').focus();
$('#txtVat').val('');
return false;
}
else
{
@ -971,7 +1011,31 @@ function calculatePackaging(isEdit)
$('#Rate').focus();
$('#txtCST').val('');
return false;
}
}
else if($('#txtAfterDiscount').val() == '')
{
// alert('Please Enter the Rate value');
$('#txtDiscount').focus();
$('#txtCST').val('');
return false;
}
else if($('#txtAfterPackaging').val() == '')
{
//alert('Please Enter the Rate value');
$('#txtPackaging').focus();
$('#txtCST').val('');
return false;
}
else if($('#txtAfterExciseDuty').val() == '')
{
//alert('Please Enter the Rate value');
$('#txtExciseDuty').focus();
$('#txtCST').val('');
return false;
}
else
{
@ -1403,8 +1467,18 @@ function calculatePackaging(isEdit)
function SetExciseCalculation()
{
ExciseCalculation = $("input:radio[name='optExcise']:checked").val();
$('#ExciseDutyCalModel').modal('hide');
$('#ExciseDutyCalModel').modal('hide');
calculateExcise($('#isEdit').val());
}
function SetExciseCalculationCancel()
{
$('#txtExciseDuty').val('');
$('#txtAfterExciseDuty').val('');
}
/* Set the Packaging calculation option for calculating Packaging */
function SetVatorCST()
@ -1506,6 +1580,8 @@ function calculatePackaging(isEdit)
calculateFreight(isEdit);
}
@ -1545,11 +1621,12 @@ function calculatePackaging(isEdit)
var Insurance = $('#txtEditInsurance').val() == '' ? '0.00' : $('#txtEditInsurance').val();
var Discount = $('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').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);
var tot = parseFloat(totvalue).toFixed(2);
$('#txtEditRevenueTotalOrderValue').val(tot);
// validateEditExceedLimit();
}
@ -2082,7 +2159,7 @@ function populateValueMainFormForDeleteItem(rowid)
</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>
<a data-toggle="modal" onclick="showmodel();" class=" btn btn-primary"> Select Line Item </a>
</div>
</div>
</div>
@ -2146,7 +2223,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
<div class="modal-footer">
<a class="btn btn-primary" ID="ExciseOption" onclick="SetExciseCalculation();" style="margin-top: -24px;">&nbsp;&nbsp;<span class="bold">Ok</span></a>
<a class="btn btn-primary" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
<a class="btn btn-primary" data-dismiss="modal" onclick="SetExciseCalculationCancel();" style="margin-top: -24px;" value="Cancel">Cancel</a>
</div>
</div>
@ -2307,7 +2384,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Rate</label>
<label><?php echo "Rate In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'EditRate','value' => set_value('EditRate'),'id'=>'EditRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange()' );
@ -2316,7 +2393,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Basic Amount</label>
<label><?php echo "Basic Amount In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditBasicValue','value' => set_value('txtEditBasicValue'),'id'=>'txtEditBasicValue', 'class' => 'form-control num' ,'readonly' => 'true');
@ -2325,7 +2402,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
</div>
<div class="col-md-12" style="border:1px solid">
<div class="col-md-12">
<br/>
<div class="col-md-12">
<div class="col-md-5 col-md-offset-4" align="right">
@ -2415,7 +2492,7 @@ function populateValueMainFormForDeleteItem(rowid)
<div class="col-md-12">
<div class="col-md-5 col-md-offset-4" align="right">
Total Order value :
<?php echo "Total Order Amount In ($INRSYM)";?>
</div>
<div class="col-md-3">
<div class="form-group">
@ -2433,8 +2510,8 @@ function populateValueMainFormForDeleteItem(rowid)
<br/>
<br/>
<div class="modal-footer">
<a class="btn btn-primary font EditService" ID="Edit" style="margin-top: -24px;">&nbsp;&nbsp;<span class="bold">Update Service</span></a>
<a class="btn btn-primary" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
<a class="btn btn-primary font EditService" ID="Edit" >&nbsp;&nbsp;<span class="bold">Update Service</span></a>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div>
@ -2505,7 +2582,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Rate</label>
<label><?php echo "Rate In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()' );
@ -2514,7 +2591,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Basic Amount</label>
<label><?php echo "Basic Amount In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtBasicValue','value' => set_value('txtBasicValue'),'id'=>'txtBasicValue', 'class' => 'form-control num' ,'readonly' => 'true');
@ -2772,7 +2849,7 @@ function populateValueMainFormForDeleteItem(rowid)
<div class="row">
<div class="col-md-12" >
<div class="col-md-4" align="right"> <label>Total Order Amount :</label></div>
<div class="col-md-4" align="right"> <label><?php echo "Total Order Amount In ($INRSYM)";?></label></div>
<div class="col-md-4 ">
<div class="form-group">
<?php
@ -2876,7 +2953,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-3">
<label>Rate</label>
<label><?php echo "Rate In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'ServiceRate','value' => set_value('ServiceRate'),'id'=>'ServiceRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange()');
@ -2885,7 +2962,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-3">
<label>Basic Amount</label>
<label><?php echo "Basic Amount In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'ServiceBasAmt','value' => set_value('ServiceBasAmt'),'id'=>'ServiceBasAmt', 'class' => 'form-control num' ,'readonly' => 'true');
@ -3003,7 +3080,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
<div class="col-md-6 col-md-offset-6" >
<label>Total Order value</label>
<label><?php echo "Total Order Amount In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'TotalOrderValue','value' => set_value('TotalOrderValue'),'id'=>'TotalOrderValue', 'class' => 'form-control num' ,'placeholder' => 'Total value','readonly' => 'true');
@ -3133,7 +3210,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Rate </label>
<label><?php echo "Rate In ($INRSYM)";?> </label>
<div class="form-group">
<?php
$data = array('name' => 'imRate','value' => set_value('imRate'),'id'=>'imRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' );
@ -3142,7 +3219,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Basic Amount </label>
<label><?php echo "Basic Amount In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control num' ,'readonly' => 'true');
@ -3592,7 +3669,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Rate </label>
<label><?php echo "Rate In ($INRSYM)";?> </label>
<div class="form-group">
<?php
$data = array('name' => 'imRate','value' => set_value('imRate'),'id'=>'imRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' );
@ -3601,7 +3678,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Basic Amount </label>
<label><?php echo "Basic Amount In ($INRSYM)";?> </label>
<div class="form-group">
<?php
$data = array('name' => 'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
@ -4082,7 +4159,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Rate</label>
<label><?php echo "Rate In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'EditRevenueRate','value' => set_value('EditRate'),'id'=>'EditRevenueRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Editchange()','style'=>'text-align:right;' );
@ -4091,7 +4168,7 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
<div class="col-md-2">
<label>Basic Amount</label>
<label><?php echo "Basic Amount In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditRevenueBasicValue','value' => set_value('txtEditBasicValue'),'id'=>'txtEditRevenueBasicValue', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
@ -4353,7 +4430,7 @@ function populateValueMainFormForDeleteItem(rowid)
<div class="row">
<div class="col-md-12" >
<div class="col-md-4" align="right"> <label>Total Order Amount :</label></div>
<div class="col-md-4" align="right"> <label><?php echo "Total Order Amount In ($INRSYM)";?></label></div>
<div class="col-md-4">
<div class="form-group">
<?php
@ -5154,7 +5231,7 @@ function populateValueMainFormForDeleteItem(rowid)
}
else
{
alert('Please select the Request Type ');
// alert('Please select the Request Type ');
}
});
@ -5830,7 +5907,7 @@ $('#content').loader('hide');
var SwachhTaxAmount = parseFloat($('#EditAfterSwachhTax').val());
var TotAmt = basicValue + ServiceTaxAmount+ EduCessTaxAmount + SecHighTaxAmount+ KrishiTaxAmount + SwachhTaxAmount;
alert(TotAmt);
$('#EditTotalOrderValue').val( parseFloat(TotAmt).toFixed(2));
}
@ -6068,7 +6145,8 @@ $('#content').loader('hide');
paymentDateOptions="After";
}
var workStatus=$('#workstatusValue').val();
if(validate())
{
@ -6078,7 +6156,9 @@ $('#content').loader('hide');
$('#Deliverydt').focus();
return false;
}
else if($('#AvalBuget').val() < TextTotalOrderValueSummaryService) {
else if(parseInt($('#AvalBuget').val()) < parseInt(TextTotalOrderValueSummaryService)) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
@ -6159,7 +6239,7 @@ $('#content').loader('hide');
$('#Deliverydt').focus();
return false;
}
else if($('#AvalBuget').val() < txtTotalOrderValueSummary) {
else if(parseInt($('#AvalBuget').val()) < parseInt(txtTotalOrderValueSummary)) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
@ -6399,10 +6479,10 @@ $('#content').loader('hide');
RequistQuantity = $('#quantity'+userid).val();
$('#txtEditDiscount').val($('#DisVal'+userid).val());
$('#txtEditAfterDiscount').val($('#AfterDisVal'+userid).val());
$('#txtEditVat').val($('#VatVal'+userid).val());
$('#txtEditAfterVat').val($('#AfterVatVal'+userid).val());
$('#txtEditCST').val($('#CSTVal'+userid).val());
$('#txtEditAfterCST').val($('#AfterCSTVal'+userid).val());
$('#txtEditVat').val($('#VatVal'+userid).val() == '' ? '0.00' : $('#VatVal'+userid).val());
$('#txtEditAfterVat').val($('#AfterVatVal'+userid).val() == '' ? '0.00' : $('#AfterVatVal'+userid).val());
$('#txtEditCST').val($('#CSTVal'+userid).val() == '' ? '0.00' : $('#CSTVal'+userid).val());
$('#txtEditAfterCST').val($('#AfterCSTVal'+userid).val() == '' ? '0.00' : $('#AfterCSTVal'+userid).val());
$('#txtEditPackaging').val($('#PackVal'+userid).val());
$('#txtEditAfterPackaging').val($('#AfterPackVal'+userid).val());

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,7 @@
$PaymentDays='';
$PayableAT='';
$PaymentTerms='';
$DeliverySchedule='';
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $CO)
@ -40,8 +41,15 @@
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y');
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
if($PO->DeliveryOption=='1'){
$DeliveryDate = '';
$DeliverySchedule = $PO->DeliverySchedule;
}
else{
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
$DeliverySchedule = '';
}
$ServiceDescription =$PO->ServiceDescription;
$CostCenterCode=$PO->CostCenterCode;
@ -81,26 +89,34 @@
.pagenum:before { content: counter(page); }
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div class="header">
<div><center><h2>CAPITAL PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a></center></div>
<div align="right">
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div>This is Draft Version For Internal Purpose</div>';
}
<div class="header">
<table>
<tr>
<td>
<img width="80" height="80" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg==">
</td>
<td><center><h2>CAPITAL PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a><br/><b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></center></td>
<td>
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div><br/><br/>This is Draft Version For Internal Purpose</div>';
}
?>
<?php echo $Podt?>
</div>
<p> <b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></p>
<p align="right">Payment Terms :<?php echo $PaymentTerms;?><br/> Payable At:<?php echo $PayableAT;?><br/> Payment Days:<?php echo $PaymentDays;?><br/>Delivery Date :<?php echo $DeliveryDate;?></p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
?>
</td>
</tr>
</table>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr><th>Payment Terms</th><th>Payable At</th><th>Payment Days</th><th>Delivery Date/Schedule</th><th>PO Date</th></tr>
<tr><td><?php echo $PaymentTerms;?></td><td><?php echo $PayableAT;?></td><td><?php echo $PaymentDays;?></td><td><?php echo $DeliveryDate.$DeliverySchedule;?></td><td><?php echo $Podt?></td></tr>
</table>
<br/><br/>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr>
<td>
<a style="color:#3c8dbc">Vendor Address :</a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?>
@ -111,19 +127,30 @@
</td>
</tr>
</table>
<br/>
<br/>
<div class="page">
</div>
<div class="page" style="font-size:12px;">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<tr style="background:#8c8c8c;color:#fff;">
<th>#</th>
<th>Item and Description</th>
<th>Qty</th>
<?php if($currencyName!='INR'){ ?>
<th>Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
<?php
} else{
?>
<th>Rate Per Unit in <?php echo "$currencyName";?></th><?php } ?>
<?php if($currencyName!='INR'){ ?>
<th>Total Amount in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
<?php
} else{
?>
<th>Total Amount in <?php echo "$currencyName"; ?></th> <?php } ?>
</tr>
<?php
@ -165,18 +192,23 @@
<br>
<br>
<div align="right">
<?php if($currencyName!='INR'){ ?>
<p><b>Total Order Amount in <?php echo "$currencyName"."("."$currencyCode".")"?>:<?php echo number_format($TotalOrderValue,2);?><b></p>
<?php
} else{
<p>Total Order Amount in <?php echo "$currencyName"."("."$currencyCode".")"?>:<?php echo number_format($TotalOrderValue,2);?></p>
?>
<p><b>Total Order Amount in <?php echo "$currencyName"; ?>:<?php echo number_format($TotalOrderValue,2);?><b></p>
<?php } ?>
<table>
<tr>
<td>Total Amount In Words:</td>
<td><?php echo $TotalAmountInWords." "."Only.";?></td>
<td><b>Total Amount In Words:</b></td>
<td><b><?php echo $TotalAmountInWords." "."Only.";?></b></td>
</tr>
</table>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<tr style="background:#8c8c8c;color:#fff;">
<th>Requistion Number</th>
<th>Requested by</th>
@ -218,7 +250,9 @@
<div align="Left"> <b>Service Description:</b><br/><br/><?php echo $ServiceDescription;?></div></p>
<?php
if(!empty($releasedetails)){
$releasedOn = '';
foreach($releasedetails as $detail){
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
?>
<table width="200%">
@ -228,7 +262,11 @@
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td><?php echo $detail->ReleasedOn;?></td>
<td><?php echo $releasedOn->format('d-m-Y');?></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<?php

View File

@ -1,253 +0,0 @@
<?php
$PONO = '';
$postatus ='';
$CompanyAddress = '';
$CompanyName = '';
$SuplierName = '';
$SuplierAddress = '';
$DeliveryAddress = '';
$Podt = '';
$DeliveryDate ='';
$ServiceDescription = '';
$index=0;
$PaymentDays='';
$PayableAT='';
$PaymentTerms='';
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $CO)
{
$CompanyName = $CO->CompanyName;
$CompanyAddress = $CO->Address;
}
}
if(!empty($POItem))
{
foreach ($POItem as $PO)
{
$ReqNo=$PO->ReqNo;
$PONO = $PO->PONO;
$postatus= $PO->Status;
$SuplierName = $PO->SupplierName;
$SuplierAddress = $PO->Address;
$DeliveryAddress = $PO->DeliveryAddress;
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y');
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
$ServiceDescription =$PO->ServiceDescription;
$CostCenterCode=$PO->CostCenterCode;
$PaymentTerms=$PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
$PayableAT=$PO->PaymentTerms;
}
}
$currencyCode ='';
$currencyName='';
if(!empty($CurrencySymbol))
{
foreach ($CurrencySymbol as $Curr)
{
$currencyCode = $Curr->FontCode2000;
$currencyName = $Curr->Currency_Code;
}
}
?>
<style>
@page { margin: 310px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -310px; right: 0px; height: 550px;text-align: center; }
.footer { position: fixed; bottom: 0px; }
.pagenum:before { content: counter(page); }
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div class="header">
<div><center><h2>CAPITAL PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a></center></div>
<div align="right">
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div>This is Draft Version For Internal Purpose</div>';
}
?>
<?php echo $Podt?>
</div>
<p> <b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></p>
<p align="right">Payment Terms :<?php echo $PaymentTerms;?><br/> Payable At:<?php echo $PayableAT;?><br/> Payment Days:<?php echo $PaymentDays;?><br/>Delivery Date :<?php echo $DeliveryDate;?></p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr>
<td>
<a style="color:#3c8dbc">Vendor Address :</a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?>
</td>
<td>
<a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?>
</td>
</td>
</tr>
</table>
<br/>
<br/>
<div class="page">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<th>#</th>
<th>Item and Description</th>
<th>Qty</th>
<th>Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
<th>Total Amount in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
</tr>
<?php
if(!empty($POItem))
{
$TotalOrderValue=0;
$index=0;
$BasicValue=0;
foreach($POItem as $record)
{
$index = $index + 1;
?>
<tr>
<td><?php echo $index ; ?></td>
<td><?php echo $record->MaterialName ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->Rate ; ?></td>
<td align="right"><?php $BasicValue=($record->Quantity*$record->Rate);
echo number_format($BasicValue,2) ; ?></td>
</tr>
<?php
$TotalOrderValue = $TotalOrderValue+$BasicValue;
}
}
?>
</table>
<br>
<br>
<div align="right">
<p>Total Order Amount in <?php echo "$currencyName"."("."$currencyCode".")"?>:<?php echo number_format($TotalOrderValue,2);?></p>
<table>
<tr>
<td>Total Amount In Words:</td>
<td><?php echo $TotalAmountInWords." "."Only.";?></td>
</tr>
</table>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<th>Requistion Number</th>
<th>Requested by</th>
<th>Requested Department</th>
<th>Cost center</th>
</tr>
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<tr>
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
<td><?php echo $ReqDetails['RequestedName']; ?></td>
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
</tr>
<?php
}
}
?>
</table>
<br/>
<br/>
<br>
<br>
<p>
<div align="Left"> <b>Service Description:</b><br/><br/><?php echo $ServiceDescription;?></div></p>
<?php
if(!empty($releasedetails)){
foreach($releasedetails as $detail){
?>
<table width="200%">
<tr>
<td><b>ReleasedBy:</b></td>
<td><b>ReleasedOn:</b></td>
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td><?php echo $detail->ReleasedOn;?></td>
</tr>
</table>
<?php
}
}
else {
?>
<table width="200%">
<tr>
<td><b>Till Release State:</b></td>
</tr>
</table>
<?php } ?>
</div>
</div>

View File

@ -878,8 +878,8 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-6" align="right"> <label>Total Amount :</label></div>
<div class="col-md-6">
<div class="col-md-6" style="display:none;" align="right"> <label>Total Amount :</label></div>
<div class="col-md-6" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'txtTotalOrderValue','value' => set_value('txtTotalOrderValue'),'id'=>'txtTotalOrderValue', 'class' => 'form-control' ,'readonly' => 'true');
@ -1419,8 +1419,8 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-6" align="right"> <label>Total Amount :</label></div>
<div class="col-md-6">
<div class="col-md-6" align="right" style="display:none;"> <label>Total Amount :</label></div>
<div class="col-md-6" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'EdittxtTotalOrderValue','value' => set_value('EdittxtTotalOrderValue'),'id'=>'EdittxtTotalOrderValue', 'class' => 'form-control' ,'readonly' => 'true');
@ -2185,7 +2185,7 @@ document.getElementById("Date").checked = true;
var Rmc = $('#RMCIncludingCustomers').val();
var Quanty =$('#CPQuantity').val();
var BasicAmt = $('#CPTotalAmount').val();
var perKg = Rmc * Quanty * BasicAmt;
var perKg = parseFloat(BasicAmt).toFixed(2);
$('#txtTotalOrderValue').val(perKg);
@ -3291,7 +3291,7 @@ function DeleteRow(rowid)
$('#txtEditInsurance').val($('#RMCIncludingCustomers'+userid).val());
$('#EditRMCIncludingCustomers').val($('#ServiceTotalOrderValue'+userid).val());
$('#EdittxtTotalOrderValue').val($('#ServiceTotalOrderValue'+userid).val());
$('#EdittxtTotalOrderValue').val($('#PerKgExpense'+userid).val());
/* get % value */
@ -3623,7 +3623,7 @@ function clearAfterAddLineItemAdd(){
var Rmc = $('#EditRMCIncludingCustomers').val();
var Quanty =$('#EditCPQuantity').val();
var BasicAmt = $('#EditCPTotalAmount').val();
var perKg = Rmc * Quanty * BasicAmt;
var perKg = parseFloat(BasicAmt).toFixed(2);
$('#EdittxtTotalOrderValue').val(perKg);

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,9 @@
$MaxPoDate = '';
$AvlAmount = 0;
$currentCurrencyType='';
$exchangeRate = $ExchangeRate;
// if(!empty($ExchangeRate))//{
//print_r($ExchangeRate);
$exchangeRate = $ExchangeRate;//}
$TotalLanding=0;
$tothighseas=0;
@ -103,7 +105,6 @@ if(!empty($AvlBudAmt))
$AvlAmount = $AvlBudAmt;
}
?>
<style>
.modal
@ -151,11 +152,16 @@ window.onload = function()
document.getElementById('ExchangeRateOnDiv').style.display = 'none';
document.getElementById('ExchangeRateOnDiv').style.display = 'none';
document.getElementById('ExchangeRateDiv').style.display = 'none';
document.getElementById('currencyTypeDiv').style.display = 'none';
document.getElementById('ExchangeRateModalDiv').style.display = 'none';
document.getElementById('ExchangeRateModalEditDiv').style.display = 'none';
document.getElementById('ExchangeRateDiv').style.display = 'none';
document.getElementById('currencyTypeDiv').style.display = 'none';
document.getElementById('ExchangeRateModalDiv').style.display = 'none';
document.getElementById('ExchangeRateModalEditDiv').style.display = 'none';
document.getElementById('HideImportTaxTotal').style.display = 'none';
document.getElementById('ModalImportTaxHide').style.display = 'none';
document.getElementById('EditModalImportTaxHide').style.display = 'none';
capitalType='Domestic';
@ -223,7 +229,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div style="border:2px solid #333">
<div class="col-md-12">
<center><b><h2>Siddharth Industries - Edit Capital Purchase Order:- <?php echo $PONO;?>- for Amendment </h2></b></center>
<center><b><h2>Siddharth Industries - Edit Capital Purchase Order:- <?php echo $PONO;?> -For Amendment</h2></b></center>
<!-- <div class="col-md-1"><br/>
<a class="btn btn-info" href="<?php echo base_url(); ?>purchaseorder/CreatecapitalPOPrint" target="_blank">Print</a>
@ -518,11 +524,10 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
{
$index = 0;
$totalCapitalOrder=0;
$Rowcount=0;
foreach($POItem as $record)
{
$index = $index + 1;
$Rowcount=$index;
?>
<tr id="<?php echo $index ; ?>">
<td align="left"><?php echo $index ; ?></td>
@ -531,9 +536,12 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<td><?php echo $record->Quantity ?></td>
<td><?php echo $record->UOM ?></td>
<td><?php echo $record->Rate ?></td>
<td><?php echo $record->BasicValue ?></td>
<td><?php
$Basicamt = 0.00;
$Basicamt = $record->Quantity * $record->Rate;
echo $Basicamt; ?></td>
<td><?php echo $record->ServiceTaxamount?></td>
<td><?php echo $record->BasicValue?></td>
<td><?php echo $Basicamt;//$record->BasicValue?></td>
<?php
$row=array("materialCode"=>$record->MaterialCode,"ReqNo"=>$record->ReqNo);
array_push($res_arr_values, $row);
@ -550,23 +558,15 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<input type="hidden" name="<?php echo 'materialName'.$index ?>" id="<?php echo 'materialName'.$index ?>" value="<?php echo $record->MaterialName ; ?>" />
<input type="hidden" name="<?php echo 'uom'.$index ?>" id="<?php echo 'uom'.$index ?>" value="<?php echo $record->UOM ; ?>" />
<input type="hidden" name="<?php echo 'quantity'.$index ?>" id="<?php echo 'quantity'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
<input type="hidden" name="<?php echo 'rateInUs'.$index ?>" id="<?php echo 'rateInUs'.$index ?>" value="<?php echo $record->BasicPriceInMTon ; ?>" />
<input type="hidden" name="<?php echo 'itemRate'.$index ?>" id="<?php echo 'itemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
<input type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $record->BasicValue ; ?>" />
<?php if($CapitalRange=='1'){ ?>
<input type="hidden" name="<?php echo 'rateInUs'.$index ?>" id="<?php echo 'rateInUs'.$index ?>" value="<?php echo $record->Rate ; ?>" />
<?php } ?>
<?php if($CapitalRange=='0'){ ?>
<input type="hidden" name="<?php echo 'rateInUs'.$index ?>" id="<?php echo 'rateInUs'.$index ?>" value="<?php echo $record->BasicPriceInMTon ; ?>" />
<input type="hidden" name="<?php echo 'basicvalInINR'.$index ?>" id="<?php echo 'basicvalInINR'.$index ?>" value="<?php echo $record->ProductPrice ; ?>" />
<input type="hidden" name="<?php echo 'AfterServiceTax'.$index ?>" id="<?php echo 'AfterServiceTax'.$index ?>" value="<?php echo $record->ServiceTax ; ?>" />
<input type="hidden" name="<?php echo 'AfterEduCess'.$index ?>" id="<?php echo 'AfterEduCess'.$index ?>" value="<?php echo $record->EducessTax ; ?>" />
<input type="hidden" name="<?php echo 'AfterSecHighTax'.$index ?>" id="<?php echo 'AfterSecHighTax'.$index ?>" value="<?php echo $record->SecHigherEducessTax ; ?>" />
<input type="hidden" name="<?php echo 'AfterKrishiTax'.$index ?>" id="<?php echo 'AfterKrishiTax'.$index ?>" value="<?php echo $record->KrishiKalyantax ; ?>" />
<input type="hidden" name="<?php echo 'AfterSwachhTax'.$index ?>" id="<?php echo 'AfterSwachhTax'.$index ?>" value="<?php echo $record->SwachhBharattax ; ?>" />
<input type="hidden" name="<?php echo 'ServiceTotalOrderValue'.$index ?>" id="<?php echo 'ServiceTotalOrderValue'.$index ?>" value="<?php echo $record->ServiceTaxamount ; ?>" />
<input type="hidden" name="<?php echo 'beforeLanding'.$index ?>" id="<?php echo 'beforeLanding'.$index ?>" value="<?php echo $record->LandingCharge; ?>" />
<input type="hidden" name="<?php echo 'landingCharge'.$index ?>" id="<?php echo 'landingCharge'.$index ?>" value="<?php echo $record->AfterLandingCharge; ?>" />
<input type="hidden" name="<?php echo 'beforeHighSeasSalesCharge'.$index ?>" id="<?php echo 'beforeHighSeasSalesCharge'.$index ?>" value="<?php echo $record->HighSeasSalesCharge ; ?>" />
@ -607,15 +607,32 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<input type="hidden" name="<?php echo 'PurQuantity'.$index ?>" id="<?php echo 'PurQuantity'.$index ?>" value="<?php echo $record->QuantityKG; ?>" />
<input type="hidden" name="<?php echo 'PerKgExpense'.$index ?>" id="<?php echo 'PerKgExpense'.$index ?>" value="<?php echo $record->ImportTotalValue; ?>" />
<?php } ?>
<input type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $Basicamt; ?>" />
<input type="hidden" name="<?php echo 'AfterServiceTax'.$index ?>" id="<?php echo 'AfterServiceTax'.$index ?>" value="<?php echo $record->ServiceTax ; ?>" />
<input type="hidden" name="<?php echo 'AfterEduCess'.$index ?>" id="<?php echo 'AfterEduCess'.$index ?>" value="<?php echo $record->EducessTax ; ?>" />
<input type="hidden" name="<?php echo 'AfterSecHighTax'.$index ?>" id="<?php echo 'AfterSecHighTax'.$index ?>" value="<?php echo $record->SecHigherEducessTax ; ?>" />
<input type="hidden" name="<?php echo 'AfterKrishiTax'.$index ?>" id="<?php echo 'AfterKrishiTax'.$index ?>" value="<?php echo $record->KrishiKalyantax ; ?>" />
<input type="hidden" name="<?php echo 'AfterSwachhTax'.$index ?>" id="<?php echo 'AfterSwachhTax'.$index ?>" value="<?php echo $record->SwachhBharattax ; ?>" />
<input type="hidden" name="<?php echo 'ServiceTotalOrderValue'.$index ?>" id="<?php echo 'ServiceTotalOrderValue'.$index ?>" value="<?php echo $record->ServiceTaxamount ; ?>" />
<?php
// if($POStatus == PO_DRAFT)
// {?>
<td> <a data-target='#EDITCAPITAL' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#EDITCAPITAL"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <!-- <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a> -->
// if($POStatus == PO_DRAFT) href="<?php echo base_url().'EditPO?PONO='.$record->PONO.'&ReqType='.$record->ReqType.'&CapitalRange='.$record->CapitalRange; ?>"
<td> <a data-target='#EDITCAPITAL' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#EDITCAPITAL"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <!-- <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>-->
<?php
//} else {?>
<!-- <td> <a data-toggle="tooltip" href="#"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i>&nbsp;&nbsp;&nbsp;</a> </td> -->
@ -631,7 +648,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
$TotalSummary = $TotalSummary+$record->ServiceTaxamount;
$TotalBasicAmount = $TotalBasicAmount+$record->BasicValue;
$ServiceDescription = $ServiceDescription;
if($CapitalRange=='0'){
$TotalLanding = $TotalLanding + $record->AfterLandingCharge;
$tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge;
$totcustom = $totcustom + $record->AfterCustomDuty;
@ -648,17 +665,20 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
$totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty;
$ExchangeRate=$record->ExchangeRate;
}
// $totorder=$totorder+$record->TotalOrderValue;
$totalCapitalOrder = $totalCapitalOrder+$record->BasicValue;
}
?> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $Rowcount;?>">
?> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>">
<input type="hidden" name="CapitalToatlOrder" id="CapitalToatlOrder" value="<?php echo $totalCapitalOrder;?>">
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
<input type="hidden" name="capitalType" id="capitalType" value="<?php echo $CapitalRange; ?>"/>
<?php
@ -860,7 +880,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12" style="padding:1%;" ></div>
<div class="col-md-12" style="border:1px solid #000;padding:0px;">
<div class="col-md-12" style="border:1px solid #000;padding:0px;" id="ModalImportTaxHide" style="display:none;">
<br/>
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
@ -1398,7 +1418,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12" style="padding:1%;" ></div>
<div class="col-md-12" style="border:1px solid #000;padding:0px;">
<div class="col-md-12" style="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide" style="display:none;">
<br/>
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
@ -1807,7 +1827,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12" style="padding:1%;" ></div>
<div class="col-md-12" style="border: 1px solid;padding:1% 0%;">
<div class="col-md-12" style="border: 1px solid;padding:1% 0%;" id="HideImportTaxTotal" style="display:none;">
<div class="col-md-4">
<label >Total Landing Charge :</label>
@ -1982,9 +2002,12 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<!-- <a class="btn btn-primary Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save</span></a> -->
<a class="btn btn-primary Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<input type="reset" class="btn btn-primary" value="Reset">
<?php //if($POStatus == PO_DRAFT) {?>
<!--<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a> -->
<a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<input type="reset" class="btn btn-primary" value="Reset">
<?php //}else {?>
<!--<input type="reset" class="btn btn-primary" value = "OK"> --><?php //} ?>
</div>
<br/>
@ -2888,7 +2911,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
var exchangeRate = $("#ExchangeRtModal").val();
var quantity = $("#CPQuantity").val();
var convertRate = $("#CPRate").val();
var itemRate = parseFloat(convertRate * exchangeRate).toFixed(2);
var itemRate = parseFloat(convertRate).toFixed(2);
var basicval = parseFloat($("#CPTotalAmount").val()).toFixed(2);
var AfterServiceTax = $("#AfterServiceTax").val();
var AfterEduCess = $("#AfterEduCess").val();
@ -3746,16 +3769,14 @@ $("#EdittxtTotalOrderValue").val('');
function Save(status)
{
//alert("inside save" + status);
if(status == '0')
{
stat = '<?php echo PO_DRAFT; ?>';
alert(stat);
}
else
{
stat = '<?php echo PO_CREATED; ?>';
alert(stat);
}
var splinstr = $('#txtSpcialInstruction').val();
@ -3771,10 +3792,8 @@ $('#txtDeliveryAddress').val(deladd);
$('#txtStatus').val(stat);
//alert("before if");
if(validate())
{
//alert("inside if");
if(document.getElementById('serviceTax').rows.length < 2)
{
alert('Please Select Line item to Create PO');
@ -3782,11 +3801,8 @@ $('#txtStatus').val(stat);
return false;
}
else
{
//alert("before ajax");
{
$('#content').loader('show');
$.ajax({
data:$('.CapitalPO').serialize()+"&ExchangeRateOn="+ExchangeRateOn+"&PaymentMethod="+PaymentMethod+"&PayableAT="+PayableAT+"&PaymentDate="+PaymentDate,
type:"POST",
@ -3800,9 +3816,10 @@ $('#txtStatus').val(stat);
$('#txtDeletedRow').val('');
$('#SpcialInstruction').val('');
$('#txtDeliveryAddress').val('');
// clearAfterAddLineItemAdd();
window.location = "amendmentpurchaseorder";
window.location="amendmentpurchaseorder";
}
else
@ -4027,30 +4044,30 @@ function clearAfterAddLineItemAdd(){
}
/* This function used to check quantity exceeding or not while Editing*/
// function EditExceedQuantityCheck()
// {
// var EnterQuantity = $("#EditCPQuantity").val()== '' ? "0.00" : parseFloat($("#EditCPQuantity").val());
// var ReqQuantity = parseFloat(RequistQuantity);
function EditExceedQuantityCheck()
{
var EnterQuantity = $("#EditCPQuantity").val()== '' ? "0.00" : parseFloat($("#EditCPQuantity").val());
var ReqQuantity = parseFloat(RequistQuantity);
// //alert(ReqQuantity);
// if(EnterQuantity > ReqQuantity)
// {
// alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
//alert(ReqQuantity);
if(EnterQuantity > ReqQuantity)
{
// alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
// $('#EditCPQuantity').focus();
// return false;
// }
// else {
// return true;
// }
// }
// $('#EditCPQuantity').focus();
return true;
}
else {
return true;
}
}
/**
* This function is used for Edit Capital
*/
$('.EditCapital').click(function(){
if( validateEditCapitalTax() && validateEditExceedLimit())
if( validateEditCapitalTax() && EditExceedQuantityCheck() && validateEditExceedLimit())
{
var tr= document.getElementById(userid);
@ -4067,7 +4084,7 @@ function clearAfterAddLineItemAdd(){
var exchangeRate = $("#EditExchangeRtModal").val();
var quantity = $("#EditCPQuantity").val();
var convertRate = $("#EditCPRate").val();
var itemRate = convertRate * exchangeRate;
var itemRate = convertRate;
var basicval = $("#EditCPTotalAmount").val();
var AfterServiceTax = $("#EditAfterServiceTax").val();
var AfterEduCess = $("#EditAfterEduCess").val();
@ -4253,7 +4270,7 @@ function validateEditCapitalTax()
//$('#EdittxtTotalOrderValue').val(tot);
validateEditExceedLimit();
/// EditExceedQuantityCheck();
EditExceedQuantityCheck();
}
/* calculate tax value*/
function EditcalculateTaxValue(){

View File

@ -122,7 +122,7 @@ if(!empty($AvlBudAmt))
</style>
<script type="text/javascript">
var DelOpt = '<?php echo $DeliverOption; ?>';
var SchName = '<?php echo $DeliverSchedule; ?>';
var SchName = <?php echo json_encode($DeliverSchedule); ?>;
var DelDt = '<?php echo $Deliverydt; ?>';
$(document).ready(function () {
if(DelOpt=="0"){
@ -157,8 +157,8 @@ window.onload = function()
document.getElementById('HideImportTaxTotal').style.display = 'none';
document.getElementById('ModalImportTaxHide').style.display = 'none';
document.getElementById('EditModalImportTaxHide').style.display = 'none';
document.getElementById('ExchangeRateModalViewDiv').style.display = 'none';
document.getElementById('ViewModalImportTaxHide').style.display = 'none';
capitalType='Domestic';
@ -172,8 +172,10 @@ capitalType='Domestic';
document.getElementById('currencyTypeDiv').style.display = 'block';
document.getElementById('ExchangeRateModalDiv').style.display = 'block';
document.getElementById('ExchangeRateModalEditDiv').style.display = 'block';
document.getElementById('ExchangeRateModalViewDiv').style.display = 'block';
capitalType='International';
document.getElementById('currencyTypeDiv').style.display = 'block';
document.getElementById('ViewModalImportTaxHide').style.display = 'block';
}
}
</script>
@ -534,9 +536,9 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<td><?php echo $record->Quantity ?></td>
<td><?php echo $record->UOM ?></td>
<td><?php echo $record->Rate ?></td>
<td><?php echo $record->BasicValue ?></td>
<td><?php echo $record->Rate * $record->Quantity ?></td>
<td><?php echo $record->ServiceTaxamount?></td>
<td><?php echo $record->BasicValue?></td>
<td><?php echo $record->Rate * $record->Quantity ?></td>
<?php
$row=array("materialCode"=>$record->MaterialCode,"ReqNo"=>$record->ReqNo);
array_push($res_arr_values, $row);
@ -604,7 +606,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<input type="hidden" name="<?php echo 'PerKgExpense'.$index ?>" id="<?php echo 'PerKgExpense'.$index ?>" value="<?php echo $record->ImportTotalValue; ?>" />
<?php } ?>
<input type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $record->BasicValue ; ?>" />
<input type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $record->Rate * $record->Quantity ; ?>" />
<input type="hidden" name="<?php echo 'AfterServiceTax'.$index ?>" id="<?php echo 'AfterServiceTax'.$index ?>" value="<?php echo $record->ServiceTax ; ?>" />
@ -630,7 +632,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<td> <a data-target='#EDITCAPITAL' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#EDITCAPITAL"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>
<?php
} else {?>
<td> <a data-toggle="tooltip" href="#"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<td> <a data-target='#VIEWCAPITAL' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#VIEWCAPITAL"><i class="fa fa-eye" data-toggle="tooltip" title="Click here to view the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<?php
}?>
</tr> <?php
@ -1190,8 +1192,8 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-6" align="right"> <label>Total Amount :</label></div>
<div class="col-md-6">
<div class="col-md-6" align="right" style="display:none;"> <label>Total Amount :</label></div>
<div class="col-md-6" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'txtTotalOrderValue','value' => set_value('txtTotalOrderValue'),'id'=>'txtTotalOrderValue', 'class' => 'form-control' ,'readonly' => 'true');
@ -1223,6 +1225,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
</div>
<br/>
<div class="modal fade" id="EDITCAPITAL" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
@ -1728,8 +1731,8 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-6" align="right"> <label>Total Order Amount :</label></div>
<div class="col-md-6">
<div class="col-md-6" align="right" style="display:none;"> <label>Total Order Amount :</label></div>
<div class="col-md-6" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'EdittxtTotalOrderValue','value' => set_value('EdittxtTotalOrderValue'),'id'=>'EdittxtTotalOrderValue', 'class' => 'form-control' ,'readonly' => 'true');
@ -1760,6 +1763,531 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<br/>
<br/>
<!-- this is view the added requistion details -->
<div class="modal fade" id="VIEWCAPITAL" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<form>
<div class="modal-content" style="width:900px;">
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<center><h4>View Capital Purchase Order Item </h4></center>
</div>
<div align="left">
<div class="col-md-12">
<div class="col-md-12">
<div class="col-md-5">
<div class="col-md-6">
<label>Req No</label>
<div>
<?php
$data = array('name' => 'ViewReqnumber','value' => set_value('ViewReqnumber'),'id'=>'ViewReqnumber', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-6">
<label>Department Name</label>
<div>
<?php
$data = array('name' => 'ViewCapitalDepartmentName','value' => set_value('ViewCapitalDepartmentName'),'id'=>'ViewCapitalDepartmentName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-5">
<div class="col-md-6">
<label>Cost Center Name</label>
<div>
<?php
$data = array('name' => 'ViewCostCenter','value' => set_value('ViewCostCenter'),'id'=>'ViewCostCenter', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!-- <div class="col-md-6">
<label>Avail Bud Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCapitalbudAmt','value' => set_value('ViewCapitalbudAmt'),'id'=>'ViewCapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>-->
</div>
<div class="col-md-2" id="ExchangeRateModalViewDiv" style="display:none;">
<label> Exchange Rate</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewExchangeRtModal','value' => set_value('ViewExchangeRtModal'),'id'=>'ViewExchangeRtModal', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-12">
<div class="col-md-2">
<label>Item Code</label>
<div>
<?php
$data = array('name' => 'ViewMaterialCode','value' => set_value('ViewMaterialCode'),'id'=>'ViewMaterialCode', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Item Name</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCapitalItemName','value' => set_value('ViewCapitalItemName'),'id'=>'ViewCapitalItemName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>UOM</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCPUOM','value' => set_value('ViewCPUOM'),'id'=>'ViewCPUOM', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Quantity</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCPQuantity','value' => set_value('ViewCPQuantity'),'id'=>'ViewCPQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label id="ViewRateIn">Rate(in INR /Ton)</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCPRate','value' => set_value('ViewCPRate'),'id'=>'ViewCPRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true' );
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label id="ViewTotalAmount">Basic value in INR</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCPTotalAmount','value' => set_value('ViewCPTotalAmount'),'id'=>'ViewCPTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" style="border:1px solid #000;padding:0px;">
<div class="col-md-5">
<div class="col-md-6">
Service Tax ( ST ) @ 14% :
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterServiceTax','value' => set_value('ViewAfterServiceTax'),'id'=>'ViewAfterServiceTax', 'class' => 'form-control' ,'placeholder' => 'After Service Tax','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-6">
Education cess @2% on ST :
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterEduCess','value' => set_value('ViewAfterEduCess'),'id'=>'ViewAfterEduCess', 'class' => 'form-control' ,'placeholder' => 'After Edu. cess','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-5">
<div class="col-md-6">
Sec. & Higher Edu. cess @1 % on ST :
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterSecHighTax','value' => set_value('ViewAfterSecHighTax'),'id'=>'ViewAfterSecHighTax', 'class' => 'form-control' ,'placeholder' => 'After High Edu. cess','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-6">
Krishi Kalyan tax @.5 % on Basic Account(BA):
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterKrishiTax','value' => set_value('ViewAfterKrishiTax'),'id'=>'ViewAfterKrishiTax', 'class' => 'form-control' ,'placeholder' => 'After Krishi Kalyan tax.','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-2">
Swachh Bharat tax @.5 % on BA:
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterSwachhTax','value' => set_value('ViewAfterSwachhTax'),'id'=>'ViewAfterSwachhTax', 'class' => 'form-control' ,'placeholder' => 'After Swatchh Bhart Tax.','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12" style="padding:1%;" ></div>
<div class="col-md-12" style="border:1px solid #000;padding:0px;" id="ViewModalImportTaxHide" style="display:none;">
<br/>
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4" >
Basic Price In INR:
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewBasicPriceTax','value' => set_value('ViewBasicPriceTax'),'id'=>'ViewBasicPriceTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterBasicPriceTax','value' => set_value('ViewAfterBasicPriceTax'),'id'=>'ViewAfterBasicPriceTax', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Landing charge
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewLandingCharge','value' => set_value('ViewLandingCharge'),'id'=>'ViewLandingCharge', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterLandingCharge','value' => set_value('ViewAfterLandingCharge'),'id'=>'ViewAfterLandingCharge', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
High seas sales charge
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewHighseas ','value' => set_value('ViewHighseas'),'id'=>'ViewHighseas', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' , 'onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterHighseas','value' => set_value('ViewAfterHighseas'),'id'=>'ViewAfterHighseas', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom duty : (a)
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomduty','value' => set_value('ViewCustomduty'),'id'=>'ViewCustomduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'viewAfterCustomduty','value' => set_value('viewAfterCustomduty'),'id'=>'viewAfterCustomduty', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty : (b)
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewExcisedutyTax','value' => set_value('ViewExcisedutyTax'),'id'=>'ViewExcisedutyTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterExcisedutyTax','value' => set_value('ViewAfterExcisedutyTax'),'id'=>'ViewAfterExcisedutyTax', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty ED_cess : (C)
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewExcisedutyEDcess','value' => set_value('ViewExcisedutyEDcess'),'id'=>'ViewExcisedutyEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterExcisedutyEDcess','value' => set_value('ViewAfterExcisedutyEDcess'),'id'=>'ViewAfterExcisedutyEDcess', 'class' => 'form-control','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty S & H cess :(d)
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewExcisedutySHcess','value' => set_value('ViewExcisedutySHcess'),'id'=>'ViewExcisedutySHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterExcisedutySHcess','value' => set_value('ViewAfterExcisedutySHcess'),'id'=>'ViewAfterExcisedutySHcess', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom ED_cess : (e)
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomEDcess','value' => set_value('ViewCustomEDcess'),'id'=>'ViewCustomEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomEDcess','value' => set_value('ViewAfterCustomEDcess'),'id'=>'ViewAfterCustomEDcess', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom S & H cess : (f)
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomSHcess','value' => set_value('ViewCustomSHcess'),'id'=>'ViewCustomSHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomSHcess','value' => set_value('ViewAfterCustomSHcess'),'id'=>'ViewAfterCustomSHcess', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4">
Additional Excise duty : (g)
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAdditionalExciseduty ','value' => set_value('ViewAdditionalExciseduty'),'id'=>'ViewAdditionalExciseduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterAdditionalExciseduty','value' => set_value('ViewAfterAdditionalExciseduty'),'id'=>'ViewAfterAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-8">
Gross duty payable
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewGrossdutypayable ','value' => set_value('ViewGrossdutypayable'),'id'=>'ViewGrossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-8">
Available Modvat set-off on import :
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAvailableModvat','value' => set_value('ViewAvailableModvat'),'id'=>'ViewAvailableModvat', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?> (b + c + d + g)
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-8">
Gross expenses due to custom duty:
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewGrossexpenses','value' => set_value('ViewGrossexpenses'),'id'=>'ViewGrossexpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<center> <label>Cost of the product Per KG</label></center>
<hr/>
</div>
<div class="col-md-12">
<div class="col-md-4">
purchase rate [Basic]
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'Viewpurchaserate','value' => set_value('Viewpurchaserate'),'id'=>'Viewpurchaserate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4" style="margin-top: -4.8%">
<span>Quantity</span>
<div class="form-group">
<?php
$data = array('name' => 'ViewPurQuantity','value' => set_value('ViewPurQuantity'),'id'=>'ViewPurQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom Duty Expenses
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomDutyExpenses ','value' => set_value('ViewCustomDutyExpenses'),'id'=>'ViewCustomDutyExpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
RMC Including Customers
</div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewRMCIncludingCustomers','value' => set_value('ViewRMCIncludingCustomers'),'id'=>'ViewRMCIncludingCustomers', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-6" align="right" style="display:none;"> <label>Total Order Amount :</label></div>
<div class="col-md-6" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'ViewtxtTotalOrderValue','value' => set_value('ViewtxtTotalOrderValue'),'id'=>'ViewtxtTotalOrderValue', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<br/>
</table>
@ -2002,7 +2530,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<input type="reset" class="btn btn-primary" value="Reset">
<?php }else {?>
<input type="reset" class="btn btn-primary" value = "OK"> <?php } ?>
<a class="btn btn-primary" ID="OK" href="<?php echo base_url().'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a> <?php } ?>
</div>
<br/>
@ -2472,7 +3000,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
var Rmc = $('#RMCIncludingCustomers').val();
var Quanty =$('#CPQuantity').val();
var BasicAmt = $('#CPTotalAmount').val();
var perKg = Rmc * Quanty * BasicAmt;
var perKg = parseFloat(BasicAmt).toFixed(2);
$('#txtTotalOrderValue').val(perKg);
@ -3683,6 +4211,97 @@ $('#EditRateIn').html('Rate(in' + " "+DisplayCurrencySymbol + '/'+EditUOM+')');
}
});
/* get View Capital Po Modal*/
$("#VIEWCAPITAL").on("shown.bs.modal", function(e) {
userid = $(e.relatedTarget).data('userid');
$('#isEdit').val(1);
//alert(userid);
var tr= document.getElementById(userid);
var cellval = tr.cells;
var id= $('#Reqnumber'+userid).val();
$('#ViewReqnumber').val($('#Reqnumber'+userid).val());
$('#ViewCapitalDepartmentName').val($('#departmentName'+userid).val());
$("#ViewCostCenter").val($('#CPCostCode'+userid).val());
$('#ViewCapitalbudAmt').val($('#AvilBudget'+userid).val());
$('#ViewExchangeRtModal').val($('#echangeRate'+userid).val());
$('#ViewCapitalItemName').val($('#materialName'+userid).val());
$('#ViewCPUOM').val($('#uom'+userid).val());
$('#ViewCPQuantity').val($('#quantity'+userid).val());
$('#ViewCPRate').val($('#rateInUs'+userid).val());
$('#ViewCPTotalAmount').val($('#basicval'+userid).val());
RequistQuantity = $('#quantity'+userid).val();
$('#ViewAfterServiceTax').val($('#AfterServiceTax'+userid).val());
$('#ViewAfterEduCess').val($('#AfterEduCess'+userid).val());
$('#ViewAfterSecHighTax').val($('#AfterSecHighTax'+userid).val());
$('#ViewAfterKrishiTax').val($('#AfterKrishiTax'+userid).val());
$('#ViewAfterSwachhTax').val($('#AfterSwachhTax'+userid).val());
$('#ViewAfterBasicPriceTax').val($('#basicvalInINR'+userid).val());
$('#ViewAfterLandingCharge').val($('#landingCharge'+userid).val());
$('#ViewAfterHighseas').val($('#HighSeasSalesCharge'+userid).val());
$('#ViewAfterCustomduty').val($('#CustomDuty'+userid).val());
$('#ViewAfterExcisedutyTax').val($('#ExciseDuty'+userid).val());
$('#ViewAfterExcisedutyEDcess').val($('#ExciseDutyEDCess'+userid).val());
$('#ViewAfterExcisedutySHcess').val($('#ExciseDutySHCess'+userid).val());
$('#ViewAfterCustomEDcess').val($('#CustomEDCess'+userid).val());
$('#ViewAfterCustomSHcess').val($('#CustomSHCess'+userid).val());
$('#ViewAfterAdditionalExciseduty').val($('#AdditionalExciseDuty'+userid).val());
$('#ViewGrossdutypayable').val($('#GrossDutyPayable'+userid).val());
$('#ViewAvailableModvat').val($('#AvailableModvat'+userid).val());
$('#ViewGrossexpenses').val($('#GrossExpensesDuetoCustom'+userid).val());
$('#Viewpurchaserate').val($('#purchaseRate'+userid).val());
$('#ViewCustomDutyExpenses').val($('#CustomDutyExpenses'+userid).val());
$('#ViewRMCIncludingCustomers').val($('#RMCIncludingCustomers'+userid).val());
$('#ViewtxtTotalOrderValue').val($('#PerKgExpense'+userid).val());
/* get % value */
$('#ViewLandingCharge').val($('#beforeLanding'+userid).val());
$('#ViewHighseas').val($('#beforeHighSeasSalesCharge'+userid).val());
$('#ViewCustomduty').val($('#beforeCustomDuty'+userid).val());
$('#ViewExcisedutyTax').val($('#beforeExciseDuty'+userid).val());
$('#ViewExcisedutyEDcess').val($('#beforeExciseDutyEDCess'+userid).val());
$('#ViewExcisedutySHcess').val($('#beforeExciseDutySHCess'+userid).val());
$('#ViewCustomEDcess').val($('#beforeCustomEDCess'+userid).val());
$('#ViewCustomSHcess').val($('#beforeCustomSHCess'+userid).val());
$('#ViewAdditionalExciseduty').val($('#beforeAdditionalExciseDuty'+userid).val());
$('#ViewPurQuantity').val($('#PurQuantity'+userid).val());
var ViewUOM = $('#uom'+userid).val();
//$('#RateIn').html('Rate(in' + " "+DisplayCurrencySymbol + '/'+ViewUOM+')');
//$('#EditRateIn').html('Rate(in' + " "+DisplayCurrencySymbol + '/'+ViewUOM+')');
$('#ViewRateIn').html('Rate(in' + " "+ViewCurrencySymbol + '/' +ViewUOM +')');
$('#ViewTotalAmount').html('Basic Value in' + " "+ViewCurrencySymbol);
$("#ViewMaterialCode").val($('#materialCode'+userid).val());
});
/*get edit material list*/
$('#EditMaterialCode').change(function() {
@ -3976,7 +4595,7 @@ function clearAfterAddLineItemAdd(){
var Rmc = $('#EditRMCIncludingCustomers').val();
var Quanty =$('#EditCPQuantity').val();
var BasicAmt = $('#EditCPTotalAmount').val();
var perKg = Rmc * Quanty * BasicAmt;
var perKg = parseFloat(BasicAmt).toFixed(2);
$('#EdittxtTotalOrderValue').val(perKg);
@ -4425,22 +5044,27 @@ function validateEditCapitalTax()
}
var DisplayCurrencySymbol='';
var ViewCurrencySymbol='';
var currency = <?php echo json_encode($Currency, JSON_PRETTY_PRINT) ?>;
$.each(currency, function(idx, obj) {
if(obj.Currency_Code === $("#currencytype").val())
{
$("#CurrencySymbol").val(obj.FontCode2000);
DisplayCurrencySymbol=obj.FontCode2000;
ViewCurrencySymbol=obj.FontCode2000;
var DisplayUOM=$('#uom').val();
$('#CurrencySymbol').html('Exchange Rate In' + " "+obj.FontCode2000);
$('#RateIn').html('Rate(in' + " "+obj.FontCode2000 + '/'+DisplayUOM+')');
$('#EditRateIn').html('Rate(in' + " "+obj.FontCode2000 + '/'+DisplayUOM+')');
$('#TotalAmount').html('Basic Value in' + " "+DisplayCurrencySymbol);
$('#EditTotalAmount').html('Basic Value in' + " "+DisplayCurrencySymbol);
//$('#ViewTotalAmount').html('Basic Value in' + " "+ViewCurrencySymbol);
// $('#ViewRateIn').html('Rate(in' + " "+ViewCurrencySymbol + '/'+DisplayUOM+')');
}
});
$('#currencytype').change(function(){
var SelectCurrency = $('#currencytype').val();

File diff suppressed because it is too large Load Diff

View File

@ -79,7 +79,8 @@ if(!empty($POMaster))
$Pdt = new DateTime($Req->PODate);
$PODate = $Pdt->format('Y-m-d');
$DeliverOption = $Req->DeliveryOption;
$DeliverSchedule = $Req->DeliverySchedule;
$DeliverSchedule = $Req->DeliverySchedule;
$Ddt = new DateTime($Req->DeliveryDate);
$Deliverydt = $Ddt->format('Y-m-d');
@ -146,17 +147,21 @@ if(!empty($RequistionDetails))
<script src="<?php echo base_url(); ?>assets/js/CreatePOValidation.js" type="text/javascript"></script>
<script type="text/javascript">
var DelOpt = '<?php echo $DeliverOption; ?>';
var SchName = '<?php echo $DeliverSchedule; ?>';
var DelDt = '<?php echo $Deliverydt; ?>';
var SchName = <?php echo json_encode($DeliverSchedule); ?>;
var DelDt = '<?php echo $Deliverydt; ?>';
$(document).ready(function () {
if(DelOpt=="0"){
$('#Deliverydtdiv').show();
$('#Schedulediv').hide();
$('#Deliverydt').val(DelDt);
}
else if(DelOpt=="1"){
$('#Deliverydtdiv').hide();
$('#Schedulediv').show();
$('#Deliverydt').val('');
@ -1914,7 +1919,7 @@ body {
<div class="col-md-4" id="Schedulediv" style="display:none;padding:0%;">
<label >Schedule </label>
<?php
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby',$DeliverSchedule),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
echo Form_textarea($data);
?>
</div>
@ -2096,7 +2101,7 @@ body {
<table>
<div align="right">
<div align="right">
<a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Add Line Item</button> </a>
<a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>
</div>
<!-- Model for revenue po -->
@ -2889,7 +2894,363 @@ body {
</form>
</div>
</div>
</br>
</br>
<div id="VIEWREVENUE" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<!-- Modal content-->
<form>
<div class="modal-content" style="width:1000px;">
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
<center><h4>View Revenue Purchase Order Line Item </h4></center>
</div>
<div align="left">
<div>
<div class="col-md-12" >
<div class="col-md-3">
<label>Req No</label>
<div >
<?php
$data = array('name' => 'ViewReqNo','value' => set_value('ViewReqNo'),'id'=>'ViewReqNo', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-3">
<label>Department Name</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewdeptName','value' => set_value('ViewdeptName'),'id'=>'ViewdeptName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-3">
<label>Cost Center Name</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCostCenter','value' => set_value('ViewCostCenter'),'id'=>'ViewCostCenter', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!-- <div class="col-md-2">
<label>Avl Bud Amt</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewAvlBudAmt','value' => set_value('ViewAvlBudAmt'),'id'=>'ViewAvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div> -->
</div>
<div class="col-md-12">
<div class="col-md-2">
<label>Item Code</label>
<div>
<?php
$data = array('name' => 'ViewMaterialCode','value' => set_value('ViewMaterialCode'),'id'=>'ViewMaterialCode', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Item Name</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewItemName','value' => set_value('ViewItemName'),'id'=>'ViewItemName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>UOM</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewUOM','value' => set_value('ViewUOM'),'id'=>'ViewUOM', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Quantity</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewQuantity','value' => set_value('ViewQuantity'),'id'=>'ViewQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label><?php echo "Rate In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'ViewRate','value' => set_value('ViewRate'),'id'=>'ViewRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly' => 'true','style'=>'text-align:right;' );
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label><?php echo "Basic Amount ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewBasicValue','value' => set_value('txtViewBasicValue'),'id'=>'txtViewBasicValue', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
</div>
</div><br/>
<div class="col-md-12" style="border : 1px solid">
<div class="row">
<div class="col-md-12">
<div class="col-md-4">
<label>Discount Type </label>
<div>
<?php
$data = array('name' => 'ViewDiscountType','value' => set_value('ViewDiscountType'),'id'=>'ViewDiscountType', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Discount Rate </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewDiscount','value' => set_value('txtViewDiscount'),'id'=>'txtViewDiscount', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label><?php echo "Discounted Amount In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterDiscount','value' => set_value('txtViewAfterDiscount'),'id'=>'txtViewAfterDiscount', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div id="Vat" >
<div class="col-md-2" >
<label>Vat in %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewVat','value' => set_value('txtViewVat'),'id'=>'txtViewVat', 'class' => 'form-control num' ,'style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2" >
<label><?php echo "Vat Amount ($INRSYM)";?> </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterVat','value' => set_value('txtViewAfterVat'),'id'=>'txtViewAfterVat', 'class' => 'form-control num' ,'readonly' => 'true','onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
</div>
<div style="display:none;" id="CST">
<div class="col-md-2" >
<label>CST in %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewCST','value' => set_value('txtViewCST'),'id'=>'txtViewCST', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2" >
<label>CST Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterCST','value' => set_value('txtViewAfterCST'),'id'=>'txtViewAfterCST', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" style="text-align:left;">
<div class="col-md-4">
<label>Packaging Type </label>
<div>
<?php
$data = array('name' => 'ViewPackagingType','value' => set_value('ViewPackagingType'),'id'=>'ViewPackagingType', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Packaging Rate </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewPackaging','value' => set_value('txtViewPackaging'),'id'=>'txtViewPackaging', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label><?php echo "Packaging Amount ($INRSYM)";?> </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterPackaging','value' => set_value('txtViewAfterPackaging'),'id'=>'txtViewAfterPackaging', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>GST in %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewGST','value' => set_value('txtViewGST'),'id'=>'txtViewGST', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>GST Amount</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterGST','value' => set_value('txtViewAfterGST'),'id'=>'txtViewAfterGST', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 " >
<div class="col-md-2 col-md-offset-4">
<label>Excise Duty in % </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewExciseDuty','value' => set_value('txtViewExciseDuty'),'id'=>'txtViewExciseDuty', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label> <?php echo "Excise Duty Amount ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterExciseDuty','value' => set_value('txtViewAfterExciseDuty'),'id'=>'txtViewAfterExciseDuty', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Other Taxes in %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewOtherTax','value' => set_value('txtViewOtherTax'),'id'=>'txtViewOtherTax', 'class' => 'form-control num','onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label><?php echo "Other Taxes Amount ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterOtherTax','value' => set_value('txtViewAfterOtherTax'),'id'=>'txtViewAfterOtherTax', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" >
<div class="col-md-4">
<label>Freight Type </label>
<div>
<?php
$data = array('name' => 'drpViewFreight','value' => set_value('drpViewFreight'),'id'=>'drpViewFreight', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Freight Rate </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewFreight','value' => set_value('txtViewFreight'),'id'=>'txtViewFreight', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label><?php echo "Freight Amount ($INRSYM)";?> </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterFreight','value' => set_value('txtViewAfterFreight'),'id'=>'txtViewAfterFreight', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label> Insurance if Any</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewInsurance','value' => set_value('txtViewInsurance'),'id'=>'txtViewInsurance', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div><hr/>
<div class="row">
<div class="col-md-12" >
<div class="col-md-4" align="right"> <label>Total Order Amount :</label></div>
<div class="col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'txtViewTotalOrderValue','value' => set_value('txtViewTotalOrderValue'),'id'=>'txtViewTotalOrderValue', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<!--<div class="col-md-4">
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div> -->
</div>
</div>
</div>
<br/><br/>
<!-- footer for revenue po -->
<div class="modal-footer">
</div>
</div>
</div>
</form>
</div>
</div>
<br/>
<br/>
<div class="box-body" style="margin-top: -5%;">
<table id="revenueTax" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
@ -2974,8 +3335,10 @@ body {
<td> <a data-target='#EDITREVENUE' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>
<?php
} else {?>
<td> <a data-toggle="tooltip" href="#"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<?php
<td> <a data-target='#VIEWREVENUE' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#VIEWREVENUE"><i class="fa fa-eye" data-toggle="tooltip" title="Click here to view the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<?php
}?>
</tr>
<?php
@ -3074,7 +3437,7 @@ body {
<label >Total GST Rate :</label>
<?php
$data = array('name' => 'txtTotalGST','value' => set_value('txtTotalGST',$totCSTAmt),'id'=>'txtTotalGST', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
$data = array('name' => 'txtTotalGST','value' => set_value('txtTotalGST',$totGSTAmt),'id'=>'txtTotalGST', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
@ -3302,6 +3665,69 @@ $("#EDITREVENUE").on("shown.bs.modal", function(e) {
$("input:radio[name='optCST'][value='"+$('#CSTOption'+userid).val()+"']").prop('checked', 'checked');
});
$("#VIEWREVENUE").on("shown.bs.modal", function(e) {
userid = $(e.relatedTarget).data('userid');
$('#isEdit').val(1);
//alert(userid);
var tr= document.getElementById(userid);
var cellval = tr.cells;
var id= $('#Reqnumber'+userid).val();
$('#ViewReqNo').val($('#Reqnumber'+userid).val());
$('#ViewdeptName').val($('#departmentName'+userid).val());
$("#ViewCostCenter").val($('#costCode'+userid).val());
$('#ViewAvlBudAmt').val($('#AvilBudget'+userid).val());
//
$('#ViewItemName').val($('#materialName'+userid).val());
$('#ViewUOM').val($('#uom'+userid).val());
$('#ViewQuantity').val($('#quantity'+userid).val());
$('#ViewRate').val($('#itemRate'+userid).val());
$('#txtViewBasicValue').val(cellval[6].innerHTML);
RequistQuantity = $('#quantity'+userid).val();
$('#txtViewDiscount').val($('#DisVal'+userid).val());
$('#txtViewAfterDiscount').val($('#AfterDisVal'+userid).val());
$('#txtViewVat').val($('#VatVal'+userid).val());
$('#txtViewAfterVat').val($('#AfterVatVal'+userid).val());
$('#txtViewCST').val($('#CSTVal'+userid).val());
$('#txtViewAfterCST').val($('#AfterCSTVal'+userid).val());
$('#txtViewPackaging').val($('#PackVal'+userid).val());
$('#txtViewAfterPackaging').val($('#AfterPackVal'+userid).val());
$('#txtViewGST').val($('#GSTVal'+userid).val());
$('#txtViewAfterGST').val($('#AfterGSTVal'+userid).val());
$('#txtViewExciseDuty').val($('#ExciseVal'+userid).val());
$('#txtViewAfterExciseDuty').val($('#AfterExciseVal'+userid).val());
$('#txtViewOtherTax').val($('#OtherTaxVal'+userid).val());
$('#txtViewAfterOtherTax').val($('#AfterOtherTaxVal'+userid).val());
$('#txtViewFreight').val($('#FreightVal'+userid).val());
$('#txtViewAfterFreight').val($('#AfterFreightVal'+userid).val());
$('#txtViewInsurance').val($('#Insval'+userid).val());
$('#txtViewTotalOrderValue').val($('#TotalOrderValue'+userid).val());
$("#ViewMaterialCode").empty();
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
// For Binding Material list center for the selected Requistion Number
$("#ViewMaterialCode").val($('#materialCode'+userid).val());
$("#ViewDiscountType").val($('#DisType'+userid).val());
$("#drpViewFreight").val($('#FreightType'+userid).val());
$("#ViewPackagingType").val($('#PackType'+userid).val())
$("input:radio[name='optPackaging'][value='"+$('#PackOption'+userid).val()+"']").prop('checked', 'checked');
$("input:radio[name='optExcise'][value='"+$('#ExciseOption'+userid).val()+"']").prop('checked', 'checked');
$("input:radio[name='optVat'][value='"+$('#VatOption'+userid).val()+"']").prop('checked', 'checked');
$("input:radio[name='optCST'][value='"+$('#CSTOption'+userid).val()+"']").prop('checked', 'checked');
});
$('.AddRevenue').click(function(){

View File

@ -7,7 +7,7 @@ $DeliverOption='';
$PODate = '';
$DeliveryAddress ='';
$POStatus = '';
$PONOStatus = '';
$PONO = '';
$TotalServiceTax = 0;
$TotalEducessTax = 0.0;
@ -23,7 +23,20 @@ $DeliverSchedule='';
$MaxPoDate = '';
$AvlAmount = 0;
$Value="&#8377;";
$RowCount = '';
$StatusName='';
if(!empty($INRSYMBOL))
{
foreach($INRSYMBOL as $INRS)
{
$INRSYM=$INRS->FontCode2000;
}
}
if(!empty($MaxPODate))
{
foreach ($MaxPODate as $date)
@ -34,10 +47,7 @@ if(!empty($MaxPODate))
}
if(!empty($POMaster))
{
// print_r($POMaster);
// print_r($Payment);
// echo "****";
// print_r($PaymentTerms);
foreach ($POMaster as $Req)
{
@ -47,18 +57,19 @@ if(!empty($POMaster))
$pdt = new DateTime($Req->PODate);
$PODate = $pdt->format('Y-m-d');
$DeliverOption = $Req->DeliveryOption;
$DeliverSchedule = $Req->DeliverySchedule;
$DeliverSchedule = $Req->DeliverySchedule;
$Ddt = new DateTime($Req->DeliveryDate);
$Deliverydt = $Ddt->format('Y-m-d');
$DeliveryAddress =$Req->DeliveryAddress;
$POStatus = $Req->StatusCode;
$PONOStatus = $Req->StatusCode;
$PONO = $Req->PONO;
$ServiceDescription = $Req->ServiceDescription;
//$PaymentTerms=$Req->PaymentTerms;
$PayableAT=$Req->PayableAT;
$PaymentDays=$Req->PaymentDays;
$WrkStatus=$Req->ServiceWorkStatus;
$StatusName=$Req->StatusName;
}
}
@ -68,8 +79,11 @@ if(!empty($RequistionDetails))
foreach ($RequistionDetails as $ReqDet)
{
$Reqon=$ReqDet->ReqDate;
// $Reqon=$ReqDet->ReqDate;
$Reqonn=new DateTime($ReqDet->ReqDate);
$Reqon=$Reqonn->format('Y-m-d');
$Requestedby=$ReqDet->Requestedby;
$RequesterName=$ReqDet->FirstName;
//$Status=$ReqDet->Status;
}
}
@ -93,7 +107,7 @@ foreach ($PaymentTerms as $TER)
// foreach ($POSTATUS as $PST )
// {
// $POStatus=$PST->StatusName;
// $POStatus=$PST->StatusName;
// }
?>
@ -400,7 +414,7 @@ function EditRatechange(){
$('#EditCostCenter').focus();
return false;
}
// EditExceedQuantityCheck();
EditExceedQuantityCheck();
if($('#EditQuantity').val() != '' && $('#EditRate').val() != '')
{
@ -446,20 +460,20 @@ function ExceedQuantityCheck()
return true;
}
}
// function EditExceedQuantityCheck()
// {
// // RequistQuantity
// var EnterQuantity = $("#EditQuantity").val()== '' ? "0.00" : parseFloat($("#EditQuantity").val());
// var ReqQuantity = parseFloat(RequistQuantity);
// //alert(ReqQuantity);
// if(EnterQuantity > ReqQuantity)
// {
// alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
function EditExceedQuantityCheck()
{
// RequistQuantity
var EnterQuantity = $("#EditQuantity").val()== '' ? "0.00" : parseFloat($("#EditQuantity").val());
var ReqQuantity = parseFloat(RequistQuantity);
//alert(ReqQuantity);
if(EnterQuantity > ReqQuantity)
{
//alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
// $('#EditQuantity').focus();
// return false;
// }
// }
$('#EditQuantity').focus();
return true;
}
}
function ExceedBudget(ValuetoCheck,budgetAmount)
{
@ -645,7 +659,7 @@ $(document).ready(function () {
<section class="content">
<div style="border:2px solid #333">
<div id="content"></div>
<div><center><b><h2>Siddharth Industries - Edit Service Purchase Order for Amendment- <?php echo $PONO;?></h2></b></center></div>
<div><center><b><h2>Siddharth Industries - Edit Service Purchase Order - <?php echo $PONO;?> - For Amendment</h2></b></center></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
@ -836,7 +850,7 @@ $(document).ready(function () {
<div class="container-fluid">
<div style="padding-right:10px">
<div align="right">
<!-- <a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a> -->
<!-- <a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a> -->
<!-- Model for servicepo -->
<div class="modal fade" id="SERVICE" role="dialog">
@ -951,7 +965,7 @@ $(document).ready(function () {
</div>
</div>
<div class="col-md-3">
<label><?php echo "Rate ($Value)";?></label>
<label><?php echo "Rate ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange()' );
@ -960,7 +974,7 @@ $(document).ready(function () {
</div>
</div>
<div class="col-md-3">
<label><?php echo "Basic Amount ($Value);"?></label>
<label><?php echo "Basic Amount ($INRSYM);"?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtBasicValue','value' => set_value('txtBasicValue'),'id'=>'txtBasicValue', 'class' => 'form-control num' ,'readonly' => 'true');
@ -1059,7 +1073,7 @@ $(document).ready(function () {
<div class="col-md-12">
<div class="col-md-5 col-md-offset-4" align="right">
<label><?php echo "Total Order Value ($Value)";?></label>
<label><?php echo "Total Order Value ($INRSYM)";?></label>
</div>
<div class="col-md-3">
<div class="form-group">
@ -1192,7 +1206,7 @@ $(document).ready(function () {
</div>
</div>
<div class="col-md-3">
<label><?php echo "Rate ($Value)";?></label>
<label><?php echo "Rate ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'EditRate','value' => set_value('EditRate'),'id'=>'EditRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange()' );
@ -1201,7 +1215,7 @@ $(document).ready(function () {
</div>
</div>
<div class="col-md-3">
<label><?php echo "Basic Amount ($Value)";?></label>
<label><?php echo "Basic Amount ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditBasicValue','value' => set_value('txtEditBasicValue'),'id'=>'txtEditBasicValue', 'class' => 'form-control num' ,'readonly' => 'true');
@ -1300,7 +1314,7 @@ $(document).ready(function () {
<div class="col-md-12">
<div class="col-md-5 col-md-offset-4" align="right">
<label><?php echo "Total Order Value ($Value)";?></label>>
<label><?php echo "Total Order Value ($INRSYM)";?></label>>
</div>
<div class="col-md-3">
<div class="form-group">
@ -1390,12 +1404,12 @@ $(document).ready(function () {
<input type="hidden" name="<?php echo 'ServiceFrequency'.$index ?>" id="<?php echo 'ServiceFrequency'.$index ?>" value="<?php echo $record->ServiceFrequency ; ?>" />
<?php
// if($POStatus == PO_DRAFT)
// {?>
<td> <a data-target='#EDITSERVICE' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#EDITSERVICE"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <!-- <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a> -->
//if($PONOStatus == PO_DRAFT)
//{?>
<td> <a data-target='#EDITSERVICE' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#EDITSERVICE"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <!-- <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>-->
<?php
//} else {?>
<!-- <td> <a data-toggle="tooltip" href="#"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i>&nbsp;&nbsp;&nbsp;</a> </td> -->
<!-- <td> <a data-toggle="tooltip" href="#"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i>&nbsp;&nbsp;&nbsp;</a> </td> -->
<?php
//}?>
</tr>
@ -1411,7 +1425,7 @@ $(document).ready(function () {
$TotalBasicAmount = $TotalBasicAmount + $record->BasicValue;
}
$RowCount = $index;?>
?> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>">
<?php
}
@ -1426,7 +1440,7 @@ $(document).ready(function () {
<div class="col-md-4">
<label>Basic Amount :</label>
<?php
$data = array('name' => 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',$TotalBasicAmount),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount',number_format($TotalBasicAmount,2)),'id'=>'txtTotBasicAmount', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -1493,13 +1507,12 @@ $(document).ready(function () {
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
<input type="hidden" name="txtStatus" id="txtStatus" />
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $RowCount;?>">
<?php //if($POStatus == PO_DRAFT) {?>
<!--<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a> -->
<?php //if($PONOStatus == PO_DRAFT) {?>
<!-- <a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a> -->
<a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<input type="reset" class="btn btn-primary" value="Reset">
<?php //}else {?>
<!-- <input type="reset" class="btn btn-primary" value = "OK"> <?php //} ?>-->
<!-- <input type="reset" class="btn btn-primary" value = "OK"> --> <?php //} ?>
</div><br/>
</div>
</div>
@ -1516,7 +1529,7 @@ $(document).ready(function () {
<div class="col-md-4">
<span>Request By</span>
<?php
$data = array('name' => 'RequestBy','value' => set_value('RequestBy',$Requestedby),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true');
$data = array('name' => 'RequestBy','value' => set_value('RequestBy',$RequesterName),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
@ -1525,8 +1538,12 @@ $(document).ready(function () {
<?php
// $options = array("0"=>'Select Status');
// echo form_dropdown('Status', $options,set_value('Status'),'id="Status"' ,'required="true"' ,'class="form-control select2')
$options = array("0"=>$POStatus);
echo form_dropdown('Status', $options,set_value('Status',$POStatus),'id="Status"' ,'required="true"' ,'class="form-control select2')
// $options = array("0"=>$PONOStatus);
// echo form_dropdown('Status', $options,set_value('Status',$StatusName),'id="Status"' ,'required="true"' ,'class="form-control select2')
$data = array('name' => 'Status','value' => set_value('Status',$StatusName),'id'=>'Status', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div><br/>
</div>
@ -1748,10 +1765,10 @@ $('.AddService').click(function(){
$('.EditService').click(function(){
if( validateEditServiceTax())
{
// alert('inside Add');
var CostCode = $("#EditCostCenter").val();
var AvilBudget = $('#EditAvlBudAmt').val();
var editMaterialCode = $("#EditMaterialCode").val();
@ -1783,7 +1800,7 @@ $('.AddService').click(function(){
var TotalTaxValue = calculateEditTaxValue();
var tr= document.getElementById(userid);
var cellval = tr.cells;
@ -1825,8 +1842,6 @@ $('.AddService').click(function(){
function populateValueMainFormForServiceTax()
{
//alert('Worked');
var AfterServiceTax = $('#AfterServiceTax').val() == '' ? '0.00' : $('#AfterServiceTax').val();
var AfterEduCess = $('#AfterEduCess').val() == '' ? '0.00' : $('#AfterEduCess').val();
var AfterSecHighTax = $('#AfterSecHighTax').val() == '' ? '0.00' : $('#AfterSecHighTax').val();
@ -1841,7 +1856,7 @@ function populateValueMainFormForServiceTax()
var totBasicAmt = $('#txtTotBasicAmount').val() == '' ? '0.00' : $('#txtTotBasicAmount').val();
totBasicAmt = Number(totBasicAmt.replace(/[^0-9\.]+/g,""));
var TotalServiceTax = $('#txtTotalServiceTax').val() == '' ? '0.00' : $('#txtTotalServiceTax').val();
var TotHigherEdu = $('#txtTotHigherEdu').val() == '' ? '0.00' : $('#txtTotHigherEdu').val();
var TotalEducess = $('#txtTotalEducess').val() == '' ? '0.00' : $('#txtTotalEducess').val();
@ -1861,8 +1876,8 @@ function populateValueMainFormForServiceTax()
function populateValueMainFormForEditServiceTax()
{
var rows = document.getElementById('serviceTax').rows.length;
var rows = document.getElementById('ServiceTable').rows.length;
var TotServiceTax = 0;
var TotEduCess = 0;
var TotSecHighTax = 0;
@ -2080,7 +2095,7 @@ function populateValueMainFormForDeleteItem(rowid)
var AfterEduCess = $('#EduCess'+rowid).val() == '' ? '0.00' : $('#EduCess'+rowid).val();
var AfterSecHighTax = $('#SecHighTax'+rowid).val() == '' ? '0.00' : $('#SecHighTax'+rowid).val();
var AfterKrishiTax =$('#KrishiTax'+rowid).val() == '' ? '0.00' : $('#KrishiTax'+rowid).val();
var AfterSwachhTax = $('#SwachhTax'+rowid).val() == '' ? '0.00' : $('#SwachhTax'+rowid).val();
var AfterSwachhTax = $('#SwachhTax'+rowid).val() == '' ? '0.00' : $('#SwachhTax'+rowid).val();
var TotalVal =$('#TotalOrderValue'+rowid).val() == '' ? '0.00' : $('#TotalOrderValue'+rowid).val();
var Quantity = $('#quantity'+rowid).val() == '' ? '0.00' : $('#quantity'+rowid).val();
@ -2095,6 +2110,7 @@ function populateValueMainFormForDeleteItem(rowid)
TotSecHighTax = parseFloat(TotSecHighTax) - parseFloat(AfterSecHighTax);
TotKrishiTax = parseFloat(TotKrishiTax) - parseFloat(AfterKrishiTax);
TotSwachhTax = parseFloat(TotSwachhTax) - parseFloat(AfterSwachhTax);
TotSummary = parseFloat(TotBasicAmout) - parseFloat(TotalVal);
TotBasicAmout = parseFloat(TotBasicAmout) - parseFloat(BasicVal);
@ -2186,10 +2202,10 @@ function validateServiceTax()
$('#EditRate').focus();
return false;
}
// else if(EditExceedQuantityCheck() == false)
// {
// return false;
// }
else if(EditExceedQuantityCheck() == false)
{
return false;
}
else if(ExceedBudget($('#EditTotalOrderValue').val(),$('#EditAvlBudAmt').val()) == false)
{
$('#EditRate').focus();
@ -2203,21 +2219,17 @@ function validateServiceTax()
}
//
</script>
<script type="text/javascript">
<script>
function Save(status)
{
//alert(status);
var stat='';
if(status == '0')
{
stat = '<?php echo PO_DRAFT; ?>';
//alert(stat);
}
else
{
stat = '<?php echo PO_CREATED; ?>';
//alert(stat);
}
var splinstr = $('#txtSpcialInstruction').val();
var deladd = $('#DeliveryAddr').val();
@ -2227,10 +2239,8 @@ $('#txtStatus').val(stat);
$('#SpcialInstruction').val(splinstr);
$('#txtDeliveryAddress').val(deladd);
// alert("Before Validate");
if(validate())
{
//alert("Inside Validate");
if(document.getElementById('ServiceTable').rows.length < 2)
{
alert('Please Select Line item to Create PO');
@ -2254,7 +2264,7 @@ $('#txtDeliveryAddress').val(deladd);
$('#txtStatus').val('');
$('#SpcialInstruction').val('');
$('#txtDeliveryAddress').val('')
window.location = "amendmentpurchaseorder";
//window.location = "purchaseorderListing";
}
else

View File

@ -17,6 +17,7 @@ foreach ($CurrencyDetail as $Detail)
{
$Cur=$Detail->Currency_Code.' '.' - '.' '.$Detail->Country_and_Currency;
}
//echo $Cur;
foreach ($PaymentTerms as $TER)
@ -57,7 +58,7 @@ if(!empty($CompanyDetails))
//$Exchangerate=$ExchangeRate;
$index = 0;
$SupId = '';
$SupName = '';
$Address = '';
@ -82,6 +83,9 @@ $totgrossexpense='';
$totordervalue='';
$ExchangeRate='';
$totorder='';
$Cur='';
$Currency_Type='';
$PayableAT='';
//$ExchangeRate
$ExchangeRateCalculatedon='';
$StatusName='';
@ -111,6 +115,7 @@ if(!empty($POMaster))
$PayableAT=$Req->PayableAT;
$PaymentDays=$Req->PaymentDays;
$StatusName=$Req->StatusName;
$Currency_Type=$Req->CurrencyType;
}
}
@ -192,11 +197,11 @@ body {
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
});
$("#PayableAT").datepicker({
minDate : m,
//maxDate : 'now',
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
});
// $("#PayableAT").datepicker({
// minDate : m,
// //maxDate : 'now',
// dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
// });
$("#Deliverydt").datepicker({
minDate : 'now',
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
@ -270,30 +275,43 @@ body {
<div class="col-md-12">
<label>Currency Type</label>
<?php
$options = array("0"=>$Cur);
//$options = array("0"=>'Select Currency');
//print_r( $options);
if(!empty($Currency))
{
foreach ($Currency as $CUR):
$options[$CUR->Currency_Code] = $CUR->Currency_Code.' '.' - '.' '.$CUR->Country_and_Currency;
endforeach;
}
//echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2');
echo form_dropdown('currencytype', $options,set_value('currencytype'),'id="currencytype"' ,'required="true"' ,'class="form-control select2');
<?php
if(!empty($Currency))
{
foreach ($Currency as $Cur):
if($Currency_Type==$Cur->Currency_Code){
$options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency;
}
endforeach;
foreach ($Currency as $Cur):
if($Currency_Type!=$Cur->Currency_Code){
$options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency;
}
endforeach;
}
echo form_dropdown('currencytype', $options1,set_value('currencytype',$Currency_Type),'id="currencytype"','class="form-control select2"' , 'required="true"');
?>
?>
</div>
<!-- <div class="col-md-12">
Basic Price in US $ per Ton :
@ -1644,11 +1662,13 @@ body {
<?php
if(!empty($POItem))
{
$index = 0;
foreach($POItem as $record)
{
$index = $index + 1;
?>
<tr id="<?php echo $index ; ?>">
@ -1779,11 +1799,21 @@ body {
}
?> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>">
?>
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>" >
<?php
}
?>
</tbody>
</table>
</div>
@ -1906,9 +1936,9 @@ body {
<div class="col-md-4">
<!-- <label>Total Order Value :</label> --> <?php
<label>Total Order Value :</label> <?php
$data = array('name' => 'txtToatlOrder','value' => set_value('txtToatlOrder',$totorder),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true');
// echo form_input($data);
echo form_input($data);
?>
</div>
</div>
@ -1929,8 +1959,9 @@ body {
<input type="hidden" name="txtPoRange" id="txtPoRange" />
<input type="hidden" name="isEdit" id="isEdit" value="0" />
<input type="hidden" name="txtStatus" id="txtStatus" />
<input type="hidden" name="txtRowCount" id="txtRowCount" />
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<!-- <input type="hidden" name="txtRowCount" id="txtRowCount" /> -->
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow"/>
<input type="hidden" name="txtRow" id="txtRow" value="<?php echo $index;?>"/>
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
@ -1999,13 +2030,16 @@ body {
<script type="text/javascript">
var SelectedMaterialCode = [];
var RequistQuantity = '';
var AvilBudAmt = '';
var CollIndex = 0;
var index='1';
//var index='';
var index= '<?php echo $index; ?>';
//alert(index);
// var index=$('#txtRowCount').val();
var userid = '';
var NilType = '<?php echo NILTYPE;?>';
var PercentageType = '<?php echo PERCENTAGE;?>';
@ -2015,16 +2049,16 @@ var NilType = '<?php echo NILTYPE;?>';
};
var paymentday=<?php echo json_encode($PaymentDays,JSON_PRETTY_PRINT)?>;
if (paymentday=="After")
{
//alert();
document.getElementById("After").checked = true;
}
else
{
document.getElementById("Before").checked = true;
}
// var paymentday=<?php echo json_encode($PaymentDays,JSON_PRETTY_PRINT)?>
// if (paymentday=="After")
// {
// //alert();
// document.getElementById("After").checked = true;
// }
// else
// {
// document.getElementById("Before").checked = true;
// }
// $('#ExchangeRate').val(<?php echo $ExchangeRate;?>);
$('#EditAvlBudAmt').val(<?php echo $AvlAmount; ?>);
@ -3088,7 +3122,7 @@ function CalculateCtable()
{
$('#RMCIncludingCustomers').val(Math.round(txtrmc));
}
total=<?php echo CALCULATE_TOTAL;?>;
//total=<?php echo CALCULATE_TOTAL;?>;
$('#TotalExp').val(Math.round(basicamt));
@ -3127,13 +3161,15 @@ function EditCalculateCtable()
//txtrmc=txtpurchaserate+txtcustomdutyexp;
txtrmc=<?php echo RMC_CAL;?>;
$('#EditRMCIncludingCustomers').val(txtrmc);
total=<?php echo CALCULATE_TOTAL;?>;
// total=<?php echo CALCULATE_TOTAL;?>;
$('#EditTotalExp').val(basicamt);
//var a=parseFloat($('#EditTotalExp').val());
//console.log(basicamt);
}
//index = parseInt(index)+1;
$('.AddImport').click(function()
@ -3143,9 +3179,10 @@ $('.AddImport').click(function()
if(validateImport())
{
//alert('in');
index = parseInt(index)+1;
var temp = index;
//alert('in');
//alert(index);
var Reqnumber = $('#ReqNo').val();
//alert(JSON.strigify(Reqnumber));
var departmentName =$('#deptName').val();
@ -3204,11 +3241,11 @@ $('.AddImport').click(function()
});
//index = parseInt(index)+1;
populateValueMainFormForImportTax();
index = parseInt(index)+1;
//alert('in');
var template = jQuery("#ImportList").html();
$('#ImportAppend').append(_.template(template,{index:temp,ReqNo:Reqnumber,ItemName:materialName,Quantity:quantity,UOM:uom,Rate:itemRate,BasicAmount:BasicAmt,Taxvalue:taxamt,TotalValue:totalexp}));
@ -3224,7 +3261,7 @@ $('.AddImport').click(function()
addHidden(theForm,"Reqnumber"+temp,Reqnumber );
addHidden(theForm,"departmentName"+temp,departmentName );
addHidden(theForm,"AvilBudget"+temp,AvilBudget );
addHidden(theForm,"AvlBudAmt"+temp,AvilBudget );
addHidden(theForm,"costCode"+temp,costCode );
addHidden(theForm,"materialCode"+temp,materialCode );
addHidden(theForm,"materialName"+temp,materialName );
@ -3233,37 +3270,40 @@ $('.AddImport').click(function()
addHidden(theForm,"itemRate"+temp,itemRate);
addHidden(theForm,"BasicAmt"+temp,BasicAmt);
addHidden(theForm,"taxamt"+temp,taxamt);
addHidden(theForm,"Exchangerate"+temp,Exchangerate);
addHidden(theForm,"ExchangeRate"+temp,Exchangerate);
addHidden(theForm,"BasicPriceTax"+temp,BasicPriceTax);
addHidden(theForm,"BasicPriceinUS"+temp,Basicpriceinus);
addHidden(theForm,"AfterBasicPriceTax"+temp,AfterBasicPrice);
addHidden(theForm,"LandingChargee"+temp,LandingChargee);
addHidden(theForm,"AfterLandingChargee"+temp,AfterLandingChargee);
addHidden(theForm,"Highseass"+temp,Highseass);
addHidden(theForm,"AfterHighseass"+temp,AfterHighseass);
addHidden(theForm,"Customduty"+temp,CustomDutyy);
addHidden(theForm,"AfterCustomduty"+temp,AfterCustomDutyy);
addHidden(theForm,"ExcisedutyTax"+temp,ExciseDutyy);
addHidden(theForm,"AfterExcisedutyTax"+temp,AfterExciseDutyy);
addHidden(theForm,"ExcisedutyED"+temp,ExciseDutyEd);
addHidden(theForm,"AfterExcisedutyED"+temp,AfterExciseDutyEd);
addHidden(theForm,"ExcisedutySH"+temp,ExciseDutySH);
addHidden(theForm,"AfterExcisedutySH"+temp,AfterExciseDutySH);
addHidden(theForm,"LandingCharge"+temp,LandingChargee);
addHidden(theForm,"AfterLandingCharge"+temp,AfterLandingChargee);
addHidden(theForm,"HighSeasSalesCharge"+temp,Highseass);
addHidden(theForm,"AfterHighSeasSalesCharge"+temp,AfterHighseass);
addHidden(theForm,"CustomDuty"+temp,CustomDutyy);
addHidden(theForm,"AfterCustomDuty"+temp,AfterCustomDutyy);
addHidden(theForm,"ExciseDuty"+temp,ExciseDutyy);
addHidden(theForm,"AfterExciseDuty"+temp,AfterExciseDutyy);
addHidden(theForm,"ExciseDutyEdCess"+temp,ExciseDutyEd);
addHidden(theForm,"AfterExciseDutyEdCess"+temp,AfterExciseDutyEd);
addHidden(theForm,"ExciseDutySHCess"+temp,ExciseDutySH);
addHidden(theForm,"AfterExciseDutySHCess"+temp,AfterExciseDutySH);
addHidden(theForm,"CustomEDcess"+temp,CustomED);
addHidden(theForm,"AfterCustomEDcess"+temp,AfterCustomED);
addHidden(theForm,"CustomSHcess"+temp,CustomSH);
addHidden(theForm,"AfterCustomSHcess"+temp,AfterCustomSH);
addHidden(theForm,"AdditionalExciseduty"+temp,AdditnlExcise);
addHidden(theForm,"AfterAdditionalExciseduty"+temp,AfterAdditnlExcise);
addHidden(theForm,"CustomSHCess"+temp,CustomSH);
addHidden(theForm,"AfterCustomSHCess"+temp,AfterCustomSH);
addHidden(theForm,"AddlExciseDuty"+temp,AdditnlExcise);
addHidden(theForm,"AfterAddlExciseDuty"+temp,AfterAdditnlExcise);
addHidden(theForm,"Grossdutypayable"+temp,GrossDuty);
addHidden(theForm,"Grossexpenses"+temp,Grossexpenseduetocustom);
addHidden(theForm,"PurQuantity"+temp,PurchaseQuantity);
addHidden(theForm,"purchaserate"+temp,purate);
addHidden(theForm,"CustomDutyExpenses"+temp,CustomDutyExpense);
addHidden(theForm,"RMCIncludingCustomers"+temp,RMCIncluderate);
addHidden(theForm,"AvilableModvat"+temp,Avlmodvat);
addHidden(theForm,"TotalExp"+temp,totalexp);
addHidden(theForm,"TotalitemExp"+temp,TotalValue);
addHidden(theForm,"Grossexpensesduetocustomduty"+temp,Grossexpenseduetocustom);
addHidden(theForm,"QuantityKG"+temp,PurchaseQuantity);
addHidden(theForm,"purchaseratePerKG"+temp,purate);
addHidden(theForm,"CustomDutyExpensesPerKG"+temp,CustomDutyExpense);
addHidden(theForm,"RMCIncludingCustomersPerKG"+temp,RMCIncluderate);
addHidden(theForm,"AvailableModvat"+temp,Avlmodvat);
addHidden(theForm,"TotalValue"+temp,totalexp);
//addHidden(theForm,"TotalitemExp"+temp,TotalValue);
// alert(JSON.stringify(totalexp));
@ -3271,7 +3311,9 @@ $('.AddImport').click(function()
// addHidden(theForm,"AfterBasicPriceTax"+temp,AfterBasicPriceTax);
//addHidden(theForm,"AfterBasicPriceTax"+temp,AfterBasicPriceTax);
$('#txtRowCount').val(temp);
$('#txtRow').val(index);
var a=parseFloat($('#txtRow').val());
alert(a)
clearTaxField();
@ -3386,7 +3428,7 @@ $('#txttotalavlmodvat').val((parseFloat(TotalAvlmodvat) + parseFloat(AvailableMo
$('#txttotalgrossexpense').val((parseFloat(TotalGrossExpense) + parseFloat(Grossexpenses)).toFixed(2) );
$('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(2) );
//alert(JSON.stringify(totalexp));
alert(TotalOrder);
//alert(TotalOrder);
@ -3537,6 +3579,7 @@ $('.EditImport').click(function(){
var editQuantity = $('#EditQuantity').val();
var itemRate = $("#EditRate").val();
var BasicValue=$("#EdittxtBasicValue").val();
var BasicUSPrice=$("#EditimBasicPrice").val();
//var BasicValue=$("#EdittxtBasicValue").val();
var BasicPrice=$("#EditBasicPriceTax").val();
var AfterBasicPrice=$("#EditAfterBasicPriceTax").val();
@ -3565,7 +3608,7 @@ $('.EditImport').click(function(){
var Quantity=$("#EditPurQuantity").val();
var CustomDutyExpense=$("#EditCustomDutyExpenses").val();
var RMC=$("#EditRMCIncludingCustomers").val();
var TotalExp=$('#EditTotalExp').val();
var TotalExp=$('#EdittxtBasicValue').val();
//alert(itemRate);
var tr= document.getElementById(userid);
@ -3583,33 +3626,37 @@ $('.EditImport').click(function(){
$('#Quantity'+userid).val(EditQuantity);
$('#itemRate'+userid).val(itemRate);
$('#BasicAmt'+userid).val(BasicValue);
$('#BasicPriceInMTon'+userid).val(BasicUSPrice);
$('#BasicPriceTax'+userid).val(BasicPrice);
$('#AfterBasicPriceTax'+userid).val(AfterBasicPrice);
$('#LandingChargee'+userid).val(Landingcharge);
$('#AfterLandingChargee'+userid).val(AfterLanding);
$('#Highseass'+userid).val(Highseass);
$('#AfterHighseass'+userid).val(AfterHighseas);
$('#Customduty'+userid).val(CustomDuty);
$('#AfterCustomduty'+userid).val(AfterCustomDuty);
$('#ExcisedutyTax'+userid).val(ExciseDuty);
$('#AfterExcisedutyTax'+userid).val(AfterExciseDuty);
$('#ExcisedutyED'+userid).val(ExciseEd);
$('#AfterExcisedutyED'+userid).val(AfterExciseEd);
$('#ExcisedutySH'+userid).val(ExciseDutySH);
$('#AfterExcisedutySH'+userid).val(AfterExciseDutySH);
$('#CustomEDcess'+userid).val(CustomED);
$('#AfterCustomEDcess'+userid).val(AfterCustomED);
$('#CustomSHcess'+userid).val(CustomSH);
$('#AfterCustomSHcess'+userid).val(AfterCustomSH);
$('#AdditionalExciseduty'+userid).val(AdditionalExciseduty);
$('#AfterAdditionalExciseduty'+userid).val(AfterAdditionalExciseduty);
$('#LandingCharge'+userid).val(Landingcharge);
$('#AfterLandingCharge'+userid).val(AfterLanding);
$('#HighSeasSalesCharge'+userid).val(Highseass);
$('#AfterHighSeasSalesCharge'+userid).val(AfterHighseas);
$('#CustomDuty'+userid).val(CustomDuty);
$('#AfterCustomDuty'+userid).val(AfterCustomDuty);
$('#ExciseDuty'+userid).val(ExciseDuty);
$('#AfterExciseDuty'+userid).val(AfterExciseDuty);
$('#ExciseDutyEdCess'+userid).val(ExciseEd);
$('#AfterExciseDutyEdCess'+userid).val(AfterExciseEd);
$('#ExciseDutySHCess'+userid).val(ExciseDutySH);
$('#AfterExciseDutySHCess'+userid).val(AfterExciseDutySH);
$('#CustomEdCess'+userid).val(CustomED);
$('#AfterCustomEdCess'+userid).val(AfterCustomED);
$('#CustomSHCess'+userid).val(CustomSH);
$('#AfterCustomSHCess'+userid).val(AfterCustomSH);
$('#AddlExciseDuty'+userid).val(AdditionalExciseduty);
$('#AfterAddlExciseDuty'+userid).val(AfterAdditionalExciseduty);
$('#Grossdutypayable'+userid).val(GrossDuty);
$('#Grossexpenses'+userid).val(GrossExpense);
$('#purchaserate'+userid).val(PurchaseRate);
$('#PurQuantity'+userid).val(Quantity);
$('#CustomDutyExpenses'+userid).val(CustomDutyExpense);
$('#RMCIncludingCustomers'+userid).val(RMC);
$('#TotalExp'+userid).val(TotalExp);
$('#Grossexpensesduetocustomduty'+userid).val(GrossExpense);
$('#purchaseratePerKG'+userid).val(PurchaseRate);
$('#QuantityKG'+userid).val(Quantity);
$('#CustomDutyExpensesPerKG'+userid).val(CustomDutyExpense);
$('#RMCIncludingCustomersPerKG'+userid).val(RMC);
$('#TotalValue'+userid).val(TotalExp);
$('#AvailableModvat'+userid).val(AvailaleModvat);
//var a=parseFloat($('#AfterAddlExciseDuty'+userid).val());
//console.log(a);
populateValueMainFormForEditImportTax();
@ -3631,6 +3678,8 @@ function populateValueMainFormForEditImportTax()
var TotalGrossDuty=0;
var TotalAvlmodvat=0;
var TotalGrossExpense=0;
var Totalvalue=0;
var TotalOrdervalue=0;
var i = 0;
var TotalRMC=0;
do{
@ -3641,20 +3690,36 @@ function populateValueMainFormForEditImportTax()
cells = tr.getElementsByTagName('td');
var rowid = cells[0].innerHTML;
var AfterLandingCharge= $('#AfterLandingCharge').val() == '' ? '0.00' : $('#AfterLandingCharge').val();
var AfterHighseas=$('#AfterHighseas').val()==''?'0.00':$('#AfterHighseas').val();
var AfterCustomduty=$('#AfterCustomduty').val()==''?'0.00':$('#AfterCustomduty').val();
var AfterExcisedutyTax=$('#AfterExcisedutyTax').val()==''?'0.00':$('#AfterExcisedutyTax').val();
var AfterExcisedutyEDcess=$('#AfterExcisedutyEDcess').val()==''?'0.00':$('#AfterExcisedutyEDcess').val();
var AfterExciseDutySH=$("#AfterExcisedutySHcess").val()==''?'0.00':$('#AfterExcisedutySHcess').val();
var AfterAdditionalExciseduty=$('#AfterAdditionalExciseduty').val()==''?'0.00':$('#AfterAdditionalExciseduty').val();
var AfterCustomEDcess=$('#AfterCustomEDcess').val()==''?'0.00':$('#AfterCustomEDcess').val();
var AfterCustomSHcess=$('#AfterCustomSHcess').val()==''?'0.00':$('#AfterCustomSHcess').val();
var AdditionalExciseduty=$('#AdditionalExciseduty').val()==''?'0.00':$('#AdditionalExciseduty').val();
var Grossdutypayable=$('#Grossdutypayable').val()==''?'0.00':$('#Grossdutypayable').val();
var AvailableModvat=$('#AvailableModvat').val()==''?'0.00':$('#AvailableModvat').val();
var Grossexpenses=$('#Grossexpenses').val()==''?'0.00':$('#Grossexpenses').val();
var RMC=$('#RMCIncludingCustomers').val()==''?'0.00':$('#RMCIncludingCustomers').val();
var AfterLandingCharge= $('#AfterLandingCharge'+rowid).val() == '' ? '0.00' : $('#AfterLandingCharge'+rowid).val();
//console.log(AfterLandingCharge);
var AfterHighseas=$('#AfterHighSeasSalesCharge'+rowid).val()==''?'0.00':$('#AfterHighSeasSalesCharge'+rowid).val();
var AfterCustomduty=$('#AfterCustomDuty'+rowid).val()==''?'0.00':$('#AfterCustomDuty'+rowid).val();
var AfterExcisedutyTax=$('#AfterExciseDuty'+rowid).val()==''?'0.00':$('#AfterExciseDuty'+rowid).val();
var AfterExcisedutyEDcess=$('#AfterExciseDutyEdCess'+rowid).val()==''?'0.00':$('#AfterExciseDutyEdCess'+rowid).val();
var AfterExciseDutySH=$('#AfterExciseDutySHCess'+rowid).val()==''?'0.00':$('#AfterExciseDutySHCess'+rowid).val();
var AfterAdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
var AfterCustomEDcess=$('#AfterCustomEdCess'+rowid).val()==''?'0.00':$('#AfterCustomEdCess'+rowid).val();
var AfterCustomSHcess=$('#AfterCustomSHCess'+rowid).val()==''?'0.00':$('#AfterCustomSHCess'+rowid).val();
//var AdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
var Grossdutypayable=$('#Grossdutypayable'+rowid).val()==''?'0.00':$('#Grossdutypayable'+rowid).val();
var AvailableModvat=$('#AvailableModvat'+rowid).val()==''?'0.00':$('#AvailableModvat'+rowid).val();
var Grossexpenses=$('#Grossexpensesduetocustomduty'+rowid).val()==''?'0.00':$('#Grossexpensesduetocustomduty'+rowid).val();
var Totalvalue=$('#TotalValue'+rowid).val()==''?'0.00':$('#TotalValue'+rowid).val();
//var RMC=$('#RMCIncludingCustomers'+rowid).val()==''?'0.00':$('#RMCIncludingCustomers'+rowid).val();
//console.log(Totalvalue);
// console.log(AfterHighseas);
// console.log(AfterCustomduty);
// console.log(AfterExcisedutyTax);
// console.log(AfterExcisedutyEDcess);
// console.log(AfterExciseDutySH);
// console.log(AfterAdditionalExciseduty);
// console.log(AfterCustomEDcess);
// console.log(AfterCustomSHcess);
//console.log(AfterAdditionalExciseduty);
// console.log(Grossdutypayable);
// console.log(AvailableModvat);
// console.log(Grossexpenses);
TotalLanding = parseFloat(TotalLanding) + parseFloat(AfterLandingCharge);
TotalHighseas = parseFloat(TotalHighseas) + parseFloat(AfterHighseas);
TotalCustom = parseFloat(TotalCustom) + parseFloat(AfterCustomduty);
@ -3663,40 +3728,15 @@ TotalExciseED = parseFloat(TotalExciseED ) + parseFloat(AfterExcisedutyEDcess);
TotalExciseSH = parseFloat(TotalExciseSH) + parseFloat(AfterExciseDutySH);
TotalCustomED = parseFloat(TotalCustomED) + parseFloat(AfterCustomEDcess);
TotalCustomSH = parseFloat(TotalCustomSH ) + parseFloat(AfterCustomSHcess);
TotalAdditionalExcise = parseFloat(TotalAdditionalExcise ) + parseFloat(AdditionalExciseduty);
TotalAdditionalExcise = parseFloat(TotalAdditionalExcise ) + parseFloat(AfterAdditionalExciseduty);
TotalGrossDuty = parseFloat(TotalGrossDuty) + parseFloat(Grossdutypayable);
TotalAvlmodvat = parseFloat(TotalAvlmodvat ) + parseFloat(AvailableModvat);
TotalGrossExpense = parseFloat(TotalGrossExpense ) + parseFloat(Grossexpenses);
TotalOrdervalue=parseFloat(TotalOrdervalue)+parseFloat(Totalvalue);
//TotalRMC=parseFloat(TotalRMC)+parseFloat(RMC);
var AfterLandingCharge= $('#AfterLandingCharge').val() == '' ? '0.00' : $('#AfterLandingCharge').val();
var AfterHighseas=$('#AfterHighseas').val()==''?'0.00':$('#AfterHighseas').val();
var AfterCustomduty=$('#AfterCustomduty').val()==''?'0.00':$('#AfterCustomduty').val();
var AfterExcisedutyTax=$('#AfterExcisedutyTax').val()==''?'0.00':$('#AfterExcisedutyTax').val();
var AfterExcisedutyEDcess=$('#AfterExcisedutyEDcess').val()==''?'0.00':$('#AfterExcisedutyEDcess').val();
var AfterExciseDutySH=$("#AfterExcisedutySHcess").val()==''?'0.00':$('#AfterExcisedutySHcess').val();
var AfterCustomEDcess=$('#AfterCustomEDcess').val()==''?'0.00':$('#AfterCustomEDcess').val();
var AfterCustomSHcess=$('#AfterCustomSHcess').val()==''?'0.00':$('#AfterCustomSHcess').val();
var AfterAdditionalExciseduty=$('#AfterAdditionalExciseduty').val()==''?'0.00':$('#AfterAdditionalExciseduty').val();
var Grossdutypayable=$('#Grossdutypayable').val()==''?'0.00':$('#Grossdutypayable').val();
var AvailableModvat=$('#AvailableModvat').val()==''?'0.00':$('#AvailableModvat').val();
var Grossexpenses=$('#Grossexpenses').val()==''?'0.00':$('#Grossexpenses').val();
var totalexp=$('#TotalExp').val()==''?'0.00':$('#TotalExp').val();
var TotalLanding=$('#txttotallanding').val()==''?'0.00':$('#txttotallanding').val();
var TotalHighseas=$('#txttotalhighseas').val()==''?'0.00':$('#txttotalhighseas').val();
var TotalCustom=$('#txttotalcustom').val()==''?'0.00':$('#txttotalcustom').val();
var TotalExcise=$('#txttotalexcise').val()==''?'0.00':$('#txttotalexcise').val();
var TotalExciseED=$('#txttotalexciseED').val()==''?'0.00':$('#txttotalexciseED').val();
var TotalExciseSH=$('#txttotalexciseSH').val()==''?'0.00':$('#txttotalexciseSH').val();
var TotalCustomED=$('#txttotalcustomED').val()==''?'0.00':$('#txttotalcustomED').val();
var TotalCustomSH=$('#txttotalcustomSH').val()==''?'0.00':$('#txttotalcustomSH').val();
var TotalAdditionalExcise=$('#txttotalAdditionalExciseduty').val()==''?'0.00':$('#txttotalAdditionalExciseduty').val();
var TotalGrossDuty=$('#txttotalgrossduty').val()==''?'0.00':$('#txttotalgrossduty').val();
var TotalAvlmodvat=$('#txttotalavlmodvat').val()==''?'0.00':$('#txttotalavlmodvat').val();
var TotalGrossExpense=$('#txttotalgrossexpense').val()==''?'0.00':$('#txttotalgrossexpense').val();
var TotalOrder=$('#txtToatlOrder').val()==''?'0.00':$('txtToatlOrder').val();
//console.log(Totalvalue);
}
@ -3715,8 +3755,9 @@ var TotalOrder=$('#txtToatlOrder').val()==''?'0.00':$('txtToatlOrder').val();
$('#txttotalgrossduty').val(parseFloat(TotalGrossDuty).toFixed(2));
$('#txttotalavlmodvat').val(parseFloat(TotalAvlmodvat).toFixed(2));
$('#txttotalgrossexpense').val(parseFloat(TotalGrossExpense).toFixed(2));
$('#txtToatlOrder').val(parseFloat(TotalOrder).toFixed(2));
$('#txtToatlOrder').val(parseFloat(TotalOrdervalue).toFixed(2));
//var a=parseFloat($('#txttotallanding').val());
//console.log(a);
//$('#txttotallanding').val(parseFloat(TotalLanding).toFixed(2));
@ -3829,6 +3870,8 @@ TotalOrderValue=parseFloat(TotalOrderValue)-parseFloat()
function Save(status)
{
//alert();
if(status == '0')
{
stat = '<?php echo PO_DRAFT; ?>';
@ -3839,30 +3882,35 @@ else
}
$('#txtStatus').val(stat);
//var txtRowCount = $('#txtRowCount').val();
//var Row=$('#txtRow').val();
//alert(Row);
//exit();
var Row=$('#txtRow').val();
//alert(Row);
var txtRowCount = $('#txtRowCount').val();
var txtDeletedRow = $('#txtDeletedRow').val();
//alert(stat);
//alert(JSON.stringify(txtStatus));
//alert(Row);
//alert(txtRowCount);
//exit();
//var TotalOrder=$('#txtToatlOrder').val();
//alert(TotalOrder);
//exit();
if(validate())
{
{ //alert();
if(document.getElementById('ImportTax').rows.length <= 0)
{
alert('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
else
{
//alert();
$('#content').loader('show');
$.ajax({
data:$('.ImportPO').serialize()+"&txtRowCount="+txtRowCount+"&txtDeletedRow="+txtDeletedRow+"&textStatus="+stat,
data:$('.ImportPO').serialize()+"&txtRowCount="+Row+"&txtDeletedRow="+txtDeletedRow+"&textStatus="+stat,
//data:$('.CreatealterPO').serialize()+"&TextRowCount="+TextRowCount+"&TextDeQletedRowCount="+TextDeletedRowCount+"&TextTotalOrderValueSummaryService="+TextTotalOrderValueSummaryService+"&TextSpcialInstruction="+TextSpcialInstruction+"&TextExchangerate"+ExcLandingCharge="+hangerate+"Status="+TextStatus,
type:"POST",
@ -3876,7 +3924,7 @@ if(validate())
$('#txtDeletedRow').val('');
//$('#SpcialInstruction').val('');
//$('#txtDeliveryAddress').val('');
window.location = "purchaseorderListing";
// window.location = "purchaseorderListing";
}
else

View File

@ -9,13 +9,19 @@ $CurrentDate = $dt->format('d-m-y');
$CostCenterCode='';
$StoreReqNo='';
$StatusCode ='';
foreach ($cost as $key ) {
$CostCenterCode = $key->CostCenterName;
$StoreReqNo=$key->StoreReqNo;
//print_r($CostCenterCode);# code...
}
foreach ($Status as $key ) {
$StatusCode = $key->Status;
}
?>
<script>
@ -377,15 +383,23 @@ $(function() {
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<input type="hidden" name="txtStatus" id="txtStatus" />
<!--<a class="btn btn-primary Save" ID="Save" onclick="Save()" >&nbsp;&nbsp;<span class="bold">Save</span></a> -->
<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a>
<a class="btn btn-primary Submit" ID="Submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<!--<input type="Submit" class="btn btn-info" />-->
<input type="reset" class="btn btn-info" value="Reset" />
<?php if($StatusCode == STORE_DRAFT)
{ ?>
<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a>
<a class="btn btn-primary submit" ID="submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<input type="reset" class="btn btn-primary">
<?php }
else if($StatusCode == STORE_PENDINGAPPROVAL)
{?>
<!--<a class="btn btn-primary" ID="update" onclick="update()" >&nbsp;&nbsp;<span class="bold">Update</span></a>
<a class="btn btn-primary" href="<?php echo base_url(); ?>Requisition" ID="cancel">&nbsp;&nbsp;<span class="bold">Cancel</span></a> -->
<a class="btn btn-primary Save" ID="submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Update</span></a>
<?php } ?>
</div>
</form>
</div>
@ -439,7 +453,35 @@ function isNumberKey(evt)
</script>
<script>
$(function() {
var j=0;
var ReqLineItem = <?php echo json_encode($LineItem, JSON_PRETTY_PRINT) ?>;
$.each(ReqLineItem, function(idx, obj) {
//$("#SupAddress").val(obj.Address);
j= j +1 ;
$('<input>').attr({
type: 'hidden',
id: 'MaterialCode' + j,
name: 'MaterialCode'+ j,
value:obj.MaterialCode
}).appendTo('form');
$('<input>').attr({
type: 'hidden',
id: 'Quantity' + j,
name: 'Quantity'+ j,
value:obj.Quantity
}).appendTo('form');
$('<input>').attr({
type: 'hidden',
id: 'Remarks' + j,
name: 'Remarks'+ j,
value:obj.Remarks
}).appendTo('form');
});
$( ".datePicker" ).datepicker({ dateFormat: 'dd/mm/yy' });
//Initialize Select2 Elements
@ -799,7 +841,7 @@ else
$.ajax({
data:$('.requistion').serialize(),
type:"POST",
url:"<?php echo base_url() ?>storerequisitionlist/EditStoreRequisitions?ID="+id+"&RequestedBy="+RequestedBy+"&CostCenter="+CostCenter+"&DEPCode="+DEPCode+"&txtRowCount="+txtRowCount,
url:"<?php echo base_url() ?>storerequisitionlist/UpdateStoreRequistion",
success:function(data) {
if(data)
@ -809,7 +851,7 @@ else
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
//window.location = "storerequisitionlist";
window.location = "storerequisition";
}
else

View File

@ -12,6 +12,12 @@
$DeliveryDate ='';
$ServiceDescription = '';
$ReqBy='';
$PaymentTerms='';
$PaymentDays='';
$PayableAT='';
$index=0;
if(!empty($CompanyDetails))
{
@ -42,8 +48,10 @@
$ServiceDescription =$PO->ServiceDescription;
$CostCenterCode=$PO->CostCenterCode;
//$ReqBy=$PO->Requestedby;
$PaymentTerms=$PO->PaymentTerms;
$PaymentTerms = $PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
$PayableAT=$PO->PayableAT;
}
}
@ -83,6 +91,9 @@
}
?>
<style>
@page { margin: 310px 50px 30px 50px; }
@ -92,24 +103,34 @@
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div class="header">
<div><center>
<h2>IMPORT PURCHASE ORDER</h2>
<a style="color:#515151">PO NO:<?php echo $PONO?> </a></center>
</div>
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div>Draft</div>';
}
<div class="header">
<table>
<tr>
<td>
<img width="80" height="80" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg==">
</td>
<td><center><h2>IMPORT PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a><br/><b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></center></td>
<td>
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div><br/><br/>This is Draft Version For Internal Purpose</div>';
}
?>
<div align="right"> <?php echo $Podt?> </div>
<p>
<b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
?>
</td>
</tr>
</table>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr><th>Payment Terms</th><th>Payable At</th><th>Payment Days</th><th>Delivery Date</th><th>PO Date</th></tr>
<tr><td><?php echo $PaymentTerms;?></td><td><?php echo $PayableAT;?></td><td><?php echo $PaymentDays;?></td><td><?php echo $DeliveryDate;?></td><td><?php echo $Podt?></td></tr>
</table>
<br/>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr>
<td>
<a style="color:#3c8dbc">Vendor Address :</a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?>
@ -118,14 +139,12 @@
<a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?>
</td>
</td>
<td> <a style="color:#3c8dbc">Delivery Date :</a><br/><?php echo $DeliveryDate?>
</tr>
</table>
</div>
<div class="page">
<div class="page">
<table style="border-collapse:collapse;" cellpadding="0" cellspacing="0" border="1" width="100%" >
<tr style="background:#000;color:#fff;">
<tr style="background:#8c8c8c;color:#fff;">
<th>#</th>
<th>Item and Description</th>
<th>Qty</th>
@ -316,11 +335,21 @@
</tr>
--><tr>
-->
<tr>
<td align="right"><p><b>Total Order Amount </b></p></td>
<td align="right"><?php echo "$CurrencyCode ($CurrencyName)$TotalOrderValue";?></td>
</tr>
</table>
</div>
<table>
<tr>
<td>Total Amount In Words:</td>
<td><?php echo $TotalAmountInWords." "."Only.";?></td>
</tr>
</table>
<!-- table to show req detail , Data should come from DB , now i am hard coded the data-->
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
@ -329,14 +358,8 @@
<td>Requested by :<br/><?php echo $ReqBy;?></td>
<td>Requisted Department :<br/><?php echo $DEPNAME?></td>
<td>Cost center :<br/><?php echo $CostCenterCode?></td>
</tr>
</table>
</div>
<!-- This day should comes from po it is editable in po screen-->
<div> Payment Terms *<br/><?php echo $PaymentTerms;?></div>
</tr>
</table>
</div>

View File

@ -508,7 +508,17 @@
</li>
<?php
}
}
if($DEPCode == STORE)
{?>
<li class="treeview">
<a href="<?php echo base_url(); ?>Distribution">
<i class="fa fa-eye"></i>
<span>Material Distribution List</span>
</a>
</li>
<?php }
?>
</ul>
</li>

View File

@ -1,461 +0,0 @@
<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>

View File

@ -160,7 +160,7 @@ $(function() {
<td align="right"><?php echo $record->QuantityRequired ?></td>
<td align="left"><?php echo $record->Remarks ?></td>
<td align="left"> <input type="text" onchange="SaveIssueQuantity(<?php echo $index ?>)" id="<?php echo 'issuedQuantity'.$index ?>" name="<?php echo 'issuedQuantity'.$index ?>" class="form required" onkeypress="return isNumberKey(event);"value="<?php echo $record->QuantityIssued; ?>">
<td align="left"> <input type="text" onchange="SaveIssueQuantity(<?php echo $index ?>,<?php echo $record->QuantityRequired ?>)" id="<?php echo 'issuedQuantity'.$index ?>" name="<?php echo 'issuedQuantity'.$index ?>" class="form required" onkeypress="return isNumberKey(event);"value="<?php echo $record->QuantityIssued; ?>">
</td>
@ -275,13 +275,26 @@ function isNumberKey(evt)
var index = '1';
var userid = '';
function SaveIssueQuantity(RowId)
function SaveIssueQuantity(RowId,ReqQty)
{
//alert(ReqQty);
var qty = $("#issuedQuantity"+RowId).val();
//alert(qty);
if( qty != '')
{
$("#txtIssuedQuantity"+RowId).val(qty);
if(qty <= ReqQty )
{
$("#txtIssuedQuantity"+RowId).val(qty);
}
else
{
alert('The Issued Quantity cannot be more than the Requested Quantity');
$("#issuedQuantity"+RowId).focus();
$("#issuedQuantity"+RowId).val('');
return false;
}
}
}
function SaveRemarks(RowId)

View File

@ -1,357 +1,357 @@
<?php
$IGRNO="";
$PONO="";
$VehicleNo="";
$CourierNo="";
$DeliveryChellanOrInvoiceNo="";
$SupplierName="";
$DeliveryChellanDate="";
$dcdate="";
$Address="";
$PORasiedbyName="";
$PODate="";
$podate="";
$IGRDate="";
$igrdate="";
$ServiceDescription="";
$RowCount = 0;
if(!empty($IGRDetails))
{
foreach ($IGRDetails as $IGR)
{
$IGRNO = $IGR->IGRNO;
$PONO = $IGR->PONO;
$VehicleNo = $IGR->VehicleNo;
$CourierNo= $IGR->CourierNo;
$DeliveryChellanOrInvoiceNo=$IGR->DeliveryChellanOrInvoiceNo;
$SupplierName=$IGR->SupplierName;
//$DeliveryChellanDate=$IGR->DeliveryChellanDate;
$dc_date = new DateTime( $IGR->DeliveryChellanDate );
$dcdate = $dc_date->format('d/m/Y');;
$Address=$IGR->Address;
$PORasiedbyName=$IGR->FirstName;
$PODate=$IGR->PODate;
$po_date = strtotime( $PODate );
$podate = date( 'd/m/Y', $po_date );
$IGRDate=$IGR->CreatedDate;
$igr_date = strtotime( $IGRDate );
$igrdate = date( 'd/m/Y', $igr_date );
$ServiceDescription=$IGR->ServiceDescription;
}
}
?>
<script>
$(document).ready(function(){
$("#QualityIncharge").select2();
$("#plantIncharge").select2();
});//ready closed.
</script>
<style>
.modal
{
padding-right:25% ! important;
}
.select2
{
width: 100% ! important;
}
.num{
text-align:right;
}
.dataTables_wrapper {
padding-bottom: 0px;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<center>Siddharth Industries - Material Receipt And Inspection Report (MRIR)<!-- MRIR Number Should come --></center>
</h1>
<?php
$attributes = array('class' => 'form-label-left MRIR ','name' => 'MRIR','id' => 'MRIR');
echo form_open($this->config->base_url().'/MRIRcontroller/generateMRIR/',$attributes); ?>
</section>
<section class="content"><br/>
<div id="content"></div>
<div class="row">
<div class="col-md-9">
<div class="col-md-12">
<div class="col-md-4">
<label for="IGRNO">Inward Gate Register Number</label>
<div class="form-group">
<?php
$data = array('name' => 'IGRNO','value' => set_value('IGRNO',$IGRNO),'id'=>'IGRNO', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="IGRNO">Inward Gate Register Date</label>
<div class="form-group">
<?php
$data = array('name' => 'IGRDate','value' => set_value('IGRDate',$igrdate),'id'=>'IGRDate', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="SupplierName">Supplier Name </label>
<div class="form-group">
<?php
$data = array('name' => 'SupplierName','value' => set_value('SupplierName',$SupplierName),'id'=>'SupplierName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<label for="PONO">Purchase Order Number</label>
<div class="form-group"><?php
$data = array('name' => 'PONO','value' => set_value('PONO',$PONO),'id'=>'PONO', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="PODate">Purchase Order Date</label>
<div class="from-group">
<?php
$data = array('name' => 'PODate','value' => set_value('PODate',$podate),'id'=>'PODate', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="PORasiedbyName">Purchase Order Raised By</label>
<div class="from-group"><?php
$data = array('name' => 'PORasiedbyName','value' => set_value('PORasiedbyName',$PORasiedbyName),'id'=>'PORasiedbyName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<label for="DeliveryChellanOrInvoiceNo">Delivery Challan / Invoice Number</label>
<div class="form-group">
<?php
$data = array('name' => 'DeliveryChellanOrInvoiceNo','value' => set_value('DeliveryChellanOrInvoiceNo',$DeliveryChellanOrInvoiceNo),'id'=>'DeliveryChellanOrInvoiceNo', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="DeliveryChellanDate">Delivery Challan / Invoice Date </label>
<div class="form-group"><?php
$data = array('name' => 'DeliveryChellanDate','value' => set_value('DeliveryChellanDate',$dcdate),'id'=>'DeliveryChellanDate', 'class' => 'form-control num','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label>Store Incharge</label>
<?php
$data = array('name' => 'StoreIncharge','value' => set_value('StoreInchargeID',$name),'id'=>'StoreIncharge', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<label for="VehicleNo">Vehicle Number</label>
<div class="form-group">
<?php
$data = array('name' => 'VehicleNo','value' => set_value('VehicleNo',$VehicleNo),'id'=>'VehicleNo', 'class' => 'form-control' ,'readonly' => 'true','align' => 'left');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="CourierNo">Courier Number</label>
<div class="form-group"><?php
$data = array('name' => 'CourierNo','value' => set_value('CourierNo',$CourierNo),'id'=>'CourierNo', 'class' => 'form-control','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="col-md-12">
<label for="Address">Supplier Address</label>
<div class="form-group">
<?php
$data = array('name' => 'Address','value' => set_value('Address',$Address),'id'=>'Address', 'class' => 'form-control' ,'readonly' => 'true' , 'rows'=>'4' ,'columns'=> '3');
echo Form_textarea($data);
?>
</div>
</div>
<div class="col-md-12">
<label for="Address">Service Description</label>
<div class="form-group">
<?php
$data = array('name' => 'ServiceDescription','value' => set_value('ServiceDescription',$ServiceDescription),'id'=>'ServiceDescription', 'class' => 'form-control' ,'readonly' => 'true' , 'rows'=>'4' ,'columns'=> '3');
echo Form_textarea($data);
?>
</div>
</div>
</div>
<div class="row" style="padding:3%;">
<div class="col-md-12">
<table id="mytable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<th>Item Code</th>
<th>Material</th>
<th>UOM</th>
<th>Ordered Quantity</th>
<th>Adviced Quantity as per the Challan</th>
<th>Actual Quantity Received</th>
<!--<th>Accepted_Quantity</th>-->
<!--<th>Rejected_Quantity</th>-->
<th>Remarks</th>
</tr>
</thead>
<tbody id="tbleAppend">
<?php $SNo =0;
if(!empty($IGRDetails))
{
foreach($IGRDetails as $record)
{
$SNo =$SNo + 1;
?>
<tr>
<td><?php echo $SNo?></td>
<td><?php echo $record->MaterialCode?></td>
<input type="hidden" name="<?php echo 'MaterialCode'.$SNo ?>" id="<?php echo 'MaterialCode'.$SNo ?>" value=" <?php echo $record->MaterialCode ?> "/>
<td><?php echo $record->MaterialName?></td>
<td><?php echo $record->UOM?></td>
<td class="num"><?php echo $record->Quantity?></td>
<td class="num"><?php echo $record->QuantityAsPerInvoice?></td>
<input type="hidden" name="<?php echo 'QuantityAsPerInvoice'.$SNo ?>" id="<?php echo 'QuantityAsPerInvoice'.$SNo ?>" />
<td><input type="text" id="<?php echo 'ActualQuantity'.$SNo;?>" name="<?php echo 'ActualQuantity'.$SNo;?>" onchange="setactual('<?php echo $SNo;?>');"></td>
<input type="hidden" name="<?php echo 'ActualQuantityReceived'.$SNo ?>" id="<?php echo 'ActualQuantityReceived'.$SNo ?>" value=""/>
<td><input type="text" id="<?php echo 'Remark'.$SNo ?>" name="<?php echo 'Remark'.$SNo ?>" onchange="setremark('<?php echo $SNo;?>');"></td>
<input type="hidden" name="<?php echo 'Remarks'.$SNo ?>" id="<?php echo 'Remarks'.$SNo ?>" />
</tr>
<?php
} //echo $SNo;
}
$RowCount = $SNo;
?>
</tbody>
</table>
<div id="content"></div>
<div class="col-md-1 col-md-offset-11">
<a class="btn btn-primary" type="submit" onclick="savemrir()">Generate MRIR</a>
<input type="hidden" name="RowCount" id="RowCount " value="<?php echo $RowCount ?>" />
</div>
</div>
</div>
</div>
</section>
</div>
<script>
<!-- script for table , It works under the datatable plugin-->
$(function () {
$('#Inwardgateregistertable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true
});
});
</script>
<script>
function setactual(rowId)
{
//alert(rowId);
var actual = parseFloat($('#ActualQuantity'+rowId).val());
//alert(actual);
}
function setremark(rowId)
{
var remark = ($('#Remark'+rowId).val());
//alert(remark);
}
</script>
<script>
function savemrir()
{
//alert("save function worked ");
$("#content").load('show');
$.ajax({
data:$('.MRIR').serialize(),
type:"POST",
url:"<?php echo base_url() ?>MRIRcontroller/stored_db",
success:function(data) {
if(data){
$("#content").load('hide');
alert(data);
window.location ="viewmaterialinspectionreport";
}
else
{
alert("Error");
}
}//success function closed
});//ajax closed
}//save function closed
<?php
$IGRNO="";
$PONO="";
$VehicleNo="";
$CourierNo="";
$DeliveryChellanOrInvoiceNo="";
$SupplierName="";
$DeliveryChellanDate="";
$dcdate="";
$Address="";
$PORasiedbyName="";
$PODate="";
$podate="";
$IGRDate="";
$igrdate="";
$ServiceDescription="";
$RowCount = 0;
if(!empty($IGRDetails))
{
foreach ($IGRDetails as $IGR)
{
$IGRNO = $IGR->IGRNO;
$PONO = $IGR->PONO;
$VehicleNo = $IGR->VehicleNo;
$CourierNo= $IGR->CourierNo;
$DeliveryChellanOrInvoiceNo=$IGR->DeliveryChellanOrInvoiceNo;
$SupplierName=$IGR->SupplierName;
//$DeliveryChellanDate=$IGR->DeliveryChellanDate;
$dc_date = new DateTime( $IGR->DeliveryChellanDate );
$dcdate = $dc_date->format('d/m/Y');;
$Address=$IGR->Address;
$PORasiedbyName=$IGR->FirstName;
$PODate=$IGR->PODate;
$po_date = strtotime( $PODate );
$podate = date( 'd/m/Y', $po_date );
$IGRDate=$IGR->CreatedDate;
$igr_date = strtotime( $IGRDate );
$igrdate = date( 'd/m/Y', $igr_date );
$ServiceDescription=$IGR->ServiceDescription;
}
}
?>
<script>
$(document).ready(function(){
$("#QualityIncharge").select2();
$("#plantIncharge").select2();
});//ready closed.
</script>
<style>
.modal
{
padding-right:25% ! important;
}
.select2
{
width: 100% ! important;
}
.num{
text-align:right;
}
.dataTables_wrapper {
padding-bottom: 0px;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<center>Siddharth Industries - Material Receipt And Inspection Report (MRIR)<!-- MRIR Number Should come --></center>
</h1>
<?php
$attributes = array('class' => 'form-label-left MRIR ','name' => 'MRIR','id' => 'MRIR');
echo form_open($this->config->base_url().'/MRIRcontroller/generateMRIR/',$attributes); ?>
</section>
<section class="content"><br/>
<div id="content"></div>
<div class="row">
<div class="col-md-9">
<div class="col-md-12">
<div class="col-md-4">
<label for="IGRNO">Inward Gate Register Number</label>
<div class="form-group">
<?php
$data = array('name' => 'IGRNO','value' => set_value('IGRNO',$IGRNO),'id'=>'IGRNO', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="IGRNO">Inward Gate Register Date</label>
<div class="form-group">
<?php
$data = array('name' => 'IGRDate','value' => set_value('IGRDate',$igrdate),'id'=>'IGRDate', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="SupplierName">Supplier Name </label>
<div class="form-group">
<?php
$data = array('name' => 'SupplierName','value' => set_value('SupplierName',$SupplierName),'id'=>'SupplierName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<label for="PONO">Purchase Order Number</label>
<div class="form-group"><?php
$data = array('name' => 'PONO','value' => set_value('PONO',$PONO),'id'=>'PONO', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="PODate">Purchase Order Date</label>
<div class="from-group">
<?php
$data = array('name' => 'PODate','value' => set_value('PODate',$podate),'id'=>'PODate', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="PORasiedbyName">Purchase Order Raised By</label>
<div class="from-group"><?php
$data = array('name' => 'PORasiedbyName','value' => set_value('PORasiedbyName',$PORasiedbyName),'id'=>'PORasiedbyName', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<label for="DeliveryChellanOrInvoiceNo">Delivery Challan / Invoice Number</label>
<div class="form-group">
<?php
$data = array('name' => 'DeliveryChellanOrInvoiceNo','value' => set_value('DeliveryChellanOrInvoiceNo',$DeliveryChellanOrInvoiceNo),'id'=>'DeliveryChellanOrInvoiceNo', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="DeliveryChellanDate">Delivery Challan / Invoice Date </label>
<div class="form-group"><?php
$data = array('name' => 'DeliveryChellanDate','value' => set_value('DeliveryChellanDate',$dcdate),'id'=>'DeliveryChellanDate', 'class' => 'form-control num','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label>Store Incharge</label>
<?php
$data = array('name' => 'StoreIncharge','value' => set_value('StoreInchargeID',$name),'id'=>'StoreIncharge', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<label for="VehicleNo">Vehicle Number</label>
<div class="form-group">
<?php
$data = array('name' => 'VehicleNo','value' => set_value('VehicleNo',$VehicleNo),'id'=>'VehicleNo', 'class' => 'form-control' ,'readonly' => 'true','align' => 'left');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4">
<label for="CourierNo">Courier Number</label>
<div class="form-group"><?php
$data = array('name' => 'CourierNo','value' => set_value('CourierNo',$CourierNo),'id'=>'CourierNo', 'class' => 'form-control','readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="col-md-12">
<label for="Address">Supplier Address</label>
<div class="form-group">
<?php
$data = array('name' => 'Address','value' => set_value('Address',$Address),'id'=>'Address', 'class' => 'form-control' ,'readonly' => 'true' , 'rows'=>'4' ,'columns'=> '3');
echo Form_textarea($data);
?>
</div>
</div>
<div class="col-md-12">
<label for="Address">Service Description</label>
<div class="form-group">
<?php
$data = array('name' => 'ServiceDescription','value' => set_value('ServiceDescription',$ServiceDescription),'id'=>'ServiceDescription', 'class' => 'form-control' ,'readonly' => 'true' , 'rows'=>'4' ,'columns'=> '3');
echo Form_textarea($data);
?>
</div>
</div>
</div>
<div class="row" style="padding:3%;">
<div class="col-md-12">
<table id="mytable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<th>Item Code</th>
<th>Material</th>
<th>UOM</th>
<th>Ordered Quantity</th>
<th>Adviced Quantity as per the Challan</th>
<th>Actual Quantity Received</th>
<!--<th>Accepted_Quantity</th>-->
<!--<th>Rejected_Quantity</th>-->
<th>Remarks</th>
</tr>
</thead>
<tbody id="tbleAppend">
<?php $SNo =0;
if(!empty($IGRDetails))
{
foreach($IGRDetails as $record)
{
$SNo =$SNo + 1;
?>
<tr>
<td><?php echo $SNo?></td>
<td><?php echo $record->MaterialCode?></td>
<input type="hidden" name="<?php echo 'MaterialCode'.$SNo ?>" id="<?php echo 'MaterialCode'.$SNo ?>" value=" <?php echo $record->MaterialCode ?> "/>
<td><?php echo $record->MaterialName?></td>
<td><?php echo $record->UOM?></td>
<td class="num"><?php echo $record->Quantity?></td>
<td class="num"><?php echo $record->QuantityAsPerInvoice?></td>
<input type="hidden" name="<?php echo 'QuantityAsPerInvoice'.$SNo ?>" id="<?php echo 'QuantityAsPerInvoice'.$SNo ?>" />
<td><input type="text" id="<?php echo 'ActualQuantity'.$SNo;?>" name="<?php echo 'ActualQuantity'.$SNo;?>" onchange="setactual('<?php echo $SNo;?>');"></td>
<input type="hidden" name="<?php echo 'ActualQuantityReceived'.$SNo ?>" id="<?php echo 'ActualQuantityReceived'.$SNo ?>" value=""/>
<td><input type="text" id="<?php echo 'Remark'.$SNo ?>" name="<?php echo 'Remark'.$SNo ?>" onchange="setremark('<?php echo $SNo;?>');"></td>
<input type="hidden" name="<?php echo 'Remarks'.$SNo ?>" id="<?php echo 'Remarks'.$SNo ?>" />
</tr>
<?php
} //echo $SNo;
}
$RowCount = $SNo;
?>
</tbody>
</table>
<div id="content"></div>
<div class="col-md-1 col-md-offset-11">
<a class="btn btn-primary" type="submit" onclick="savemrir()">Generate MRIR</a>
<input type="hidden" name="RowCount" id="RowCount " value="<?php echo $RowCount ?>" />
</div>
</div>
</div>
</div>
</section>
</div>
<script>
<!-- script for table , It works under the datatable plugin-->
$(function () {
$('#Inwardgateregistertable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true
});
});
</script>
<script>
function setactual(rowId)
{
//alert(rowId);
var actual = parseFloat($('#ActualQuantity'+rowId).val());
//alert(actual);
}
function setremark(rowId)
{
var remark = ($('#Remark'+rowId).val());
//alert(remark);
}
</script>
<script>
function savemrir()
{
//alert("save function worked ");
$("#content").load('show');
$.ajax({
data:$('.MRIR').serialize(),
type:"POST",
url:"<?php echo base_url() ?>MRIRcontroller/stored_db",
success:function(data) {
if(data){
$("#content").load('hide');
alert(data);
window.location ="viewmaterialinspectionreport";
}
else
{
alert("Error");
}
}//success function closed
});//ajax closed
}//save function closed
</script>

View File

@ -127,7 +127,7 @@ if(!empty($PayDetails))
{
$Incentive = $IncenAmt;
}
$TotalSalary = $BasicAndDA+$HRA+$Food+$IncenAmt+$OTSal+$Otherallowances;
$TotalSalary = $WorkedSalary+$HRA+$Food+$IncenAmt+$OTSal+$Otherallowances;
$Adv = $Pay->Advance;
if($Adv == '')
{
@ -220,7 +220,7 @@ if($RecCount > 0)
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Bank Name :</td>
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo $BankBranchName ?></td>
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">OT in Hours:</td>
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo $OTWages ?></td>
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo $OTPerHours ?></td>
</tr>
<tr>
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Bank IFSC :</td>

View File

@ -2144,7 +2144,7 @@ body {
<table>
<div align="right">
<div align="right">
<a data-toggle="modal" ><button type="submit" onclick="openModal();" class="btn btn-primary" id="abcd" >Add Line Item</button> </a>
<a data-toggle="modal" ><button type="submit" onclick="openModal();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>
</div>
<!-- Model for revenue po -->

View File

@ -1,6 +1,7 @@
<?php
$PONO = '';
$postatus ='';
$CompanyAddress = '';
$CompanyName = '';
$SuplierName = '';
@ -13,6 +14,7 @@
$PaymentTerms = '';
$PaymentDays='';
$PayableAT='';
$DeliverySchedule='';
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $CO)
@ -24,17 +26,28 @@
}
if(!empty($POItem))
{
foreach ($POItem as $PO)
{
$PONO = $PO->PONO;
$postatus= $PO->Status;
$SuplierName = $PO->SupplierName;
$SuplierAddress = $PO->Address;
$DeliveryAddress = $PO->DeliveryAddress;
$postatus= $PO->Status;
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y');
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
if($PO->DeliveryOption=='1'){
$DeliveryDate = '';
$DeliverySchedule = $PO->DeliverySchedule;
}
else{
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
$DeliverySchedule = '';
}
$ServiceDescription =$PO->ServiceDescription;
$PaymentTerms = $PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
@ -59,242 +72,275 @@
?>
<div><center><h2>REVENUE PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a></center></div>
<div align="right">
<style>
@page { margin: 300px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -300px; right: 0px; height: 550px;text-align: center; }
.footer { position: fixed; bottom: 0px; }
.pagenum:before { content: counter(page); }
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div class="header">
<table>
<tr>
<td>
<img width="80" height="80" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg==">
</td>
<td><center><h2>REVENUE PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a><br/><b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></center></td>
<td>
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div>This is Draft Version For Internal Purpose</div>';
echo '<div><br/><br/>This is Draft Version For Internal Purpose</div>';
}
?>
<?php echo $Podt?>
</div>
<p><center>
<b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></center></p>
<p align="right">Payment Terms :<?php echo $PaymentTerms;?><br/> Payable At:<?php echo $PayableAT;?><br/> Payment Days:<?php echo $PaymentDays;?><br/>Delivery Date :<?php echo $DeliveryDate;?></p>
<br/>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="105%"><tr><td>
<p><a style="color:#3c8dbc">Vendor Address : </a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?></p></td><td>
<p><a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?><p></td>
</tr></table>
<br/>
<br/>
</td>
</tr>
</table>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr><th>Payment Terms</th><th>Payable At</th><th>Payment Days</th><th>Delivery Date/Schedule</th><th>PO Date</th></tr>
<tr><td><?php echo $PaymentTerms;?></td><td><?php echo $PayableAT;?></td><td><?php echo $PaymentDays;?></td><td><?php echo $DeliveryDate.$DeliverySchedule;?></td><td><?php echo $Podt?></td></tr>
<br/>
</table>
<br/>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr>
<td>
<a style="color:#3c8dbc">Vendor Address :</a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?>
</td>
<td>
<a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?>
</td>
</td>
</tr>
</table>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="105%">
<tr style="background:#000;color:#fff;">
<th>#</th>
<th>Item Description</th>
<th>Qty</th>
<th>Rate <?php echo 'Rate in '.$currencyCode;?></th>
<th>Amount <?php echo 'Rate in '.$currencyCode;?></th>
<th>Discount</th>
<th>Excise Duty</th>
<th>Vat</th>
<th>CST</th>
<th>Packaging</th>
<th>GST</th>
<th>Other Taxes</th>
<th>Insurance</th>
<th>Freight</th>
<th>Total Amount <?php echo 'Rate in '.$currencyCode;?></th>
<th></th>
</tr>
<?php
if(!empty($POItem))
{
$SubTotalAmount = 0;
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
$AfterExciseDuty = 0;
$AfterVAT = 0;
$AfterCST = 0;
$AfterGST = 0;
$AfterOtherTaxes = 0;
$Insurance = 0;
$AfterFreightValue = 0;
$AfterDiscount = 0;
$AfterPackaging = 0;
foreach($POItem as $record)
{
$index = $index + 1;
?>
<tr>
<td><?php echo $index ; ?></td>
<td><?php echo $record->MaterialName ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->Rate ; ?></td>
<td align="right"><?php echo $record->BasicValue ; ?></td>
<td align="right"><?php echo $record->AfterDiscount; ?></td>
<td align="right"><?php echo $record->AfterExciseDuty ; ?></td>
<td align="right"><?php echo $record->AfterVAT ; ?></td>
<td align="right"><?php echo $record->AfterCST ; ?></td>
<td align="right"><?php echo $record->AfterPackagingValue ; ?></td>
<td align="right"><?php echo $record->AfterGST ; ?></td>
<td align="right"><?php echo $record->AfterOtherTaxes ; ?></td>
<td align="right"><?php echo $record->Insurance ; ?></td>
<td align="right"><?php echo $record->AfterFreightValue ; ?></td>
<td align="right"><?php $TotalAmount = (($record->BasicValue+$record->AfterExciseDuty
+ $record->AfterVAT+$record->AfterCST+$record->AfterGST + $record->AfterOtherTaxes + $record->Insurance+ $record->AfterFreightValue+$record->AfterPackagingValue)- $record->AfterDiscount);
echo number_format($TotalAmount,2) ; ?></td>
</tr>
<?php
$SubTotalAmount = $SubTotalAmount + $record->BasicValue;
$AfterExciseDuty =$AfterExciseDuty + $record->AfterExciseDuty;
$AfterVAT =$AfterVAT + $record->AfterVAT;
$AfterCST = $AfterCST + $record->AfterCST;
$AfterGST =$AfterGST + $record->AfterGST;
$AfterOtherTaxes =$AfterOtherTaxes + $record->AfterOtherTaxes;
$Insurance =$Insurance + $record->Insurance;
$AfterFreightValue =$AfterFreightValue + $record->AfterFreightValue;
$AfterDiscount = $AfterDiscount + $record->AfterDiscount ;
$AfterPackaging=$AfterPackaging+$record->AfterPackagingValue;
}
$OrderValue = (( $SubTotalAmount + $AfterVAT + $AfterCST+$AfterGST+$AfterOtherTaxes +$Insurance +$AfterFreightValue+$AfterExciseDuty+$AfterPackaging) - $AfterDiscount ) ;
}
?>
</table>
<div align="right">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="105%">
<!--<tr>
<td align="right">Sub Total Amount :</td>
<td align="right"><?php echo number_format($SubTotalAmount,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Discount :</td>
<td align="right"><?php echo number_format($AfterDiscount,2);?></td>
</tr>
<tr>
<td align="right">Excise Duty :</td>
<td align="right"><?php echo number_format($AfterExciseDuty,2);?></td>
</tr>
<tr>
<td align="right">Vat :</td>
<td align="right"><?php echo number_format($AfterVAT,2);?></td>
</tr>
<tr>
<td align="right">CST :</td>
<td align="right"><?php echo number_format($AfterCST,2);?></td>
</tr>
<tr>
<td align="right">GST :</td>
<td align="right"><?php echo number_format($AfterGST,2);?></td>
</tr>
<tr>
<td align="right">Other Taxes:</td>
<td align="right"><?php echo number_format($AfterOtherTaxes,2);?></td>
</tr>
<tr>
<td align="right">Insurance :</td>
<td align="right"><?php echo number_format($Insurance,2);?></td>
</tr>
<tr>
<td align="right">Freight :</td>
<td align="right"><?php echo number_format($AfterFreightValue,2);?></td>
</tr> -->
<tr>
<td align="right"><p><b>Total Order Amount :</b></p></td>
<td align="right"><b><?php echo number_format($OrderValue,2);?></b></td>
</tr>
</table>
<table>
<tr>
<td><b>Total Amount In Words:<b></td>
<td><b><?php echo $TotalAmountInWords." "."Only.";?></b></td>
</tr>
</table>
<br>
<br>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<th>Requistion Number</th>
<th>Requested by</th>
<th>Requested Department</th>
<th>Cost center</th>
</div>
<div class="page" style="font-size:12px;">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#8c8c8c;color:#fff;">
<th>#</th>
<th>Item Description</th>
<th>Qty</th>
<th>Rate In INR</th>
<th>Amount In INR</th>
<th>Discount</th>
<th>Excise Duty</th>
<th>Vat</th>
<th>CST</th>
<th>Packaging</th>
<th>GST</th>
<th>Other Taxes</th>
<th>Insurance</th>
<th>Freight</th>
<th>Total Amount In INR</th>
<th></th>
</tr>
<?php
if(!empty($RequistionDetails))
if(!empty($POItem))
{
foreach($RequistionDetails as $ReqDetails)
$SubTotalAmount = 0;
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
$AfterExciseDuty = 0;
$AfterVAT = 0;
$AfterCST = 0;
$AfterGST = 0;
$AfterOtherTaxes = 0;
$Insurance = 0;
$AfterFreightValue = 0;
$AfterDiscount = 0;
$AfterPackaging = 0;
foreach($POItem as $record)
{
$index = $index + 1;
?>
<tr>
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
<td><?php echo $ReqDetails['RequestedName']; ?></td>
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
<td><?php echo $index ; ?></td>
<td><?php echo $record->MaterialName ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->Rate ; ?></td>
<td align="right"><?php echo $record->BasicValue ; ?></td>
<td align="right"><?php echo $record->AfterDiscount; ?></td>
<td align="right"><?php echo $record->AfterExciseDuty ; ?></td>
<td align="right"><?php echo $record->AfterVAT ; ?></td>
<td align="right"><?php echo $record->AfterCST ; ?></td>
<td align="right"><?php echo $record->AfterPackagingValue ; ?></td>
<td align="right"><?php echo $record->AfterGST ; ?></td>
<td align="right"><?php echo $record->AfterOtherTaxes ; ?></td>
<td align="right"><?php echo $record->Insurance ; ?></td>
<td align="right"><?php echo $record->AfterFreightValue ; ?></td>
<td align="right"><?php $TotalAmount = (($record->BasicValue+$record->AfterExciseDuty
+ $record->AfterVAT+$record->AfterCST+$record->AfterGST + $record->AfterOtherTaxes + $record->Insurance+ $record->AfterFreightValue+$record->AfterPackagingValue)- $record->AfterDiscount);
echo number_format($TotalAmount,2) ; ?></td>
</tr>
<?php
}
}
<?php
$SubTotalAmount = $SubTotalAmount + $record->BasicValue;
$AfterExciseDuty =$AfterExciseDuty + $record->AfterExciseDuty;
$AfterVAT =$AfterVAT + $record->AfterVAT;
$AfterCST = $AfterCST + $record->AfterCST;
$AfterGST =$AfterGST + $record->AfterGST;
$AfterOtherTaxes =$AfterOtherTaxes + $record->AfterOtherTaxes;
$Insurance =$Insurance + $record->Insurance;
$AfterFreightValue =$AfterFreightValue + $record->AfterFreightValue;
$AfterDiscount = $AfterDiscount + $record->AfterDiscount ;
$AfterPackaging=$AfterPackaging+$record->AfterPackagingValue;
}
$OrderValue = (( $SubTotalAmount + $AfterVAT + $AfterCST+$AfterGST+$AfterOtherTaxes +$Insurance +$AfterFreightValue+$AfterExciseDuty+$AfterPackaging) - $AfterDiscount ) ;
}
?>
?>
</table>
<br/>
<br/>
<p>
<div align="Left"> <b>Service Description:</b><br/><br/><?php echo $ServiceDescription;?></div></p>
<?php
if(!empty($releasedetails)){
foreach($releasedetails as $detail){
<div align="right">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="100%">
<!--<tr>
<td align="right">Sub Total Amount :</td>
<td align="right"><?php echo number_format($SubTotalAmount,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Discount :</td>
<td align="right"><?php echo number_format($AfterDiscount,2);?></td>
</tr>
<tr>
<td align="right">Excise Duty :</td>
<td align="right"><?php echo number_format($AfterExciseDuty,2);?></td>
</tr>
<tr>
<td align="right">Vat :</td>
<td align="right"><?php echo number_format($AfterVAT,2);?></td>
</tr>
<tr>
<td align="right">CST :</td>
<td align="right"><?php echo number_format($AfterCST,2);?></td>
</tr>
<tr>
<td align="right">GST :</td>
<td align="right"><?php echo number_format($AfterGST,2);?></td>
</tr>
<tr>
<td align="right">Other Taxes:</td>
<td align="right"><?php echo number_format($AfterOtherTaxes,2);?></td>
</tr>
<tr>
<td align="right">Insurance :</td>
<td align="right"><?php echo number_format($Insurance,2);?></td>
</tr>
<tr>
<td align="right">Freight :</td>
<td align="right"><?php echo number_format($AfterFreightValue,2);?></td>
</tr> -->
<tr>
<td align="right"><p><b>Total Order Amount In INR :</b></p></td>
<td align="right"><b><?php echo number_format($OrderValue,2);?></b></td>
?>
<table width="200%">
<tr>
<td><b>ReleasedBy:</b></td>
<td><b>ReleasedOn:</b></td>
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td><?php echo $detail->ReleasedOn;?></td>
</tr>
</table>
<?php
}
}
else {
?>
<table width="200%">
<tr>
<td><b>Till Release State:</b></td>
</tr>
</table>
<?php } ?>
<table>
<tr>
<td><b>Total Amount In Words:<b></td>
<td><b><?php echo $TotalAmountInWords." "."Only.";?></b></td>
</tr>
</table>
<br>
<br>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#8c8c8c;color:#fff;">
<th>Requistion Number</th>
<th>Requested by</th>
<th>Requested Department</th>
<th>Cost center</th>
</tr>
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<tr>
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
<td><?php echo $ReqDetails['RequestedName']; ?></td>
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
</tr>
<?php
}
}
?>
</table>
<br/>
<br/>
<p>
<div align="Left"> <b>Service Description:</b><br/><br/><?php echo $ServiceDescription;?></div></p>
<?php
if(!empty($releasedetails)){
$releasedOn = '';
foreach($releasedetails as $detail){
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
?>
<table width="200%">
<tr>
<td><b>ReleasedBy:</b></td>
<td><b>ReleasedOn:</b></td>
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td><?php echo $releasedOn->format('d-m-Y');?></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<?php
}
}
else {
?>
<table width="200%">
<tr>
<td><b>Till Release State:</b></td>
</tr>
</table>
<?php } ?>
</div>
</div>

View File

@ -1,300 +0,0 @@
<?php
$PONO = '';
$CompanyAddress = '';
$CompanyName = '';
$SuplierName = '';
$SuplierAddress = '';
$DeliveryAddress = '';
$Podt = '';
$DeliveryDate ='';
$postatus='';
$ServiceDescription = '';
$PaymentTerms = '';
$PaymentDays='';
$PayableAT='';
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $CO)
{
$CompanyName = $CO->CompanyName;
$CompanyAddress = $CO->Address;
}
}
if(!empty($POItem))
{
foreach ($POItem as $PO)
{
$PONO = $PO->PONO;
$SuplierName = $PO->SupplierName;
$SuplierAddress = $PO->Address;
$DeliveryAddress = $PO->DeliveryAddress;
$postatus= $PO->Status;
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y');
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
$ServiceDescription =$PO->ServiceDescription;
$PaymentTerms = $PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
$PayableAT=$PO->PayableAT;
}
}
$currencyName='INR';
$currencyCode ='';
if(!empty($CurrencySymbol))
{
foreach ($CurrencySymbol as $Curr)
{
$currencyCode = $Curr->FontCode2000;
//$currencyName = $currencyName;
}
}
?>
<div><center><h2>REVENUE PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a></center></div>
<div align="right">
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div>This is Draft Version For Internal Purpose</div>';
}
?>
<?php echo $Podt?>
</div>
<p><center>
<b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></center></p>
<p align="right">Payment Terms :<?php echo $PaymentTerms;?><br/> Payable At:<?php echo $PayableAT;?><br/> Payment Days:<?php echo $PaymentDays;?><br/>Delivery Date :<?php echo $DeliveryDate;?></p>
<br/>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="105%"><tr><td>
<p><a style="color:#3c8dbc">Vendor Address : </a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?></p></td><td>
<p><a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?><p></td>
</tr></table>
<br/>
<br/>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="105%">
<tr style="background:#000;color:#fff;">
<th>#</th>
<th>Item Description</th>
<th>Qty</th>
<th>Rate <?php echo 'Rate in '.$currencyCode;?></th>
<th>Amount <?php echo 'Rate in '.$currencyCode;?></th>
<th>Discount</th>
<th>Excise Duty</th>
<th>Vat</th>
<th>CST</th>
<th>Packaging</th>
<th>GST</th>
<th>Other Taxes</th>
<th>Insurance</th>
<th>Freight</th>
<th>Total Amount <?php echo 'Rate in '.$currencyCode;?></th>
<th></th>
</tr>
<?php
if(!empty($POItem))
{
$SubTotalAmount = 0;
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
$AfterExciseDuty = 0;
$AfterVAT = 0;
$AfterCST = 0;
$AfterGST = 0;
$AfterOtherTaxes = 0;
$Insurance = 0;
$AfterFreightValue = 0;
$AfterDiscount = 0;
$AfterPackaging = 0;
foreach($POItem as $record)
{
$index = $index + 1;
?>
<tr>
<td><?php echo $index ; ?></td>
<td><?php echo $record->MaterialName ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->Rate ; ?></td>
<td align="right"><?php echo $record->BasicValue ; ?></td>
<td align="right"><?php echo $record->AfterDiscount; ?></td>
<td align="right"><?php echo $record->AfterExciseDuty ; ?></td>
<td align="right"><?php echo $record->AfterVAT ; ?></td>
<td align="right"><?php echo $record->AfterCST ; ?></td>
<td align="right"><?php echo $record->AfterPackagingValue ; ?></td>
<td align="right"><?php echo $record->AfterGST ; ?></td>
<td align="right"><?php echo $record->AfterOtherTaxes ; ?></td>
<td align="right"><?php echo $record->Insurance ; ?></td>
<td align="right"><?php echo $record->AfterFreightValue ; ?></td>
<td align="right"><?php $TotalAmount = (($record->BasicValue+$record->AfterExciseDuty
+ $record->AfterVAT+$record->AfterCST+$record->AfterGST + $record->AfterOtherTaxes + $record->Insurance+ $record->AfterFreightValue+$record->AfterPackagingValue)- $record->AfterDiscount);
echo number_format($TotalAmount,2) ; ?></td>
</tr>
<?php
$SubTotalAmount = $SubTotalAmount + $record->BasicValue;
$AfterExciseDuty =$AfterExciseDuty + $record->AfterExciseDuty;
$AfterVAT =$AfterVAT + $record->AfterVAT;
$AfterCST = $AfterCST + $record->AfterCST;
$AfterGST =$AfterGST + $record->AfterGST;
$AfterOtherTaxes =$AfterOtherTaxes + $record->AfterOtherTaxes;
$Insurance =$Insurance + $record->Insurance;
$AfterFreightValue =$AfterFreightValue + $record->AfterFreightValue;
$AfterDiscount = $AfterDiscount + $record->AfterDiscount ;
$AfterPackaging=$AfterPackaging+$record->AfterPackagingValue;
}
$OrderValue = (( $SubTotalAmount + $AfterVAT + $AfterCST+$AfterGST+$AfterOtherTaxes +$Insurance +$AfterFreightValue+$AfterExciseDuty+$AfterPackaging) - $AfterDiscount ) ;
}
?>
</table>
<div align="right">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="105%">
<!--<tr>
<td align="right">Sub Total Amount :</td>
<td align="right"><?php echo number_format($SubTotalAmount,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Discount :</td>
<td align="right"><?php echo number_format($AfterDiscount,2);?></td>
</tr>
<tr>
<td align="right">Excise Duty :</td>
<td align="right"><?php echo number_format($AfterExciseDuty,2);?></td>
</tr>
<tr>
<td align="right">Vat :</td>
<td align="right"><?php echo number_format($AfterVAT,2);?></td>
</tr>
<tr>
<td align="right">CST :</td>
<td align="right"><?php echo number_format($AfterCST,2);?></td>
</tr>
<tr>
<td align="right">GST :</td>
<td align="right"><?php echo number_format($AfterGST,2);?></td>
</tr>
<tr>
<td align="right">Other Taxes:</td>
<td align="right"><?php echo number_format($AfterOtherTaxes,2);?></td>
</tr>
<tr>
<td align="right">Insurance :</td>
<td align="right"><?php echo number_format($Insurance,2);?></td>
</tr>
<tr>
<td align="right">Freight :</td>
<td align="right"><?php echo number_format($AfterFreightValue,2);?></td>
</tr> -->
<tr>
<td align="right"><p><b>Total Order Amount :</b></p></td>
<td align="right"><b><?php echo number_format($OrderValue,2);?></b></td>
</tr>
</table>
<table>
<tr>
<td><b>Total Amount In Words:<b></td>
<td><b><?php echo $TotalAmountInWords." "."Only.";?></b></td>
</tr>
</table>
<br>
<br>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<th>Requistion Number</th>
<th>Requested by</th>
<th>Requested Department</th>
<th>Cost center</th>
</tr>
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<tr>
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
<td><?php echo $ReqDetails['RequestedName']; ?></td>
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
</tr>
<?php
}
}
?>
</table>
<br/>
<br/>
<p>
<div align="Left"> <b>Service Description:</b><br/><br/><?php echo $ServiceDescription;?></div></p>
<?php
if(!empty($releasedetails)){
foreach($releasedetails as $detail){
?>
<table width="200%">
<tr>
<td><b>ReleasedBy:</b></td>
<td><b>ReleasedOn:</b></td>
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td><?php echo $detail->ReleasedOn;?></td>
</tr>
</table>
<?php
}
}
else {
?>
<table width="200%">
<tr>
<td><b>Till Release State:</b></td>
</tr>
</table>
<?php } ?>
</div>

View File

@ -23,6 +23,7 @@
$PaymentTerms='';
$PaymentDays='';
$PayableAT='';
$DeliverySchedule='';
if(!empty($CompanyDetails))
{
@ -54,7 +55,7 @@
if(!empty($POItem))
{
foreach ($POItem as $PO)
{
@ -65,8 +66,15 @@
$DeliveryAddress = $PO->DeliveryAddress;
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y');
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
if($PO->DeliveryOption=='1'){
$DeliveryDate = '';
$DeliverySchedule = $PO->DeliverySchedule;
}
else{
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
$DeliverySchedule = '';
}
$ServiceDescription =$PO->ServiceDescription;
$PaymentTerms = $PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
@ -78,32 +86,40 @@
?>
<style>
@page { margin: 310px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -310px; right: 0px; height: 550px;text-align: center; }
@page { margin: 280px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -280px; right: 0px; height: 550px;text-align: center; }
.footer { position: fixed; bottom: 0px; }
.pagenum:before { content: counter(page); }
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div class="header">
<div><center><h2>SERVICE PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a></center></div>
<div align="right">
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div>This is Draft Version For Internal Purpose</div>';
}
<table>
<tr>
<td>
<img width="80" height="80" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg==">
</td>
<td><center><h2>SERVICE PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a><br/><b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></center></td>
<td>
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div><br/><br/>This is Draft Version For Internal Purpose</div>';
}
?>
<?php echo $Podt?>
</div>
<p> <b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></p>
<p align="right">Payment Terms :<?php echo $PaymentTerms;?><br/> Payable At:<?php echo $PayableAT;?><br/> Payment Days:<?php echo $PaymentDays;?><br/>Delivery Date :<?php echo $DeliveryDate;?></p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
?>
</td>
</tr>
</table>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr><th>Payment Terms</th><th>Payable At</th><th>Payment Days</th><th>Delivery Date/Schedule</th><th>PO Date</th></tr>
<tr><td><?php echo $PaymentTerms;?></td><td><?php echo $PayableAT;?></td><td><?php echo $PaymentDays;?></td><td><?php echo $DeliveryDate.$DeliverySchedule;?></td><td><?php echo $Podt?></td></tr>
</table>
<br/>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr>
<td>
<a style="color:#3c8dbc">Vendor Address :</a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?>
@ -114,18 +130,15 @@
</td>
</tr>
</table>
<br/>
<br/>
<div class="page">
</div>
<div class="page" style="font-size:12px;">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<tr style="background:#8c8c8c;color:#fff;">
<th>#</th>
<th>Item Description</th>
<th>Qty</th>
<th>Rate in<?php echo $currencyCode;?></th>
<th>Amount<?php echo $currencyCode;?></th>
<th>Rate in INR</th>
<th>Amount In INR</th>
<th>Service Tax</th>
<th>Educess Tax</th>
<th>Sec Higher Educess Tax</th>
@ -210,7 +223,7 @@
<br/>
</tr> -->
<tr>
<td align="right"><b>Total Order Amount :</b></td>
<td align="right"><b>Total Order Amount In INR :</b></td>
<td align="right"><b><?php echo number_format($OrderValue,2);?></b></td>
<br/>
</tr>
@ -229,7 +242,7 @@
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<tr style="background:#8c8c8c;color:#fff;">
<th>Requistion Number</th>
<th>Requested by</th>
@ -274,17 +287,26 @@
<div align="Left"> <b>Service Description:</b><br/><br/><?php echo $ServiceDescription;?></div></p>
<?php
if(!empty($releasedetails)){
$releasedOn = '';
foreach($releasedetails as $detail){
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
?>
<table width="200%">
<tr>
<td><b>ReleasedBy:</b></td>
<td><b>ReleasedOn:</b></td>
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td><?php echo $detail->ReleasedOn;?></td>
<td><?php echo $releasedOn->format('d-m-Y');?></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<?php
@ -306,4 +328,3 @@
</div>
</div>

View File

@ -1,309 +0,0 @@
<?php
$PONO = '';
$postatus ='';
$CompanyAddress = '';
$CompanyName = '';
$SuplierName = '';
$SuplierAddress = '';
$DeliveryAddress = '';
$Podt = '';
$DeliveryDate ='';
$ServiceTax =0.00;
$EducessTax =0.00;
$SecHigherEducessTax =0.00;
$KrishiKalyantax =0.00;
$SwachhBharattax =0.00;
$TotalAmount =0.00;
$SubTotalAmount =0.00;
$TaxAmount =0.00;
$BasicAmount = 0.00;
$ServiceDescription = '';
$PaymentTerms='';
$PaymentDays='';
$PayableAT='';
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $CO)
{
$CompanyName = $CO->CompanyName;
$CompanyAddress = $CO->Address;
}
}
$currencyName='INR';
$currencyCode ='';
if(!empty($CurrencySymbol))
{
foreach ($CurrencySymbol as $Curr)
{
$currencyCode = $Curr->FontCode2000;
//$currencyName = $currencyName;
}
}
if(!empty($POItem))
{
foreach ($POItem as $PO)
{
$PONO = $PO->PONO;
$postatus= $PO->Status;
$SuplierName = $PO->SupplierName;
$SuplierAddress = $PO->Address;
$DeliveryAddress = $PO->DeliveryAddress;
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y');
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
$ServiceDescription =$PO->ServiceDescription;
$PaymentTerms = $PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
$PayableAT=$PO->PayableAT;
}
}
?>
<style>
@page { margin: 310px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -310px; right: 0px; height: 550px;text-align: center; }
.footer { position: fixed; bottom: 0px; }
.pagenum:before { content: counter(page); }
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div class="header">
<div><center><h2>SERVICE PURCHASE ORDER</h2><a style="color:#515151">PO NO:<?php echo $PONO?> </a></center></div>
<div align="right">
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div>This is Draft Version For Internal Purpose</div>';
}
?>
<?php echo $Podt?>
</div>
<p> <b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></p>
<p align="right">Payment Terms :<?php echo $PaymentTerms;?><br/> Payable At:<?php echo $PayableAT;?><br/> Payment Days:<?php echo $PaymentDays;?><br/>Delivery Date :<?php echo $DeliveryDate;?></p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr>
<td>
<a style="color:#3c8dbc">Vendor Address :</a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?>
</td>
<td>
<a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?>
</td>
</td>
</tr>
</table>
<br/>
<br/>
<div class="page">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<th>#</th>
<th>Item Description</th>
<th>Qty</th>
<th>Rate in<?php echo $currencyCode;?></th>
<th>Amount<?php echo $currencyCode;?></th>
<th>Service Tax</th>
<th>Educess Tax</th>
<th>Sec Higher Educess Tax</th>
<th>Krishi Kalyan tax</th>
<th>Swachh Bharat tax</th>
<th>Total Amount<?php echo $currencyCode; ?></th>
</tr>
<?php
if(!empty($POItem))
{
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
foreach($POItem as $record)
{
$index = $index + 1;
$TotalAmount = $record->BasicValue + $record->Taxamount
?>
<tr>
<td><?php echo $index ; ?></td>
<td><?php echo $record->MaterialName ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->Rate ; ?></td>
<td align="right"><?php echo $record->BasicValue ; ?></td>
<td align="right"><?php echo $record->ServiceTax ; ?></td>
<td align="right"><?php echo $record->EducessTax ; ?></td>
<td align="right"><?php echo $record->SecHigherEducessTax ; ?></td>
<td align="right"><?php echo $record->KrishiKalyantax ; ?></td>
<td align="right"><?php echo $record->SwachhBharattax ; ?></td>
<td align="right"><?php echo number_format($TotalAmount,2) ; ?></td>
</tr>
<?php
$SubTotalAmount = $SubTotalAmount + $record->BasicValue;
$ServiceTax =$ServiceTax + $record->ServiceTax;
$EducessTax =$EducessTax + $record->EducessTax;
$SecHigherEducessTax = $SecHigherEducessTax + $record->SecHigherEducessTax;
$KrishiKalyantax =$KrishiKalyantax + $record->KrishiKalyantax;
$SwachhBharattax =$SwachhBharattax + $record->SwachhBharattax;
}
$OrderValue = $SubTotalAmount + $ServiceTax + $EducessTax+$SecHigherEducessTax+$KrishiKalyantax +$SwachhBharattax;
}
?>
</table>
<div align="right">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="100%">
<!--<tr>
<td align="right">Sub Total Amount :</td>
<td align="right"><?php echo number_format($SubTotalAmount,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Service Tax @14% :</td>
<td align="right"><?php echo number_format($ServiceTax,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Edu. cess @2% on ServiceTax:</td>
<td align="right"><?php echo number_format($EducessTax,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Sec & Higher cess @1% on ServiceTax:</td>
<td align="right"><?php echo number_format($SecHigherEducessTax,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Krishi kalyan Tax @0.5% on Basic Amount:</td>
<td align="right"><?php echo number_format($KrishiKalyantax,2);?></td>
<br/>
</tr>
<tr>
<td align="right">Swachh Barath Tax @0.5% on Basic Amount :</td>
<td align="right"><?php echo number_format($SwachhBharattax,2);?></td>
<br/>
</tr> -->
<tr>
<td align="right"><b>Total Order Amount :</b></td>
<td align="right"><b><?php echo number_format($OrderValue,2);?></b></td>
<br/>
</tr>
</table>
<table>
<tr>
<td><b>Total Amount In Words:<b></td>
<td><b><?php echo $TotalAmountInWords." "."Only.";?></b></td>
</tr>
</table>
<br/>
<br/>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#000;color:#fff;">
<th>Requistion Number</th>
<th>Requested by</th>
<th>Requested Department</th>
<th>Cost center</th>
</tr>
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<tr>
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
<td><?php echo $ReqDetails['RequestedName']; ?></td>
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
</tr>
<?php
}
}
?>
</table>
<br>
<br>
<p>
<div align="Left"> <b>Service Description:</b><br/><br/><?php echo $ServiceDescription;?></div></p>
<?php
if(!empty($releasedetails)){
foreach($releasedetails as $detail){
?>
<table width="200%">
<tr>
<td><b>ReleasedBy:</b></td>
<td><b>ReleasedOn:</b></td>
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td><?php echo $detail->ReleasedOn;?></td>
</tr>
</table>
<?php
}
}
else {
?>
<table width="200%">
<tr>
<td><b>Till Release State:</b></td>
</tr>
</table>
<?php } ?>
</div>
</div>

View File

@ -93,15 +93,16 @@ span.highlight {
<tr>
<td><?php echo $record->StoreReqNo ?></td>
<td><?php echo $record->TotalNoofLineItems ?></td>
<td><?php echo $record->IssuesItems ?></td>
<td><?php echo $record->PendingItems ?></td>
<td align="right"><?php echo $record->TotalNoofLineItems ?></td>
<td align="right"><?php echo $record->IssuesItems ?></td>
<td align="right"><?php echo $record->PendingItems ?></td>
<td><?php echo $record->StatusName ?></td>
<td><?php echo $record->ReqDate ?></td>
<td><?php echo $record->Remarks ?></td>
<td align="right"><?php $dt = new DateTime($record->ReqDate);
$ReqDate = $dt->format('d-m-y'); echo $ReqDate ?>
</td><td><?php echo $record->Remarks ?></td>
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditStoreRequisition?StoreReqNo='.$record->StoreReqNo; ?>"><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->StoreReqNo; ?> - Click here to view addstorerequisitionslip"></i>&nbsp;&nbsp;&nbsp;</a> <a data-toggle="tooltip" onclick="DeleteRow('<?php echo $record->StoreReqNo; ?>' )" ><span class="glyphicon glyphicon-trash" title="<?php echo $record->StoreReqNo; ?> - Click here to Delete Requisition details"></span></a> </td>
</tr>

4
php_errorlog Normal file
View File

@ -0,0 +1,4 @@
[08-Jul-2017 00:20:49 CST6CDT] PHP Fatal error: Call to undefined function r() in /home/kasiram9/public_html/SIA_UAT/application/controllers/storerequisitionlist.php on line 449
[08-Jul-2017 05:58:48 CST6CDT] PHP Parse error: syntax error, unexpected '}' in /home/kasiram9/public_html/SIA_UAT/application/views/includes/header.php on line 535
[08-Jul-2017 05:59:01 CST6CDT] PHP Parse error: syntax error, unexpected '}' in /home/kasiram9/public_html/SIA_UAT/application/views/includes/header.php on line 535
[08-Jul-2017 06:00:31 CST6CDT] PHP Parse error: syntax error, unexpected '}' in /home/kasiram9/public_html/SIA_UAT/application/views/includes/header.php on line 535