Revenue AmendmentPO Change
This commit is contained in:
parent
cf8c4a042d
commit
98c7025f71
@ -280,7 +280,10 @@ class amendmentpurchaseorder extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$SpcialInstruction = $this->input->post('SpcialInstruction');
|
$SpecialInstruction = $this->input->post('txtSpcialInstruction');//$_POST['txtSpcialInstruction'];//$this->input->post('txtSpcialInstruction');//t->post('txtSpcialInstruction'));
|
||||||
|
|
||||||
|
// echo $SpecialInstruction;
|
||||||
|
|
||||||
$TotalOrderValueSummary = $this->input->post('txtTotalOrderValueSummary');
|
$TotalOrderValueSummary = $this->input->post('txtTotalOrderValueSummary');
|
||||||
$POStatus = $this->input->post('txtStatus');
|
$POStatus = $this->input->post('txtStatus');
|
||||||
|
|
||||||
@ -293,7 +296,7 @@ class amendmentpurchaseorder extends BaseController
|
|||||||
$updateddt = $dt->format('Y-m-d H:i:s');
|
$updateddt = $dt->format('Y-m-d H:i:s');
|
||||||
// PO Master
|
// PO Master
|
||||||
// PO Master
|
// PO Master
|
||||||
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'AmendedDetails'=>$MAD);
|
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpecialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'AmendedDetails'=>$MAD);
|
||||||
//print_r($POMaster);
|
//print_r($POMaster);
|
||||||
|
|
||||||
|
|
||||||
@ -366,12 +369,12 @@ class amendmentpurchaseorder extends BaseController
|
|||||||
if(($Quantity-$preqty)!=0)
|
if(($Quantity-$preqty)!=0)
|
||||||
{
|
{
|
||||||
$rowspanvalue++;
|
$rowspanvalue++;
|
||||||
$CAD="<tr><td>Amended Qty :".$preqty ."</td><td>Current Qty:".$Quantity."</td></tr>";
|
$CAD="<tr><td>Amended Quantity : ".$preqty ."</td><td>Current Qty:".$Quantity."</td></tr>";
|
||||||
}
|
}
|
||||||
if(($itemRate-$preitemrate)!=0)
|
if(($itemRate-$preitemrate)!=0)
|
||||||
{
|
{
|
||||||
$rowspanvalue++;
|
$rowspanvalue++;
|
||||||
$CAD.="<tr><td>Amended Rate :" . $preitemrate."</td><td>Current Item Rate:".$itemRate."</td></tr>";
|
$CAD.="<tr><td>Amended Rate : " . $preitemrate."</td><td>Current Item Rate:".$itemRate."</td></tr>";
|
||||||
}
|
}
|
||||||
if(($DiscountValue-$preDiscountValue)!=0)
|
if(($DiscountValue-$preDiscountValue)!=0)
|
||||||
{
|
{
|
||||||
@ -406,7 +409,7 @@ class amendmentpurchaseorder extends BaseController
|
|||||||
if(($InsuranceValue-$preInsuranceValue)!=0)
|
if(($InsuranceValue-$preInsuranceValue)!=0)
|
||||||
{
|
{
|
||||||
$rowspanvalue++;
|
$rowspanvalue++;
|
||||||
$CAD.="<tr><td>Amended InsuranceValue:". $preInsuranceValue."</td><td>Current Insurance Value:".$InsuranceValue."</td></tr>";
|
$CAD.="<tr><td>Amended Insurance Value:". $preInsuranceValue."</td><td>Current Insurance Value:".$InsuranceValue."</td></tr>";
|
||||||
}
|
}
|
||||||
if($rowspanvalue>0)
|
if($rowspanvalue>0)
|
||||||
{
|
{
|
||||||
@ -446,7 +449,7 @@ class amendmentpurchaseorder extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo 'Purchase Order Amended Successfully! PO Number Is: '.$PONO .'- New PO Number is'.$NewPO;
|
echo 'Purchase Order Amended Successfully! PO Number Is: '.$PONO .'- New PO Number is'.$NewPO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1095,8 +1098,9 @@ function CreateAmendPOPrint()
|
|||||||
|
|
||||||
|
|
||||||
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
|
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
|
||||||
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForPDF($PONO);
|
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForAmendPDF($PONO);
|
||||||
//print_r($data['POItem']);
|
//print_r($data['POItem']);
|
||||||
|
|
||||||
//die();
|
//die();
|
||||||
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
|
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
|
||||||
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
|
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
|
||||||
@ -1126,13 +1130,16 @@ function CreateAmendPOPrint()
|
|||||||
$php = $this->output->get_output();
|
$php = $this->output->get_output();
|
||||||
|
|
||||||
// // Load library
|
// // Load library
|
||||||
$this->load->library('dompdf_gen');
|
$this->load->library('dompdf_gen');
|
||||||
|
|
||||||
// // Convert to PDF
|
// // Convert to PDF
|
||||||
$this->dompdf->load_html($php);
|
$this->dompdf->load_html($php);
|
||||||
|
|
||||||
$this->dompdf->render();
|
$this->dompdf->render();
|
||||||
|
|
||||||
$data['Attachment'] = FALSE;
|
$data['Attachment'] = FALSE;
|
||||||
$this->dompdf->stream("Amendrevenuepopdf.pdf",$data,$php);
|
|
||||||
|
$this->dompdf->stream("Amendrevenuepopdf.pdf",$data,$php);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user