revenue po changes
This commit is contained in:
parent
3974533a8d
commit
71ca4fd272
@ -300,7 +300,7 @@ class purchaseorder extends BaseController
|
|||||||
{
|
{
|
||||||
$PAYTERM=$TER->PaymentTerms;
|
$PAYTERM=$TER->PaymentTerms;
|
||||||
}
|
}
|
||||||
|
//print_r($PAYTERM);
|
||||||
//print_r($exRate);
|
//print_r($exRate);
|
||||||
//$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
|
//$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
|
||||||
$data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate();
|
$data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate();
|
||||||
@ -317,6 +317,7 @@ class purchaseorder extends BaseController
|
|||||||
{
|
{
|
||||||
|
|
||||||
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO);
|
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO);
|
||||||
|
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
|
||||||
$this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form';
|
$this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form';
|
||||||
$this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL);
|
$this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
@ -575,6 +576,19 @@ $DeliveryOption = $this->input->post('DateRange');
|
|||||||
$Deliverydt = $this->getDateformat($dt);
|
$Deliverydt = $this->getDateformat($dt);
|
||||||
$DeliverySchedule = '';
|
$DeliverySchedule = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$PaymentDate=$this->input->post('Payment');
|
||||||
|
if($PaymentDate==1)
|
||||||
|
{
|
||||||
|
$PaymentDays='After';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$PaymentDays='Before';
|
||||||
|
}
|
||||||
|
|
||||||
$POType = $this->input->post('POType');
|
$POType = $this->input->post('POType');
|
||||||
$PoRange = $this->input->post('txtPoRange');
|
$PoRange = $this->input->post('txtPoRange');
|
||||||
|
|
||||||
@ -590,8 +604,11 @@ $DeliveryOption = $this->input->post('DateRange');
|
|||||||
|
|
||||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
$createddt = $dt->format('Y-m-d H:i:s');
|
$createddt = $dt->format('Y-m-d H:i:s');
|
||||||
|
|
||||||
|
$PaymentTerms=$this->input->post('PaymentTerms');
|
||||||
|
$Payableat=$this->input->post('PayableAT');
|
||||||
// PO Master
|
// PO Master
|
||||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt );
|
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'PaymentTerms'=>$PaymentTerms,'PayableAT'=>$Payableat,'PaymentDays'=>$PaymentDays);
|
||||||
|
|
||||||
|
|
||||||
$POMaster = $this->purchaseorder_model->addPOMaster($POList);
|
$POMaster = $this->purchaseorder_model->addPOMaster($POList);
|
||||||
@ -701,6 +718,20 @@ $DeliveryOption = $this->input->post('DateRange');
|
|||||||
$Deliverydt = $this->getDateformat($dt);
|
$Deliverydt = $this->getDateformat($dt);
|
||||||
$DeliverySchedule = '';
|
$DeliverySchedule = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$PaymentDate=$this->input->post('Payment');
|
||||||
|
if($PaymentDate==1)
|
||||||
|
{
|
||||||
|
$PaymentDays='After';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$PaymentDays='Before';
|
||||||
|
}
|
||||||
|
|
||||||
$POType = $this->input->post('POType');
|
$POType = $this->input->post('POType');
|
||||||
$PoRange = $this->input->post('txtPoRange');
|
$PoRange = $this->input->post('txtPoRange');
|
||||||
|
|
||||||
@ -715,9 +746,12 @@ $DeliveryOption = $this->input->post('DateRange');
|
|||||||
$comma_separated = explode(':', $DeletedRow);
|
$comma_separated = explode(':', $DeletedRow);
|
||||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
$updateddt = $dt->format('Y-m-d H:i:s');
|
$updateddt = $dt->format('Y-m-d H:i:s');
|
||||||
|
|
||||||
|
$PaymentTerms=$this->input->post('PaymentTerms');
|
||||||
|
$Payableat=$this->input->post('PayableAT');
|
||||||
// PO Master
|
// PO Master
|
||||||
// PO Master
|
// PO Master
|
||||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpcialInstruction,'UpdateBY'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt );
|
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpcialInstruction,'UpdateBY'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'PayableAT'=>$Payableat,'PaymentDays'=>$PaymentDays);
|
||||||
|
|
||||||
$POMaster = $this->purchaseorder_model->updatePOMaster($PONO,$POList);
|
$POMaster = $this->purchaseorder_model->updatePOMaster($PONO,$POList);
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -441,7 +441,7 @@ foreach ($POSTATUS as $PST )
|
|||||||
|
|
||||||
<span for="payablefrom">Payable Terms</span>
|
<span for="payablefrom">Payable Terms</span>
|
||||||
<select class="form-control required" id="PaymentTerms" name="PaymentTerms">
|
<select class="form-control required" id="PaymentTerms" name="PaymentTerms">
|
||||||
<option value="Date of invoice" ><?php echo $Terms;?></option>
|
<option value="" ><?php echo $Terms;?></option>
|
||||||
<!-- <option value=<?php echo $Deatail?> > Payment method</option> -->
|
<!-- <option value=<?php echo $Deatail?> > Payment method</option> -->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|||||||
@ -345,7 +345,7 @@ function vaildateBeforeOpenModal()
|
|||||||
|
|
||||||
<span for="payablefrom">Payable Terms</span>
|
<span for="payablefrom">Payable Terms</span>
|
||||||
<select class="form-control required" id="PaymentTerms" name="PaymentTerms">
|
<select class="form-control required" id="PaymentTerms" name="PaymentTerms">
|
||||||
<option value="Date of invoice" > Payment method</option>
|
<option value="" > Payment method</option>
|
||||||
<!-- <option value=<?php echo $Deatail?> > Payment method</option> -->
|
<!-- <option value=<?php echo $Deatail?> > Payment method</option> -->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,6 @@
|
|||||||
$DeliveryDate ='';
|
$DeliveryDate ='';
|
||||||
$ServiceDescription = '';
|
$ServiceDescription = '';
|
||||||
$index=0;
|
$index=0;
|
||||||
|
|
||||||
if(!empty($CompanyDetails))
|
if(!empty($CompanyDetails))
|
||||||
{
|
{
|
||||||
foreach ($CompanyDetails as $CO)
|
foreach ($CompanyDetails as $CO)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user