From fbde8c6950acd018be9725efa16c2bd0b2c6f481 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Sat, 17 Jun 2017 15:57:19 +0530 Subject: [PATCH] add,edit,pdf of import po --- application/controllers/purchaseorder.php | 179 +- application/models/purchaseorder_model.php | 73 + application/views/editimportpo.php | 3577 +++++++++++ application/views/importpo.php | 6789 ++++++++++---------- application/views/importpopdf.php | 226 +- 5 files changed, 7417 insertions(+), 3427 deletions(-) create mode 100644 application/views/editimportpo.php mode change 100755 => 100644 application/views/importpo.php diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 0e684c44..4ff8d3ba 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -151,6 +151,7 @@ class purchaseorder extends BaseController $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation(); $data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate(); + $data['Currency']=$this->purchaseorder_model->GetCurrencytype(); $ViewName = ''; if($ReqType == REVENUE) @@ -188,6 +189,12 @@ class purchaseorder extends BaseController $this ->revenuepoprint($PONO); } + + else if($ReqType == IMPORT) + { + $this ->importpoprint($PONO); + + } } function CreaterevenuePOPrint() @@ -262,6 +269,28 @@ class purchaseorder extends BaseController $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); + //print_r($data); + //$data['ExchangeRate']=$data['POItem'] ->ExchangeRate; + //$data['ExchangeRate']=$this->purchaseorder_model->GetImportPurchaseOrderDetails($PONO); + $data['Currency']=$this->purchaseorder_model->GetCurrencytype(); + //print_r($data); + $this->global['pageTitle'] = 'Siddharth : Edit Import Purchase order form'; + $this->loadViews("editimportpo", $this->global, $data, NULL); + } } @@ -773,6 +802,39 @@ class purchaseorder extends BaseController $this->dompdf->stream("ServicePOReport.pdf",$data,$php); } + + + + +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); + + $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->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 */ @@ -810,7 +872,7 @@ class purchaseorder extends BaseController - function addNewImportPurchaseOrder() + function addNewImportPurchaseOrder() {//echo ("ggh"); $POdt =$this->input->post('PODate'); @@ -825,6 +887,8 @@ class purchaseorder extends BaseController $SpcialInstruction = $this->input->post('txtSpcialInstruction'); $TotalOrder = $this->input->post('txtToatlOrder'); $POStatus = $this->input->post('textStatus'); + //echo "$POStatus"; + //die(); $CreateBy = $this->session->userdata ( 'userId' ); $RowCount = $this->input->post('txtRowCount'); @@ -846,7 +910,8 @@ class purchaseorder extends BaseController //echo($SupplierID); // PO Master $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt ); - + + $POMaster = $this->purchaseorder_model->addPOMaster($POList); $PONO = ''; @@ -871,18 +936,42 @@ class purchaseorder extends BaseController $Exchangerate = $this->input->post('Exchangerate'.$i); $BasicPriceinmton = $this->input->post('BasicPriceinUS'.$i); $Productprice = $this->input->post('BasicAmt'.$i); - $LandingCharge = $this->input->post('AfterLandingChargee'.$i); - $HighSeas = $this->input->post('AfterHighseass'.$i); - $CustomDuty = $this->input->post('AfterCustomduty'.$i); - $ExciseDuty = $this->input->post('AfterExcisedutyTax'.$i); - $ExciseDutyEd = $this->input->post('AfterExcisedutyED'.$i); - $ExciseDutySH = $this->input->post('AfterExcisedutySH'.$i); - $CustomEd= $this->input->post('AfterCustomEDcess'.$i); - $CustomSH = $this->input->post('AfterCustomSHcess'.$i); - $AddAdtional = $this->input->post('AfterAdditionalExciseduty'.$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); - echo $BasicPriceinmton; + $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); + + $ExciseDutySH = $this->input->post('ExcisedutySH'.$i); + $AfterExciseDutySH = $this->input->post('AfterExcisedutySH'.$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); + + $AddAdtional = $this->input->post('AdditionalExciseduty'.$i); + $AfterAddAdtional = $this->input->post('AfterAdditionalExciseduty'.$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); + + $currencytypeID = $this->input->post('currencytype'); + + //echo $BasicPriceinmton; $CostCenter = $this->input->post('costCode'.$i); $SkipInsert = "False"; @@ -916,7 +1005,13 @@ class purchaseorder extends BaseController if(trim($POType) == IMPORT ) { // echo 'Success'; - $ImportTaxList = array('LineItemNo'=>$LineItemNo, 'ExchangeRate'=>$Exchangerate,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'ExciseDuty'=>$ExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd, 'ExciseDutyS&HCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomS&HCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt); + $ImportTaxList = array('LineItemNo'=>$LineItemNo, 'ExchangeRate'=>$Exchangerate,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'CurrencyType'=>$currencytypeID); + //print_r($ImportTaxList); + //die(); + + + //TaxID, LineItemNo, CurrencyType, ExchangeRate, BasicPriceInMTon, ProductPrice, LandingCharge, AfterLandingCharge, HighSeasSalesCharge, AfterHighSeasSalesCharge, CustomDuty, AfterCustomDuty, ExciseDuty, AfterExciseDuty, ExciseDutyEdCess, AfterExciseDutyEdCess, ExciseDutyS&HCess, AfterExciseDutyS&HCess, CustomEdCess, CustomS&HCess, AddlExciseDuty, AfterAddlExciseDuty, Grossdutypayable, AvailableModvat, Grossexpensesduetocustomduty, purchaseratePerKG, CustomDutyExpensesPerKG, RMCIncludingCustomersPerKG, QuantityKG, CreatedDate, CreatedBy, UpdateBY, UpdatedOn + //die(); $ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList); //echo 'Revenue tax Success'; @@ -969,23 +1064,48 @@ class purchaseorder extends BaseController $Reqnumber = $this->input->post('Reqnumber'.$i); $itemRate = $this->input->post('itemRate'.$i); - $Exchangerate = $this->input->post('ExchangeRate'.$i); - $BasicPriceinmton = $this->input->post('imBasicPrice'.$i); - $Productprice = $this->input->post('BasicValue'.$i); - $LandingCharge = $this->input->post('txttotallanding'.$i); - $HighSeas = $this->input->post('txttotalhighseas'.$i); - $CustomDuty = $this->input->post('txttotalcustom'.$i); - $ExciseDuty = $this->input->post('txttotalexcise'.$i); - $ExciseDutyEd = $this->input->post('txttotalexciseED'.$i); - $ExciseDutySH = $this->input->post('txttotalexciseSH'.$i); - $CustomEd= $this->input->post('txttotalcustomED'.$i); - $CustomSH = $this->input->post('txttotalcustomSH'.$i); - $AddAdtional = $this->input->post('txttotalAdditionalExciseduty'.$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); + + $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); + + $ExciseDutySH = $this->input->post('ExcisedutySH'.$i); + $AfterExciseDutySH = $this->input->post('AfterExcisedutySH'.$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); + + $AddAdtional = $this->input->post('AdditionalExciseduty'.$i); + $AfterAddAdtional = $this->input->post('AfterAdditionalExciseduty'.$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); $LineItemNo = ''; - + $currencytypeID = $this->input->post('currencytype'); $SkipInsert = "False"; if( count($comma_separated) > 0) { @@ -1023,14 +1143,14 @@ class purchaseorder extends BaseController $isExists = $this->purchaseorder_model->LineItemExistsinRevenueTax($LineItemNo); if(count($isExists) == 0) { - $ImportTaxList = array('LineItemNo'=>$LineItemNo, 'ExchangeRate'=>$Exchangerate,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'ExciseDuty'=>$ExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd, 'ExciseDutyS&HCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomS&HCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt); + $ImportTaxList = array('LineItemNo'=>$LineItemNo, 'ExchangeRate'=>$Exchangerate,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'CurrencyType'=>$currencytypeID); $ImportList = $this->purchaseorder_model->addImportTax($RevenueTaxList); } else { - $ImportTaxList = array('LineItemNo'=>$LineItemNo, 'ExchangeRate'=>$Exchangerate,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'ExciseDuty'=>$ExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd, 'ExciseDutyS&HCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomS&HCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt); + $ImportTaxList = array('LineItemNo'=>$LineItemNo, 'ExchangeRate'=>$Exchangerate,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'CurrencyType'=>$currencytypeID); $this->purchaseorder_model->updateImportTax($LineItemNo,$RevenueTaxList); @@ -1042,7 +1162,6 @@ class purchaseorder extends BaseController echo 'Purchase Order Updated Successfully! PO Number Is: '.$PONO ; } - } ?> \ No newline at end of file diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 73609251..dbeccd64 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -528,6 +528,71 @@ class purchaseorder_model extends CI_Model } + + +function GetImportPurchaseOrderDetailsForPDF($PONO = '') + { + + $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName, + Mat.UOM,Quantity,Rate,ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount , + ProductPrice,Tax.*,CostCenterCode , POMaster.*,sup.SupplierName,sup.Address + FROM T_PurchaseOrder_LineItem LineItem + join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode + join T_Import_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(); + + + } + + + + + +function GetImportPurchaseOrderDetails($PONO = '') + { + + $subQuery ='SELECT distinct LineItem.LineItemNo,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName, +Mat.UOM,Quantity,Rate,Req.Status,ROUND((Quantity *Rate),2 ) as BasicValue , + ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,ExchangeRate,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,AfterCustomEdCess,ROUND((Quantity *Rate)+(RMCIncludingCustomersPerKG*Quantity),2)as TotalOrderValue,ROUND((ExchangeRate*BasicPriceInMTon),2) as BasicINRValue, + + Req.CostCenterCode,Dept.DepartmentName FROM T_PurchaseOrder_LineItem LineItem + join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode + join T_Import_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo + join T_Requestion_Master Req on Req.ReqNo = LineItem.ReqNo + join T_Employee_Details emp on Req.Requestedby = emp.EmpID + join T_DepartmentDetails Dept on emp.Departmentcode = Dept.DEPCode where LineItem.PONO =?'; + //print_r($subQuery); + + $query = $this->db->query($subQuery,array($PONO)); + + return $query->result(); + + + } + + + +function GetCurrencytype() + { + + $subQuery = 'select CurrencyCode,CurrencyName from T_Currency_Details'; + + $query = $this->db->query($subQuery); + + + return $query->result(); + } + + + + + // To Update the PO function updatePOMaster($PONO,$PODetails) { @@ -790,6 +855,14 @@ class purchaseorder_model extends CI_Model return TRUE; } + + function DeletePOImportTax( $LineItem='') + { + $this->db->where('LineItemNo', $LineItem); + $this->db->delete('T_Import_Tax'); + + return TRUE; + } } diff --git a/application/views/editimportpo.php b/application/views/editimportpo.php new file mode 100644 index 00000000..1cff7242 --- /dev/null +++ b/application/views/editimportpo.php @@ -0,0 +1,3577 @@ +format('Y-m-d'); + +$MaxPoDate = ''; +if(!empty($MaxPODate)) +{ + foreach ($MaxPODate as $date) + { + $MaxPoDate = $date->PODate; + } +} + +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = $AvlBudAmt; + +} + +$CompanyAddress = ''; +if(!empty($CompanyDetails)) +{ + foreach ($CompanyDetails as $Req) + { + $CompanyAddress = $Req->Address; + } +} + + + //$Exchangerate=$ExchangeRate; + + + +$SupId = ''; +$SupName = ''; +$Address = ''; +$PODate = ''; +$Deliverydt =''; +$DeliveryAddress =''; +$POStatus=''; +$PONO = ''; +$ServiceDescription = ''; +$TotalLanding=''; +$tothighseas=''; +$totcustom=''; +$totexciseduty=''; +$totexcisedutyED=''; +$totexciseSH=''; +$totcustomED=''; +$totcustomSH=''; +$totaddtnlexcise=''; +$totgrossduty=''; +$totavlmodvat=''; +$totgrossexpense=''; +$totordervalue=''; +$ExchangeRate=''; +$totorder=''; +//$ExchangeRate=$record->ExchangeRate; + + + +if(!empty($POMaster)) +{ + foreach ($POMaster as $Req) + { + $SupId = $Req->SupplierID; + $SupName = $Req->SupplierName; + $Address = $Req->Address; + + $Pdt = new DateTime($Req->PODate); + $PODate = $Pdt->format('Y-m-d'); + + $Ddt = new DateTime($Req->DeliveryDate); + $Deliverydt = $Ddt->format('Y-m-d'); + + $DeliveryAddress =$Req->DeliveryAddress; + $POStatus = $Req->StatusCode; + $PONO = $Req->PONO; + $ServiceDescription = $Req->ServiceDescription; + //$ExchangeRate=$Req->ExchangeRate; + } +} +?> + + + + + + + + +
+ 'form-label-left ImportPO ','name' => 'ImportPO','id' => 'ImportPO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + + +
+ +
+
+
+

Siddharth Industries - Edit Import Purchase Order

+
+ +
+
+
+
+
+
+ + + 'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + foreach ($ReqList as $SID): + $options[$SID->ReqNo] = $SID->ReqNo ; + // print_r($SID->ReqNo); + // $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; + //$ReqType = $SID->ReqType; + endforeach; + } + //echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); + echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' ,'required="true"' , 'height="400px"' ); + + ?> +
+ + + + +
+ + + 'Select Currency'); + //print_r( $options); + if(!empty($Currency)) + { + foreach ($Currency as $CUR): + + + $options[$CUR->CurrencyCode] = $CUR->CurrencyCode.' '.' - '.' '.$CUR->CurrencyName; + + 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'); + + + ?> +
+ + + +
+
+
+
+ + + 'Select Supplier'); + //print_r( $options); + if(!empty($Suplist)) + { + foreach ($Suplist as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + //echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + + echo form_dropdown('drpSupplier', $options,set_value('drpSupplier',$SupId),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + + ?> + + + +
+

+ +
+ 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + + + + + ?> +
+
+
+ Exchange Rate : +
+ 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); + + echo form_input($data); + ?> +
+ +
+
+
+
+ +
+ + 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ +
+ 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + + ?> +
+
+ +
+
+
+ +
+ 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+ +
+ 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> + + +
+
+
+ +
+
+
+ + +
+ +
+
+Add Line Item + + + + + + + + + + +
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AfterLandingCharge; + $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; + $totcustom = $totcustom + $record->AfterCustomDuty; + $totexciseduty = $totexciseduty + $record->ExciseDuty; + $totexcisedutyED = $totexcisedutyED + $record->ExciseDutyEdCess; + $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; + $totcustomED = $totcustomED +$record->AfterCustomEdCess; + + $totcustomSH = $totcustomSH + $record->CustomSHCess; + $totaddtnlexcise= $totaddtnlexcise + $record->AddlExciseDuty; + $totgrossduty = $totgrossduty + $record->Grossdutypayable; + $totavlmodvat = $totavlmodvat +$record->AvailableModvat; + $totgrossduty=$totgrossduty+$record->Grossdutypayable; + $totavlmodvat=$totavlmodvat+$record->AvailableModvat; + $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; + $ExchangeRate=$record->ExchangeRate; + $$totorder=$totorder+$record->TotalOrderValue; + + + + } + ?> + + +
SNoRequisition NoItem NameQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
ReqNo ?>MaterialName?>Quantity ?>UOM ?>Rate ?>BasicValue ?>Taxamount?>TotalOrderValue?>     + +    
+
+ +
+ +
+
+ + + 'txttotallanding','value' => set_value('txttotallanding',$TotalLanding),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalhighseas','value' => set_value('txttotalhighseas',$tothighseas),'id'=>'txttotalhighseas', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustom','value' => set_value('txttotalcustom',$totcustom),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexcise','value' => set_value('txttotalexcise',$totexciseduty),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexciseED','value' => set_value('txttotalexciseED', $totexcisedutyED),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalexciseSH','value' => set_value('txttotalexciseSH',$totexciseSH),'id'=>'txttotalexciseSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomED','value' => set_value('txttotalcustomED',$totcustomED),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomSH','value' => set_value('txttotalcustomSH',$totcustomSH),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty',$totaddtnlexcise),'id'=>'txttotalAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossduty','value' => set_value('txttotalgrossduty',$totgrossduty),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat',$totavlmodvat),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense',$totgrossexpense),'id'=>'txttotalgrossexpense', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ 'txtToatlOrder','value' => set_value('txtToatlOrder',$$totorder),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + + +
+
+ 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '3', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+
+ +

+ + + + + +   Save +   Submit + + +
+
+
+
+ +
+
+
+
+ + + + + + diff --git a/application/views/importpo.php b/application/views/importpo.php old mode 100755 new mode 100644 index 77c0daa7..a5d25ab9 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -1,3378 +1,3411 @@ -Address; - } -} - -$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); -$CurrentDate = $dt->format('Y-m-d'); - -$MaxPoDate = ''; -if(!empty($MaxPODate)) -{ - foreach ($MaxPODate as $date) - { - $MaxPoDate = $date->PODate; - } -} - -if(!empty($AvlBudAmt)) -{ - - $AvlAmount = $AvlBudAmt; - -} -?> - - - - - - - - -
- 'form-label-left ImportPO ','name' => 'ImportPO','id' => 'ImportPO'); - - echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> - - -
- -
-
-
-

Siddharth Industries - Import Purchase Order

-
-

- Print -
-
-
-
-
-
-
- - - 'Selected Requisition Numbers'); - if(!empty($ReqList)) - { - foreach ($ReqList as $SID): - - // print_r($SID->ReqNo); - $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; - $ReqType = $SID->ReqType; - endforeach; - } - echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); - - ?> -
- - - -
-
-
-
- - - 'Select Supplier'); - //print_r( $options); - if(!empty($Suplist)) - { - foreach ($Suplist as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - - echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); - - ?> - -
-

- -
- 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
-
- Exchange Rate : -
- 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); - echo form_input($data); - ?> -
-
-
-
-
- -
- - 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); - echo form_input($data); - ?> -
-
-
- -
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
- -
-
-
- -
- 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
-
- -
- 'Deliverydt','value' => set_value('Deliverydt',$CurrentDate),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
-
- -
-
-
-
- -
- -
-
-Add Line Item - - - - - - - - - - -
-
- - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - -
SNoRequisition NoItem NameQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
-
- - -
- -
-
- - - 'txttotallanding','value' => set_value('txttotallanding'),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalhighseas','value' => set_value('txttotalhighseas'),'id'=>'txttotalhighseas', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustom','value' => set_value('txttotalcustom'),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalexcise','value' => set_value('txttotalexcise'),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalexciseED','value' => set_value('txttotalexciseED'),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalexciseSH','value' => set_value('txttotalexciseSH'),'id'=>'txttotalexciseSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomED','value' => set_value('txttotalcustomED'),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomSH','value' => set_value('txttotalcustomSH'),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty'),'id'=>'txttotalAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalgrossduty','value' => set_value('txttotalgrossduty'),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat'),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense'),'id'=>'txttotalgrossexpense', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- 'txtToatlOrder','value' => set_value('txtToatlOrder'),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true'); - echo form_input($data); - ?> -
-
- -
- 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
- -
-
- 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '3', 'cols' => '40' ); - echo form_textarea($data); - ?> -
-
-
-
- -

- - - - - -   Save -   Submit - - - - -
-
-
-
-
-
- - - - - - +Address; + } +} + +$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); +$CurrentDate = $dt->format('Y-m-d'); + +$MaxPoDate = ''; +if(!empty($MaxPODate)) +{ + foreach ($MaxPODate as $date) + { + $MaxPoDate = $date->PODate; + } +} + +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = $AvlBudAmt; + +} +?> + + + + + + + + +
+ 'form-label-left ImportPO ','name' => 'ImportPO','id' => 'ImportPO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + + +
+ +
+ + +

Siddharth Industries - Import Purchase Order


+ + + +
+
+
+
+
+ + + 'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + foreach ($ReqList as $SID): + + // print_r($SID->ReqNo); + $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; + $ReqType = $SID->ReqType; + endforeach; + } + echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); + + ?> +
+
+ + + 'Select Currency Type'); + //print_r($Currency); + if(!empty($Currency)) + { //print_r($Currency); + foreach ($Currency as $CUR): + + + $options[$CUR->CurrencyCode] = $CUR->CurrencyCode.' '.' - '.' '.$CUR->CurrencyName; + + endforeach; + } + + echo form_dropdown('currencytype', $options,set_value('currencytype'),'id="currencytype"' ,'required="true"' ,'class="form-control select2'); + ?> + +
+ + +
+
+
+
+ + + 'Select Supplier'); + //print_r( $options); + if(!empty($Suplist)) + { + foreach ($Suplist as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + + ?> + +
+

+ +
+ 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+
+ +
+ 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); + echo form_input($data); + ?> +
+
+
+
+
+ +
+ + 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ +
+ 'DeliveryAddr','value' => set_value('DeliveryAddr',$CompanyAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+
+ +
+ 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+ +
+
+
+ + Select Delivery By
+ + + "DateRange", "id"=>"Date", "value"=>"0", 'checked'=>set_radio('DateRange', '0', TRUE))); ?>     + + "DateRange", "id"=>"Schedule", "value"=>"1", 'checked'=>set_radio('DateRange', '1', FALSE))); ?> + + + +
+ + +
+ + + 'Deliverydt','value' => set_value('Deliverydt'),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> + +
+ + +
+ +
+
+
+ + +
+ +
+
+Add Line Item + + + + + + + + + + +
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + +
SNoRequisition NoItem NameQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
+
+ +
+ +
+
+ + + 'txttotallanding','value' => set_value('txttotallanding'),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalhighseas','value' => set_value('txttotalhighseas'),'id'=>'txttotalhighseas', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustom','value' => set_value('txttotalcustom'),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexcise','value' => set_value('txttotalexcise'),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexciseED','value' => set_value('txttotalexciseED'),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalexciseSH','value' => set_value('txttotalexciseSH'),'id'=>'txttotalexciseSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomED','value' => set_value('txttotalcustomED'),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomSH','value' => set_value('txttotalcustomSH'),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty'),'id'=>'txttotalAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossduty','value' => set_value('txttotalgrossduty'),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat'),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense'),'id'=>'txttotalgrossexpense', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ 'txtToatlOrder','value' => set_value('txtToatlOrder'),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+
+ + + +
+
+ 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '3', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+
+
+ +

+ + + + + +   Save +   Submit + + +
+
+
+
+ +
+
+
+
+ + + + + + diff --git a/application/views/importpopdf.php b/application/views/importpopdf.php index 3dac1aa0..725cd513 100755 --- a/application/views/importpopdf.php +++ b/application/views/importpopdf.php @@ -1,3 +1,47 @@ +CompanyName; + $CompanyAddress = $CO->Address; + } + } + + + if(!empty($POItem)) + { + foreach ($POItem as $PO) + { + $PONO = $PO->PONO; + $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; + + } + } + + +?> +

IMPORT PURCHASE ORDER

@@ -36,7 +80,39 @@ Gross expenses due to custom duty Total Amount(INR) - + + + + + + + + +MaterialName ; ?> +Quantity ; ?> +Rate ; ?> +Quantity*$record->Rate); + echo number_format($BasicValue,2) ; ?> +AfterLandingCharge; ?> +AfterHighSeasSalesCharge ; ?> +AfterCustomDuty ; ?> +AfterExciseDuty ; ?> +AfterExciseDutyEdCess ; ?> +AfterCustomEdCess ; ?> +AfterAddlExciseDuty ; ?> +Grossdutypayable ; ?> +AvailableModvat ; ?> +Grossexpensesduetocustomduty ; ?> +purchaseratePerKG ; ?> +CustomDutyExpensesPerKG ; ?> +RMCIncludingCustomersPerKG ; ?> +AfterCustomSHCess ; ?> +AfterExciseDutySHCess ; ?> +QuantityKG ; ?> +TotalOrderValue; ?> + + + + AfterLandingCharge; + $AfterHighSeasSalesCharge=$AfterHighSeasSalesCharge+$record->AfterHighSeasSalesCharge ; + $AfterCustomDuty = $AfterCustomDuty+$record->AfterCustomDuty ; + $AfterCustomEdCess = $AfterCustomEdCess+$record->AfterCustomEdCess ; + $AfterCustomSHCess = $AfterCustomSHCess+$record->AfterCustomSHCess ; + $AfterExciseDuty = $AfterExciseDuty+$record->AfterExciseDuty ; + $AfterExciseDutyEdCess = $AfterExciseDutyEdCess+$record->AfterExciseDutyEdCess ; + $AfterAddlExciseDuty = $AfterAddlExciseDuty+$record->AfterAddlExciseDuty ; + $Grossdutypayable = $Grossdutypayable+$record->Grossdutypayable ; + $AvailableModvat = $AvailableModvat+$record->AvailableModvat ; + $Grossexpensesduetocustomduty = $Grossexpensesduetocustomduty+$record->Grossexpensesduetocustomduty ; + $purchaseratePerKG = $purchaseratePerKG+$record->purchaseratePerKG ; + $CustomDutyExpensesPerKG = $CustomDutyExpensesPerKG+$record->CustomDutyExpensesPerKG ; + $RMCIncludingCustomersPerKG = $RMCIncludingCustomersPerKG+$record->RMCIncludingCustomersPerKG ; + $AfterExciseDutySHCess= $AfterExciseDutySHCess+$record->AfterExciseDutySHCess ; + $TotalOrderValue = $TotalOrderValue+$record->TotalOrderValue; + } + } + + ?> + + +
- - - - + + +
- - - - + + +
+ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Landing Charge (Rs):5500

High Seas Sales charge (Rs):11000

Custom duty (Rs):14300

Custom duty- Edu.cess (Rs):14300

Landing charge :

Custom duty-Sec & Hig Edu cess (Rs) :7700

Excise duty (Rs) :2200

Excise duty- Edu.cess (Rs):1300

Excise duty-Sec & Hig Edu cess (Rs):14300

High seas sales charge:

Additional Excise duty (Rs) :7700

Gross duty payable (Rs) :2200

Available Modvat -set-off on import (Rs):1300

Gross expenses due to custom duty (Rs):14300

Custom duty :
Excise duty :
Excise duty ED_cess :
Excise duty S & H cess :
Custom ED_cess :
Custom S & H cess :
Additional Excise duty :
Gross duty payable :
Available Modvat set-off on import :
Gross expenses due to custom duty :
Purchase Rate :
Custom Duty Expenses :
RMC Including Customers :

Total Order Amount :



-
-
-

Sub Total (INR):13,61,800

-
\ No newline at end of file