add,edit,pdf of import po
This commit is contained in:
parent
0ec18d2521
commit
fbde8c6950
@ -151,6 +151,7 @@ class purchaseorder extends BaseController
|
|||||||
|
|
||||||
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
|
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
|
||||||
$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
|
$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
|
||||||
|
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
|
||||||
|
|
||||||
$ViewName = '';
|
$ViewName = '';
|
||||||
if($ReqType == REVENUE)
|
if($ReqType == REVENUE)
|
||||||
@ -188,6 +189,12 @@ class purchaseorder extends BaseController
|
|||||||
$this ->revenuepoprint($PONO);
|
$this ->revenuepoprint($PONO);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if($ReqType == IMPORT)
|
||||||
|
{
|
||||||
|
$this ->importpoprint($PONO);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function CreaterevenuePOPrint()
|
function CreaterevenuePOPrint()
|
||||||
@ -263,6 +270,28 @@ class purchaseorder extends BaseController
|
|||||||
$this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL);
|
$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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// To get the Material value based on the MaterialCode
|
// To get the Material value based on the MaterialCode
|
||||||
@ -773,6 +802,39 @@ class purchaseorder extends BaseController
|
|||||||
$this->dompdf->stream("ServicePOReport.pdf",$data,$php);
|
$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
|
* This function used to load the Delete the Requistion Items
|
||||||
*/
|
*/
|
||||||
@ -825,6 +887,8 @@ class purchaseorder extends BaseController
|
|||||||
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
|
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
|
||||||
$TotalOrder = $this->input->post('txtToatlOrder');
|
$TotalOrder = $this->input->post('txtToatlOrder');
|
||||||
$POStatus = $this->input->post('textStatus');
|
$POStatus = $this->input->post('textStatus');
|
||||||
|
//echo "$POStatus";
|
||||||
|
//die();
|
||||||
|
|
||||||
$CreateBy = $this->session->userdata ( 'userId' );
|
$CreateBy = $this->session->userdata ( 'userId' );
|
||||||
$RowCount = $this->input->post('txtRowCount');
|
$RowCount = $this->input->post('txtRowCount');
|
||||||
@ -847,6 +911,7 @@ class purchaseorder extends BaseController
|
|||||||
// PO Master
|
// PO Master
|
||||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt );
|
$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);
|
$POMaster = $this->purchaseorder_model->addPOMaster($POList);
|
||||||
|
|
||||||
$PONO = '';
|
$PONO = '';
|
||||||
@ -871,18 +936,42 @@ class purchaseorder extends BaseController
|
|||||||
$Exchangerate = $this->input->post('Exchangerate'.$i);
|
$Exchangerate = $this->input->post('Exchangerate'.$i);
|
||||||
$BasicPriceinmton = $this->input->post('BasicPriceinUS'.$i);
|
$BasicPriceinmton = $this->input->post('BasicPriceinUS'.$i);
|
||||||
$Productprice = $this->input->post('BasicAmt'.$i);
|
$Productprice = $this->input->post('BasicAmt'.$i);
|
||||||
$LandingCharge = $this->input->post('AfterLandingChargee'.$i);
|
$LandingCharge = $this->input->post('LandingChargee'.$i);
|
||||||
$HighSeas = $this->input->post('AfterHighseass'.$i);
|
$AfterLandingCharge = $this->input->post('AfterLandingChargee'.$i);
|
||||||
$CustomDuty = $this->input->post('AfterCustomduty'.$i);
|
$HighSeas = $this->input->post('Highseass'.$i);
|
||||||
$ExciseDuty = $this->input->post('AfterExcisedutyTax'.$i);
|
$AfterHighSeas = $this->input->post('AfterHighseass'.$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);
|
|
||||||
|
|
||||||
|
$CustomDuty = $this->input->post('Customduty'.$i);
|
||||||
|
$AfterCustomDuty = $this->input->post('AfterCustomduty'.$i);
|
||||||
|
|
||||||
echo $BasicPriceinmton;
|
$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);
|
$CostCenter = $this->input->post('costCode'.$i);
|
||||||
|
|
||||||
$SkipInsert = "False";
|
$SkipInsert = "False";
|
||||||
@ -916,7 +1005,13 @@ class purchaseorder extends BaseController
|
|||||||
if(trim($POType) == IMPORT )
|
if(trim($POType) == IMPORT )
|
||||||
{
|
{
|
||||||
// echo 'Success';
|
// 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);
|
$ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList);
|
||||||
//echo 'Revenue tax Success';
|
//echo 'Revenue tax Success';
|
||||||
@ -969,23 +1064,48 @@ class purchaseorder extends BaseController
|
|||||||
$Reqnumber = $this->input->post('Reqnumber'.$i);
|
$Reqnumber = $this->input->post('Reqnumber'.$i);
|
||||||
$itemRate = $this->input->post('itemRate'.$i);
|
$itemRate = $this->input->post('itemRate'.$i);
|
||||||
|
|
||||||
$Exchangerate = $this->input->post('ExchangeRate'.$i);
|
$Exchangerate = $this->input->post('Exchangerate'.$i);
|
||||||
$BasicPriceinmton = $this->input->post('imBasicPrice'.$i);
|
$BasicPriceinmton = $this->input->post('BasicPriceinUS'.$i);
|
||||||
$Productprice = $this->input->post('BasicValue'.$i);
|
$Productprice = $this->input->post('BasicAmt'.$i);
|
||||||
$LandingCharge = $this->input->post('txttotallanding'.$i);
|
$LandingCharge = $this->input->post('LandingChargee'.$i);
|
||||||
$HighSeas = $this->input->post('txttotalhighseas'.$i);
|
$AfterLandingCharge = $this->input->post('AfterLandingChargee'.$i);
|
||||||
$CustomDuty = $this->input->post('txttotalcustom'.$i);
|
$HighSeas = $this->input->post('Highseass'.$i);
|
||||||
$ExciseDuty = $this->input->post('txttotalexcise'.$i);
|
$AfterHighSeas = $this->input->post('AfterHighseass'.$i);
|
||||||
$ExciseDutyEd = $this->input->post('txttotalexciseED'.$i);
|
|
||||||
$ExciseDutySH = $this->input->post('txttotalexciseSH'.$i);
|
$CustomDuty = $this->input->post('Customduty'.$i);
|
||||||
$CustomEd= $this->input->post('txttotalcustomED'.$i);
|
$AfterCustomDuty = $this->input->post('AfterCustomduty'.$i);
|
||||||
$CustomSH = $this->input->post('txttotalcustomSH'.$i);
|
|
||||||
$AddAdtional = $this->input->post('txttotalAdditionalExciseduty'.$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);
|
$POLineItemNo = $this->input->post('LineItemNo'.$i);
|
||||||
$CostCenter = $this->input->post('costCode'.$i);
|
$CostCenter = $this->input->post('costCode'.$i);
|
||||||
|
$ExciseDutySH = $this->input->post('ExcisedutySH'.$i);
|
||||||
$LineItemNo = '';
|
$LineItemNo = '';
|
||||||
|
|
||||||
|
$currencytypeID = $this->input->post('currencytype');
|
||||||
$SkipInsert = "False";
|
$SkipInsert = "False";
|
||||||
if( count($comma_separated) > 0)
|
if( count($comma_separated) > 0)
|
||||||
{
|
{
|
||||||
@ -1023,14 +1143,14 @@ class purchaseorder extends BaseController
|
|||||||
$isExists = $this->purchaseorder_model->LineItemExistsinRevenueTax($LineItemNo);
|
$isExists = $this->purchaseorder_model->LineItemExistsinRevenueTax($LineItemNo);
|
||||||
if(count($isExists) == 0)
|
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);
|
$ImportList = $this->purchaseorder_model->addImportTax($RevenueTaxList);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
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);
|
$this->purchaseorder_model->updateImportTax($LineItemNo,$RevenueTaxList);
|
||||||
|
|
||||||
@ -1042,7 +1162,6 @@ class purchaseorder extends BaseController
|
|||||||
echo 'Purchase Order Updated Successfully! PO Number Is: '.$PONO ;
|
echo 'Purchase Order Updated Successfully! PO Number Is: '.$PONO ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -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
|
// To Update the PO
|
||||||
function updatePOMaster($PONO,$PODetails)
|
function updatePOMaster($PONO,$PODetails)
|
||||||
{
|
{
|
||||||
@ -790,6 +855,14 @@ class purchaseorder_model extends CI_Model
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function DeletePOImportTax( $LineItem='')
|
||||||
|
{
|
||||||
|
$this->db->where('LineItemNo', $LineItem);
|
||||||
|
$this->db->delete('T_Import_Tax');
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
3577
application/views/editimportpo.php
Normal file
3577
application/views/editimportpo.php
Normal file
File diff suppressed because it is too large
Load Diff
225
application/views/importpo.php
Executable file → Normal file
225
application/views/importpo.php
Executable file → Normal file
@ -52,8 +52,9 @@ if(!empty($AvlBudAmt))
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
//Initialize Select2 Elements
|
//Initialize Select2 Elements for currency type
|
||||||
//$("#drpSupplier").select2();
|
$("#currencytype").select2();
|
||||||
|
|
||||||
var POMaxDate = '<?php echo $MaxPoDate;?>';
|
var POMaxDate = '<?php echo $MaxPoDate;?>';
|
||||||
var d = new Date(POMaxDate);
|
var d = new Date(POMaxDate);
|
||||||
$("#PODate").datepicker({
|
$("#PODate").datepicker({
|
||||||
@ -80,14 +81,12 @@ if(!empty($AvlBudAmt))
|
|||||||
<section class="content">
|
<section class="content">
|
||||||
|
|
||||||
<div style="border:2px solid #333">
|
<div style="border:2px solid #333">
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="col-md-11">
|
|
||||||
<center><b><h2>Siddharth Industries - Import Purchase Order</h2></b></center>
|
<center><b><h2>Siddharth Industries - Import Purchase Order</h2></b></center><br/>
|
||||||
</div>
|
|
||||||
<div class="col-md-1"><br/>
|
|
||||||
<a class="btn btn-info" href="<?php echo base_url(); ?>purchaseorder/CreateimportPOPrint" target="_blank">Print</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -111,15 +110,26 @@ if(!empty($AvlBudAmt))
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="col-md-12">
|
<div class="col-md-12">
|
||||||
Basic Price in US $ per Ton :
|
<label>Currency Type</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'BasicUSPrice','value' => set_value('BasicUSPrice'),'id'=>'BasicUSPrice', 'class' => 'form-control' ,'placeholder '=>'basic price','onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()');
|
$options = array("0"=>'Select Currency Type');
|
||||||
echo form_input($data);
|
//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');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<a href="http://www.xe.com/" target="_blank"><u>Click here to check Today's Foreign Exchange value</u></a>
|
<a href="http://www.xe.com/" target="_blank"><u>Click here to check Today's Foreign Exchange value</u></a>
|
||||||
</div>
|
</div>
|
||||||
@ -158,7 +168,7 @@ if(!empty($AvlBudAmt))
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
Exchange Rate :
|
<label>Exchange Rate </label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()');
|
$data = array('name' => 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()');
|
||||||
@ -186,6 +196,15 @@ if(!empty($AvlBudAmt))
|
|||||||
echo Form_textarea($data);
|
echo Form_textarea($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label>Purchase Order Date</label>
|
||||||
|
<div class="form-group">
|
||||||
|
<?php
|
||||||
|
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||||
|
echo form_input($data);
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="col-md-12">
|
<!-- <div class="col-md-12">
|
||||||
Basic value in INR :
|
Basic value in INR :
|
||||||
@ -199,31 +218,46 @@ if(!empty($AvlBudAmt))
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<label>Purchase Order Date</label>
|
|
||||||
<div class="form-group">
|
<b><u>Select Delivery By</u></b><br/>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<?php echo form_label('Date', 'Date') ." ". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>set_radio('DateRange', '0', TRUE))); ?> </td>
|
||||||
|
<td>
|
||||||
|
<?php echo form_label('Schedule', 'Schedule') ." ". form_radio(array("name"=>"DateRange", "id"=>"Schedule", "value"=>"1", 'checked'=>set_radio('DateRange', '1', FALSE))); ?>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-12" id="Schedulediv" style="display:none;"><br/>
|
||||||
|
<label >Schedule :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
|
||||||
echo form_input($data);
|
echo Form_textarea($data);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-md-12" id="Deliverydtdiv">
|
||||||
<div class="col-md-12">
|
|
||||||
<label>Delivery Date</label>
|
<label>Delivery Date</label>
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt',$CurrentDate),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt'),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
|
<div class="">
|
||||||
<table class="table table-bordered" style="border:1px solid #333">
|
<table class="table table-bordered" style="border:1px solid #333">
|
||||||
<div align="right" style="padding-right:10px">
|
<div align="right" style="padding-right:10px">
|
||||||
<div align="right">
|
<div align="right">
|
||||||
@ -310,25 +344,10 @@ if(!empty($AvlBudAmt))
|
|||||||
<!--In this item code the value should come from DB , so it getting error , so i am disabling this div , once get the data from DB uncommand this div-->
|
<!--In this item code the value should come from DB , so it getting error , so i am disabling this div , once get the data from DB uncommand this div-->
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
// $options = array("0"=>'Item Code');
|
|
||||||
|
|
||||||
//if(!empty($MaterialList))
|
|
||||||
//{
|
|
||||||
// foreach ($MaterialList as $SID):
|
|
||||||
|
|
||||||
|
|
||||||
// $options[$SID->MaterialCode] = $SID->MaterialCode.' '.' - '.' '.$SID->MaterialName;
|
|
||||||
|
|
||||||
//endforeach;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//echo form_dropdown('ImportMaterialCode', $options,set_value('ImportMaterialCode'),'id="ImportMaterialCode"' ,'class="form-control"');
|
|
||||||
|
|
||||||
$options = array("0"=>'Item Code');
|
$options = array("0"=>'Item Code');
|
||||||
//print_r( $options);
|
//print_r( $options);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control"');
|
echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -656,7 +675,7 @@ if(!empty($AvlBudAmt))
|
|||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Grossdutypayable ','value' => set_value('Grossdutypayable'),'id'=>'Grossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateAvlModvat()');
|
$data = array('name' => 'Grossdutypayable ','value' => set_value('Grossdutypayable'),'id'=>'Grossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true','onchange'=>'CalculateAvlModvat()');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -684,7 +703,7 @@ if(!empty($AvlBudAmt))
|
|||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Grossexpenses','value' => set_value('Grossexpenses'),'id'=>'Grossexpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
$data = array('name' => 'Grossexpenses','value' => set_value('Grossexpenses'),'id'=>'Grossexpenses', 'class' => 'form-control' ,'readonly'=>'true','onkeypress'=>'return isNumberKey(event);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -1287,7 +1306,7 @@ if(!empty($AvlBudAmt))
|
|||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditTotalExp','value' => set_value('TotalExp'),'id'=>'TotalExp', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
$data = array('name' => 'EditTotalExp','value' => set_value('EditTotalExp'),'id'=>'EditTotalExp', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -1314,7 +1333,7 @@ if(!empty($AvlBudAmt))
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1344,11 +1363,10 @@ if(!empty($AvlBudAmt))
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</table>
|
<div class="col-md-12" style="border: 1px solid;">
|
||||||
<div class="col-md-3 col-md-offset-9">
|
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Landing Charge :</label>
|
<label >Total Landing Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1357,7 +1375,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total High seas sales Charge :</label>
|
<label >Total High seas sales Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1366,7 +1384,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Custom Duty Charge :</label>
|
<label >Total Custom Duty Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1375,7 +1393,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Excise duty Charge :</label>
|
<label >Total Excise duty Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1384,7 +1402,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Excise duty ED_cess Charge :</label>
|
<label >Total Excise duty ED_cess Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1394,7 +1412,7 @@ if(!empty($AvlBudAmt))
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Excise duty S & H cess Charge :</label>
|
<label >Total Excise duty S & H cess Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1403,7 +1421,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Custom ED_cess Charge :</label>
|
<label >Total Custom ED_cess Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1412,7 +1430,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Custom S & H cess Charge :</label>
|
<label >Total Custom S & H cess Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1421,7 +1439,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Additional Excise duty Charge :</label>
|
<label >Total Additional Excise duty Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1431,7 +1449,7 @@ if(!empty($AvlBudAmt))
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Gross duty payable Charge :</label>
|
<label >Total Gross duty payable Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1440,7 +1458,7 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Available Modvat set-off on import Charge :</label>
|
<label >Total Available Modvat set-off on import Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1450,7 +1468,7 @@ if(!empty($AvlBudAmt))
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-4">
|
||||||
<label >Total Gross expenses due to custom duty Charge :</label>
|
<label >Total Gross expenses due to custom duty Charge :</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -1462,20 +1480,15 @@ if(!empty($AvlBudAmt))
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<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'),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true');
|
$data = array('name' => 'txtToatlOrder','value' => set_value('txtToatlOrder'),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true','style'=>'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label>Total Order Value :</label> <?php
|
|
||||||
$data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true');
|
|
||||||
echo form_input($data);
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -1485,7 +1498,6 @@ if(!empty($AvlBudAmt))
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div align="right" style="padding-right:10px">
|
<div align="right" style="padding-right:10px">
|
||||||
|
|
||||||
<div class="col-md-3 col-md-offset-9"><br/>
|
<div class="col-md-3 col-md-offset-9"><br/>
|
||||||
@ -1498,13 +1510,13 @@ if(!empty($AvlBudAmt))
|
|||||||
<a class="btn btn-primary Submit" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
<a class="btn btn-primary Submit" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
||||||
<input type="reset" class="btn btn-primary" value="Reset">
|
<input type="reset" class="btn btn-primary" value="Reset">
|
||||||
|
|
||||||
<!--<button type="button" class="btn btn-primary">Save</button>
|
|
||||||
<button type="button" class="btn btn-primary">Cancel</button>-->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1531,7 +1543,20 @@ if(!empty($AvlBudAmt))
|
|||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//alert();
|
// for delivey date and scheduled
|
||||||
|
$(document).ready(function () {
|
||||||
|
$('#Date').click(function () {
|
||||||
|
//for Date range selection
|
||||||
|
$('#Schedulediv').hide();
|
||||||
|
$('#Deliverydtdiv').show();
|
||||||
|
});
|
||||||
|
$('#Schedule').click(function () {
|
||||||
|
//for schedule range selection
|
||||||
|
$('#Deliverydtdiv').hide();
|
||||||
|
$('#Schedulediv').show();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
alert();
|
||||||
var SelectedMaterialCode = [];
|
var SelectedMaterialCode = [];
|
||||||
var RequistQuantity = '';
|
var RequistQuantity = '';
|
||||||
var AvilBudAmt = '';
|
var AvilBudAmt = '';
|
||||||
@ -1978,10 +2003,11 @@ function EditCalculateExciseDuty()
|
|||||||
{
|
{
|
||||||
$('#EditAfterExcisedutyTax').val('');
|
$('#EditAfterExcisedutyTax').val('');
|
||||||
}
|
}
|
||||||
else{
|
else
|
||||||
|
{
|
||||||
//var totalexcise=txtcustomduty+Exciseduty;
|
//var totalexcise=txtcustomduty+Exciseduty;
|
||||||
$('#EditAfterExcisedutyTax').val(parseFloat(Math.round(totalexcise)));
|
$('#EditAfterExcisedutyTax').val(parseFloat(Math.round(totalexcise)));
|
||||||
}
|
}
|
||||||
EditCalculateExciseED1();
|
EditCalculateExciseED1();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2505,6 +2531,7 @@ function CalculateCtable()
|
|||||||
{
|
{
|
||||||
$('#RMCIncludingCustomers').val(Math.round(txtrmc));
|
$('#RMCIncludingCustomers').val(Math.round(txtrmc));
|
||||||
}
|
}
|
||||||
|
quantity=parseFloat($('#Quantity').val());
|
||||||
total=<?php echo CALCULATE_TOTAL;?>;
|
total=<?php echo CALCULATE_TOTAL;?>;
|
||||||
if(isNaN(total))
|
if(isNaN(total))
|
||||||
{
|
{
|
||||||
@ -2560,6 +2587,7 @@ function EditCalculateCtable()
|
|||||||
$('#EditCustomDutyExpenses').val(txtcustomdutyexp);
|
$('#EditCustomDutyExpenses').val(txtcustomdutyexp);
|
||||||
//txtrmc=txtpurchaserate+txtcustomdutyexp;
|
//txtrmc=txtpurchaserate+txtcustomdutyexp;
|
||||||
txtrmc=<?php echo RMC_CAL;?>;
|
txtrmc=<?php echo RMC_CAL;?>;
|
||||||
|
purquantity=parseFloat($('#PurQuantity').val());
|
||||||
$('#EditRMCIncludingCustomers').val(txtrmc);
|
$('#EditRMCIncludingCustomers').val(txtrmc);
|
||||||
total=<?php echo CALCULATE_TOTAL;?>;
|
total=<?php echo CALCULATE_TOTAL;?>;
|
||||||
$('#EditTotalExp').val(total);
|
$('#EditTotalExp').val(total);
|
||||||
@ -2594,8 +2622,7 @@ $('.AddImport').click(function()
|
|||||||
var Exchangerate=parseFloat($("#ExchangeRt").val());
|
var Exchangerate=parseFloat($("#ExchangeRt").val());
|
||||||
var Basicpriceinus=parseFloat($("#imBasicPrice").val());
|
var Basicpriceinus=parseFloat($("#imBasicPrice").val());
|
||||||
|
|
||||||
//alert(JSON.strigify(totalexp));
|
//alert(JSON.stringify(totalexp));
|
||||||
|
|
||||||
|
|
||||||
// index = parseInt(index)+1;
|
// index = parseInt(index)+1;
|
||||||
// alert('in');
|
// alert('in');
|
||||||
@ -2708,6 +2735,7 @@ $('.AddImport').click(function()
|
|||||||
addHidden(theForm,"RMCIncludingCustomers"+temp,RMCIncluderate);
|
addHidden(theForm,"RMCIncludingCustomers"+temp,RMCIncluderate);
|
||||||
addHidden(theForm,"AvilableModvat"+temp,Avlmodvat);
|
addHidden(theForm,"AvilableModvat"+temp,Avlmodvat);
|
||||||
addHidden(theForm,"TotalExp"+temp,totalexp);
|
addHidden(theForm,"TotalExp"+temp,totalexp);
|
||||||
|
// alert(JSON.stringify(totalexp));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2815,7 +2843,7 @@ var TotalAdditionalExcise=$('#txttotalAdditionalExciseduty').val()==''?'0.00':$(
|
|||||||
var TotalGrossDuty=$('#txttotalgrossduty').val()==''?'0.00':$('#txttotalgrossduty').val();
|
var TotalGrossDuty=$('#txttotalgrossduty').val()==''?'0.00':$('#txttotalgrossduty').val();
|
||||||
var TotalAvlmodvat=$('#txttotalavlmodvat').val()==''?'0.00':$('#txttotalavlmodvat').val();
|
var TotalAvlmodvat=$('#txttotalavlmodvat').val()==''?'0.00':$('#txttotalavlmodvat').val();
|
||||||
var TotalGrossExpense=$('#txttotalgrossexpense').val()==''?'0.00':$('#txttotalgrossexpense').val();
|
var TotalGrossExpense=$('#txttotalgrossexpense').val()==''?'0.00':$('#txttotalgrossexpense').val();
|
||||||
var TotalOrder=$('#txtToatlOrder').val()==''?'0.00':$('txtToatlOrder').val();
|
var TotalOrder=$('#txtToatlOrder').val()==''?'0.00':$('#txtToatlOrder').val();
|
||||||
$('#txttotallanding').val((parseFloat(AfterLandingCharge) + parseFloat(TotalLanding)).toFixed(2) );
|
$('#txttotallanding').val((parseFloat(AfterLandingCharge) + parseFloat(TotalLanding)).toFixed(2) );
|
||||||
$('#txttotalhighseas').val((parseFloat(TotalHighseas) + parseFloat(AfterHighseas)).toFixed(2) );
|
$('#txttotalhighseas').val((parseFloat(TotalHighseas) + parseFloat(AfterHighseas)).toFixed(2) );
|
||||||
$('#txttotalcustom').val((parseFloat(TotalCustom) + parseFloat(AfterCustomduty)).toFixed(2) );
|
$('#txttotalcustom').val((parseFloat(TotalCustom) + parseFloat(AfterCustomduty)).toFixed(2) );
|
||||||
@ -2829,6 +2857,8 @@ $('#txttotalgrossduty').val((parseFloat(TotalGrossDuty) + parseFloat(Grossdutypa
|
|||||||
$('#txttotalavlmodvat').val((parseFloat(TotalAvlmodvat) + parseFloat(AvailableModvat)).toFixed(2) );
|
$('#txttotalavlmodvat').val((parseFloat(TotalAvlmodvat) + parseFloat(AvailableModvat)).toFixed(2) );
|
||||||
$('#txttotalgrossexpense').val((parseFloat(TotalGrossExpense) + parseFloat(Grossexpenses)).toFixed(2) );
|
$('#txttotalgrossexpense').val((parseFloat(TotalGrossExpense) + parseFloat(Grossexpenses)).toFixed(2) );
|
||||||
$('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(2) );
|
$('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(2) );
|
||||||
|
//alert(JSON.stringify(totalexp));
|
||||||
|
alert(TotalOrder);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2838,6 +2868,22 @@ $('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(
|
|||||||
function clearTaxField()
|
function clearTaxField()
|
||||||
{
|
{
|
||||||
//$('#AfterBasicPriceTax').val('');
|
//$('#AfterBasicPriceTax').val('');
|
||||||
|
$('#ReqNo').val('');
|
||||||
|
$('#deptName').val('');
|
||||||
|
$('#CostCenter').val('');
|
||||||
|
$('#AvlBudAmt').val('');
|
||||||
|
$('#MaterialCode').val('');
|
||||||
|
$('#ItemName').val('');
|
||||||
|
$('#UOM').val('');
|
||||||
|
$('#Quantity').val('');
|
||||||
|
$('#Rate').val('');
|
||||||
|
$('#txtBasicValue').val('');
|
||||||
|
$('#imBasicPrice').val('');
|
||||||
|
$('#ExchangeRt').val('');
|
||||||
|
$('#INRBasicvalue').val('');
|
||||||
|
$('#BasicPriceTax').val('');
|
||||||
|
$('#AfterBasicPriceTax').val('');
|
||||||
|
$('#TotalExp').val('');
|
||||||
$('#AfterLandingCharge').val('');
|
$('#AfterLandingCharge').val('');
|
||||||
$('#LandingCharge').val('');
|
$('#LandingCharge').val('');
|
||||||
$('#AfterHighseas').val('');
|
$('#AfterHighseas').val('');
|
||||||
@ -3292,25 +3338,12 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('#txtStatus').val(stat);
|
$('#txtStatus').val(stat);
|
||||||
/*var MaterialCode= $("#MaterialCode").val();
|
|
||||||
var Quantity= $("#quantity").val();
|
|
||||||
var Reqnumber= $("#Reqnumber").val();
|
|
||||||
var itemRate= $("#itemRate").val();
|
|
||||||
var Exchangerate= $("#ExchangeRate").val();
|
|
||||||
var BasicPriceinmton= $("#imBasicPrice").val();
|
|
||||||
var Productprice= $("#txtBasicValue").val();
|
|
||||||
var LandingCharge= $("#txttotallanding").val();
|
|
||||||
var HighSeas = $("#txttotalhighseas").val();
|
|
||||||
var CustomDuty= $("#txttotalcustom").val();
|
|
||||||
var ExciseDuty= $("#txttotalexcise").val();
|
|
||||||
var ExciseDutyEd= $("#txttotalexciseED").val();
|
|
||||||
var ExciseDutySH= $("#txttotalexciseSH").val();
|
|
||||||
var CustomEd= $("#txttotalcustomED").val();
|
|
||||||
var CustomSH= $("#txttotalcustomSH").val();
|
|
||||||
var AddAdtional= $("#txttotalAdditionalExciseduty").val();*/
|
|
||||||
|
|
||||||
var txtRowCount = $('#txtRowCount').val();
|
var txtRowCount = $('#txtRowCount').val();
|
||||||
var txtDeletedRow = $('#txtDeletedRow').val();
|
var txtDeletedRow = $('#txtDeletedRow').val();
|
||||||
|
//alert(stat);
|
||||||
|
//alert(JSON.stringify(txtStatus));
|
||||||
|
//exit();
|
||||||
if(validate())
|
if(validate())
|
||||||
{
|
{
|
||||||
if(document.getElementById('ImportTax').rows.length <= 0)
|
if(document.getElementById('ImportTax').rows.length <= 0)
|
||||||
@ -3325,7 +3358,7 @@ if(validate())
|
|||||||
|
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data:$('.ImportPO').serialize()+"&txtRowCount="+txtRowCount+"&txtDeletedRow="+txtDeletedRow+"textStatus="+stat,
|
data:$('.ImportPO').serialize()+"&txtRowCount="+txtRowCount+"&txtDeletedRow="+txtDeletedRow+"&textStatus="+stat,
|
||||||
|
|
||||||
//data:$('.CreatealterPO').serialize()+"&TextRowCount="+TextRowCount+"&TextDeQletedRowCount="+TextDeletedRowCount+"&TextTotalOrderValueSummaryService="+TextTotalOrderValueSummaryService+"&TextSpcialInstruction="+TextSpcialInstruction+"&TextExchangerate"+ExcLandingCharge="+hangerate+"Status="+TextStatus,
|
//data:$('.CreatealterPO').serialize()+"&TextRowCount="+TextRowCount+"&TextDeQletedRowCount="+TextDeletedRowCount+"&TextTotalOrderValueSummaryService="+TextTotalOrderValueSummaryService+"&TextSpcialInstruction="+TextSpcialInstruction+"&TextExchangerate"+ExcLandingCharge="+hangerate+"Status="+TextStatus,
|
||||||
type:"POST",
|
type:"POST",
|
||||||
|
|||||||
@ -1,3 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
$PONO = '';
|
||||||
|
$CompanyAddress = '';
|
||||||
|
$CompanyName = '';
|
||||||
|
$SuplierName = '';
|
||||||
|
$SuplierAddress = '';
|
||||||
|
$DeliveryAddress = '';
|
||||||
|
$Podt = '';
|
||||||
|
$DeliveryDate ='';
|
||||||
|
$ServiceDescription = '';
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
$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;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
<div><center>
|
<div><center>
|
||||||
<h2>IMPORT PURCHASE ORDER</h2>
|
<h2>IMPORT PURCHASE ORDER</h2>
|
||||||
@ -36,7 +80,39 @@
|
|||||||
<th>Gross expenses due to custom duty</th>
|
<th>Gross expenses due to custom duty</th>
|
||||||
<th>Total Amount(INR)</th>
|
<th>Total Amount(INR)</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
|
<?php
|
||||||
|
if(!empty($POItem))
|
||||||
|
{
|
||||||
|
$BasicValue=0;
|
||||||
|
$ProductPrice = 0;
|
||||||
|
$AfterLandingCharge= 0;
|
||||||
|
$AfterHighSeasSalesCharge= 0;
|
||||||
|
$AfterCustomDuty = 0;
|
||||||
|
$AfterCustomEdCess = 0;
|
||||||
|
$AfterCustomSHCess = 0;
|
||||||
|
$AfterExciseDuty = 0;
|
||||||
|
$AfterExciseDutyEdCess = 0;
|
||||||
|
$ExciseDutySHCess = 0;
|
||||||
|
$AfterAddlExciseDuty = 0;
|
||||||
|
$Grossdutypayable = 0;
|
||||||
|
$AvailableModvat = 0;
|
||||||
|
$Grossexpensesduetocustomduty = 0;
|
||||||
|
$purchaseratePerKG=0;
|
||||||
|
$CustomDutyExpensesPerKG=0;
|
||||||
|
$RMCIncludingCustomersPerKG=0;
|
||||||
|
$AfterExciseDutySHCess=0;
|
||||||
|
$TotalOrderValue=0;
|
||||||
|
|
||||||
|
foreach($POItem as $record)
|
||||||
|
{
|
||||||
|
$index = $index + 1;
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<tr>
|
||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Resin - (A grade)</td>
|
<td>Resin - (A grade)</td>
|
||||||
<td align="right">100</td>
|
<td align="right">100</td>
|
||||||
@ -73,34 +149,146 @@
|
|||||||
<td align="right">7000</td>
|
<td align="right">7000</td>
|
||||||
<td align="right">2000</td>
|
<td align="right">2000</td>
|
||||||
<td align="right">12,38,000</td>
|
<td align="right">12,38,000</td>
|
||||||
</tr>
|
</tr>-->
|
||||||
</table>
|
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<td align="right"><?php echo $record->AfterLandingCharge; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterHighSeasSalesCharge ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterCustomDuty ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterExciseDuty ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterExciseDutyEdCess ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterCustomEdCess ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterAddlExciseDuty ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->Grossdutypayable ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AvailableModvat ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->Grossexpensesduetocustomduty ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->purchaseratePerKG ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->CustomDutyExpensesPerKG ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->RMCIncludingCustomersPerKG ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterCustomSHCess ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->AfterExciseDutySHCess ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->QuantityKG ; ?></td>
|
||||||
|
<td align="right"><?php echo $record->TotalOrderValue; ?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$AfterLandingCharge= $AfterLandingCharge+$record->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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<div align="right">
|
||||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center"><p>Landing Charge (Rs):5500</p></td>
|
<td align="right">Landing charge :</td>
|
||||||
<td align="center"><p>High Seas Sales charge (Rs):11000</p></td>
|
<td align="right"><?php echo number_format($AfterLandingCharge,2);?></td>
|
||||||
<td align="center"><p>Custom duty (Rs):14300</p></td>
|
<br/>
|
||||||
<td align="center"><p>Custom duty- Edu.cess (Rs):14300</p></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center"><p>Custom duty-Sec & Hig Edu cess (Rs) :7700</p></td>
|
<td align="right">High seas sales charge:</td>
|
||||||
<td align="center"><p>Excise duty (Rs) :2200</p></td>
|
<td align="right"><?php echo number_format($AfterHighSeasSalesCharge,2);?></td>
|
||||||
<td align="center"><p>Excise duty- Edu.cess (Rs):1300 </p></td>
|
<br/>
|
||||||
<td align="center"><p>Excise duty-Sec & Hig Edu cess (Rs):14300</p></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center"><p>Additional Excise duty (Rs) :7700</p></td>
|
<td align="right">Custom duty : </td>
|
||||||
<td align="center"><p>Gross duty payable (Rs) :2200</p></td>
|
<td align="right"><?php echo number_format($AfterCustomDuty,2);?></td>
|
||||||
<td align="center"><p>Available Modvat -set-off on import (Rs):1300 </p></td>
|
|
||||||
<td align="center"><p>Gross expenses due to custom duty (Rs):14300</p></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Excise duty :</td>
|
||||||
|
<td align="right"><?php echo number_format($AfterExciseDuty,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Excise duty ED_cess : </td>
|
||||||
|
<td align="right"><?php echo number_format($AfterExciseDutyEdCess,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Excise duty S & H cess :</td>
|
||||||
|
<td align="right"><?php echo number_format($AfterExciseDutySHCess,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Custom ED_cess : </td>
|
||||||
|
<td align="right"><?php echo number_format($AfterCustomEdCess,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Custom S & H cess :</td>
|
||||||
|
<td align="right"><?php echo number_format($AfterCustomSHCess,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Additional Excise duty :</td>
|
||||||
|
<td align="right"><?php echo number_format($AfterAddlExciseDuty,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Gross duty payable :</td>
|
||||||
|
<td align="right"><?php echo number_format($Grossdutypayable,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Available Modvat set-off on import :</td>
|
||||||
|
<td align="right"><?php echo number_format($AvailableModvat,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Gross expenses due to custom duty :</td>
|
||||||
|
<td align="right"><?php echo number_format($Grossexpensesduetocustomduty ,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Purchase Rate :</td>
|
||||||
|
<td align="right"><?php echo number_format($purchaseratePerKG,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">Custom Duty Expenses :</td>
|
||||||
|
<td align="right"><?php echo number_format($CustomDutyExpensesPerKG,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right">RMC Including Customers :</td>
|
||||||
|
<td align="right"><?php echo number_format($RMCIncludingCustomersPerKG ,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="right"><p><b>Total Order Amount :</b></p></td>
|
||||||
|
<td align="right"><?php echo number_format($TotalOrderValue,2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div align="right">
|
|
||||||
<hr/>
|
|
||||||
<p>Sub Total (INR):13,61,800</p>
|
|
||||||
<hr/>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user