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,7 +369,7 @@ 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)
|
||||||
{
|
{
|
||||||
@ -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');
|
||||||
@ -1130,8 +1134,11 @@ function CreateAmendPOPrint()
|
|||||||
|
|
||||||
// // 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