AMEND ALL
This commit is contained in:
parent
34a13d9a84
commit
33456fda3a
@ -250,12 +250,13 @@ class amendmentpurchaseorder extends BaseController
|
||||
|
||||
function EditRevenuePurchaseOrder()
|
||||
{
|
||||
|
||||
$NewPO='';
|
||||
$MAD='';
|
||||
|
||||
$PONO =$this->input->post('txtPONO');
|
||||
//echo "Revenue Amendment";
|
||||
//echo "OLD PO IS" . $PONO;
|
||||
echo "Revenue Amendment";
|
||||
echo "OLD PO IS" . $PONO;
|
||||
|
||||
$POdt =$this->input->post('PODate');
|
||||
$PODate = $this->getDateformat($POdt);
|
||||
@ -366,30 +367,48 @@ class amendmentpurchaseorder extends BaseController
|
||||
$Reqnumber = $this->input->post('Reqnumber'.$i);
|
||||
$itemRate = $this->input->post('itemRate'.$i);
|
||||
$preitemrate=$this->input->post('beforeitemRate'.$i);
|
||||
|
||||
$DiscountType = $this->input->post('DisType'.$i);
|
||||
$beforeDiscountType = $this->input->post('beforeDisType'.$i);
|
||||
$DiscountValue = $this->input->post('DisVal'.$i);
|
||||
$preDiscountValue = $this->input->post('beforeDisVal'.$i);
|
||||
$AfterDiscount = $this->input->post('AfterDisVal'.$i);
|
||||
$beforeAfterDiscount = $this->input->post('beforeAfterDisVal'.$i);
|
||||
|
||||
$PackagingOption = $this->input->post('PackOption'.$i);
|
||||
$PackagingType = $this->input->post('PackType'.$i);
|
||||
$beforePackagingType = $this->input->post('beforePackType'.$i);
|
||||
$PackagingValue = $this->input->post('PackVal'.$i);
|
||||
$prePackagingValue = $this->input->post('beforePackVal'.$i);
|
||||
$AfterPackagingValue = $this->input->post('AfterPackVal'.$i);
|
||||
$VatOption = $this->input->post('VatOption'.$i);//SGST
|
||||
$VatValue = $this->input->post('VatVal'.$i);
|
||||
$beforeAfterPackagingValue = $this->input->post('beforeAfterPackVal'.$i);
|
||||
|
||||
|
||||
$VatValue = $this->input->post('VatVal'.$i);//SGST
|
||||
$preVatValue = $this->input->post('beforeVatVal'.$i);
|
||||
$AfterVatValue = $this->input->post('AfterVatVal'.$i);
|
||||
$beforeAfterVatValue = $this->input->post('beforeAfterVatVal'.$i);
|
||||
|
||||
$GSTValue = $this->input->post('GSTVal'.$i);//CGST
|
||||
$preGSTValue = $this->input->post('beforeGSTVal'.$i);
|
||||
$AfterGSTValue = $this->input->post('AfterGSTVal'.$i);
|
||||
$beforeAfterGSTValue = $this->input->post('beforeAfterGSTVal'.$i);
|
||||
|
||||
$OtherTaxValue = $this->input->post('OtherTaxVal'.$i);//IGST
|
||||
$preOtherTaxValue = $this->input->post('beforeOtherTaxVal'.$i);
|
||||
$AfterOtherTaxValue = $this->input->post('AfterOtherTaxVal'.$i);
|
||||
$beforeAfterOtherTaxValue = $this->input->post('beforeAfterOtherTaxVal'.$i);
|
||||
|
||||
$FreightType = $this->input->post('FreightType'.$i);
|
||||
$beforeFreightType = $this->input->post('beforeFreightType'.$i);
|
||||
$FreightValue = $this->input->post('FreightVal'.$i);
|
||||
$preFreightValue = $this->input->post('beforeFreightVal'.$i);
|
||||
$AfterFreightValue = $this->input->post('AfterFreightVal'.$i);
|
||||
$beforeAfterFreightValue = $this->input->post('beforeAfterFreightVal'.$i);
|
||||
|
||||
$NoofTrips = $this->input->post('Nooftrips'.$i);
|
||||
$beforeNoofTrips = $this->input->post('beforeNooftrips'.$i);
|
||||
|
||||
$InsuranceValue = $this->input->post('Insval'.$i);
|
||||
$preInsuranceValue = $this->input->post('beforeInsval'.$i);
|
||||
$TotalOrderValue = $this->input->post('TotalOrderValue'.$i);
|
||||
@ -399,50 +418,103 @@ class amendmentpurchaseorder extends BaseController
|
||||
$LineItemNo = '';
|
||||
$RecQtyvalue=0;
|
||||
$rowspanvalue=0;
|
||||
|
||||
if(($Quantity-$preqty)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Quantity : ".$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)
|
||||
{
|
||||
$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>";
|
||||
}
|
||||
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended DiscountType : " . $beforeDiscountType."</td><td>Current DiscountType : ".$DiscountType."</td></tr>";
|
||||
|
||||
if(($DiscountValue-$preDiscountValue)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Discount:". $preDiscountValue ."</td><td>Current Discount Value:".$DiscountValue."</td></tr>";
|
||||
$CAD.="<tr><td>Amended Discount : ". $preDiscountValue ."</td><td>Current Discount : ".$DiscountValue."</td></tr>";
|
||||
}
|
||||
if(($AfterDiscount-$beforeAfterDiscount)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Discount Value : ". $beforeAfterDiscount ."</td><td>Current Discount Value : ".$AfterDiscount."</td></tr>";
|
||||
}
|
||||
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Packaging Type : ". $beforePackagingType ."</td><td>Current Packaging Type : ".$PackagingType."</td></tr>";
|
||||
|
||||
if(($PackagingValue-$prePackagingValue)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended PackageValue:". $prePackagingValue."</td><td>Current Packaginf Value:".$PackagingValue."</td></tr>";
|
||||
$CAD.="<tr><td>Amended Package Value : ". $prePackagingValue."</td><td>Current Package Value : ".$PackagingValue."</td></tr>";
|
||||
}
|
||||
if(($AfterPackagingValue-$beforeAfterPackagingValue)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Package Value : ". $beforeAfterPackagingValue."</td><td>Current Package Value : ".$AfterPackagingValue."</td></tr>";
|
||||
}
|
||||
if(($VatValue-$preVatValue)!=0)//SGST
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended SGST value:". $preVatValue."</td><td>Current SGST Value:".$VatValue."</td></tr>";
|
||||
$CAD.="<tr><td>Amended SGST : ". $preVatValue."</td><td>Current SGST : ".$VatValue."</td></tr>";
|
||||
}
|
||||
if(($AfterVatValue-$beforeAfterVatValue)!=0)//SGST
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended SGST value : ". $beforeAfterVatValue."</td><td>Current SGST Value : ".$AfterVatValue."</td></tr>";
|
||||
}
|
||||
if(($GSTValue-$preGSTValue)!=0)//CGST
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended CGSTValue:". $preGSTValue."</td><td>Current CGST Value:".$GSTValue."</td></tr>";
|
||||
$CAD.="<tr><td>Amended CGST : ". $preGSTValue."</td><td>Current CGST : ".$GSTValue."</td></tr>";
|
||||
}
|
||||
if(($AfterGSTValue-$beforeAfterGSTValue)!=0)//CGST
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended CGST Value : ". $beforeAfterGSTValue."</td><td>Current CGST Value : ".$AfterGSTValue."</td></tr>";
|
||||
}
|
||||
if(($OtherTaxValue-$preOtherTaxValue)!=0)//IGST
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended IGST Value:". $preOtherTaxValue."</td><td>Current IGST Value:".$OtherTaxValue."</td></tr>";
|
||||
$CAD.="<tr><td>Amended IGST : ". $preOtherTaxValue."</td><td>Current IGST : ".$OtherTaxValue."</td></tr>";
|
||||
}
|
||||
if(($AfterOtherTaxValue-$beforeAfterOtherTaxValue)!=0)//IGST
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended IGST : ". $beforeAfterOtherTaxValue."</td><td>Current IGST : ".$AfterOtherTaxValue."</td></tr>";
|
||||
}
|
||||
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Freight Type : ". $beforeFreightType."</td><td>Current Freight Type : ".$FreightType."</td></tr>";
|
||||
|
||||
if(($FreightType=="PER TRIP") || ($beforeFreightType=="PER TRIP")){
|
||||
if($NoofTrips != $beforeNoofTrips)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended No of Trips : ". $beforeNoofTrips."</td><td>Current No of Trips : ".$NoofTrips."</td></tr>";
|
||||
}
|
||||
}
|
||||
|
||||
if(($FreightValue-$preFreightValue)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended FreightValue:". $preFreightValue."</td><td>Current Freight Value:".$FreightValue."</td></tr>";
|
||||
$CAD.="<tr><td>Amended Freight : ". $preFreightValue."</td><td>Current Freight : ".$FreightValue."</td></tr>";
|
||||
}
|
||||
|
||||
if(($AfterFreightValue-$beforeAfterFreightValue)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Freight Value : ". $beforeAfterFreightValue."</td><td>Current Freight Value : ".$AfterFreightValue."</td></tr>";
|
||||
}
|
||||
|
||||
if(($InsuranceValue-$preInsuranceValue)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
$CAD.="<tr><td>Amended Insurance Value:". $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)
|
||||
{
|
||||
@ -454,8 +526,8 @@ class amendmentpurchaseorder extends BaseController
|
||||
$CAD="<tr><td rowspan=". $rowspanvalue .">".$MaterialCode."</td></tr>";
|
||||
$CAD.=$CAD2;
|
||||
}
|
||||
|
||||
|
||||
// echo $CAD;
|
||||
// die();
|
||||
$ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
|
||||
|
||||
if(count($ReceivedQty)>0)
|
||||
|
||||
@ -634,7 +634,7 @@ function purchaseorderListing($forwhat='')
|
||||
|
||||
$subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,LineItem.ServiceMaterialDescription,Mat.MaterialCode,Mat.MaterialName,
|
||||
Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue,POMaster.AmendedDetails,LineItem.AmendedDetails as lineamenddetails,
|
||||
ROUND(( Tax.After_SGST + Tax.After_CGST + Tax.After_IGST ) ,2)as Taxamount,ReqMat.NumberOfService,
|
||||
ROUND(( Tax.After_SGST + Tax.After_CGST + Tax.After_IGST ) ,2)as Taxamount,ReqMat.NumberOfService,ReqMat.Schedule_Type,ReqMat.Service_Period,
|
||||
TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentTerms
|
||||
FROM T_PurchaseOrder_LineItem LineItem
|
||||
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
$ServiceDescription = '';
|
||||
$totaltaxamount=0.00;
|
||||
$PaymentOtherDescription='';
|
||||
|
||||
$NoOfServices=0;
|
||||
|
||||
if(!empty($CompanyDetails))
|
||||
{
|
||||
@ -113,7 +113,7 @@
|
||||
?>
|
||||
</div>
|
||||
<div> </div>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?> </a></span></center>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?>/S </a></span></center>
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
@ -137,8 +137,8 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PO DATE :<?php echo $Podt?></td>
|
||||
<td colspan="2">DELIVERY DATE / SCHEDULE BY :<?php echo $DeliveryDate.$DeliverySchedule;?></td>
|
||||
<td>PO DATE : <?php echo $Podt?></td>
|
||||
<td colspan="2">DELIVERY DATE / SCHEDULE BY : <?php echo $DeliveryDate.$DeliverySchedule;?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -151,11 +151,13 @@
|
||||
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<td>Requistion Number</td>
|
||||
<td>Requested By</td>
|
||||
<td>Requested Department</td>
|
||||
<td>Cost Center</td>
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<td style="text-align: center;">Requistion Number</td>
|
||||
<td style="text-align: center;">Requistion Date</td>
|
||||
<td style="text-align: center;">Frequency</td>
|
||||
<td style="text-align: center;">Requested By</td>
|
||||
<td style="text-align: center;">Requested Department</td>
|
||||
<td style="text-align: center;">Cost Center</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
@ -166,10 +168,12 @@
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td style="text-align: center;"><?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("d-m-Y"); echo $date; ?></td>
|
||||
<td style="text-align: center;"><?php if($ReqDetails['Schedule_Type'] =="One Time"){echo $ReqDetails['Schedule_Type'];}else{echo $ReqDetails['Service_Period'] ." ". $ReqDetails['NumberOfService'] ;} ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -179,20 +183,18 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page" style="font-size:12px;">
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<th>#</th>
|
||||
<th>Item Code</th>
|
||||
<th>Service Description</th>
|
||||
<th>Qty</th>
|
||||
<th>UOM</th>
|
||||
<th>Rate In INR</th>
|
||||
<th>Basic Amount In INR</th>
|
||||
<th>SGST In INR</th>
|
||||
<th>CGST In INR</th>
|
||||
<th>IGST In INR</th>
|
||||
<th>Other Allow In INR</th>
|
||||
<th>Total Amount In INR</th>
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<th style="text-align: center;">#</th>
|
||||
<!--<th style="text-align: center;">Item Code</th>-->
|
||||
<th style="text-align: center;">Service Description</th>
|
||||
<th style="text-align: center;">HSN Code</th>
|
||||
<th style="text-align: center;">UOM</th>
|
||||
<th style="text-align: center;">Qty</th>
|
||||
|
||||
<th style="text-align: center;">Rate In INR</th>
|
||||
<th style="text-align: center;">Basic Amount In INR</th>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -204,22 +206,22 @@
|
||||
foreach($POItem as $record)
|
||||
{
|
||||
$index = $index + 1;
|
||||
$TotalAmount = ($record->BasicValue*$record->NumberOfService) + $record->Taxamount ;//+ $record->otherallowance;
|
||||
if($record->Schedule_Type=="One Time"){
|
||||
$TotalAmount = ($record->BasicValue) + $record->Taxamount ;//+ $record->otherallowance;
|
||||
}else if($record->Schedule_Type=="Recurring"){
|
||||
$TotalAmount = ($record->BasicValue * $record->NumberOfService) + $record->Taxamount ;//+ $record->otherallowance;
|
||||
}
|
||||
?>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td><?php echo $index ; ?></td>
|
||||
<td><?php echo $record->MaterialName ; ?></td>
|
||||
<td><?php echo $record->ServiceMaterialDescription ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $index ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->ServiceMaterialDescription ; ?></td>
|
||||
<td style="text-align: center;"><?php if(!empty($record->HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";}?></td>
|
||||
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
<td align="right"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><?php echo $record->Rate ; ?></td>
|
||||
<td align="right"><?php echo number_format(($record->BasicValue * $record->NumberOfService),2); ?></td>
|
||||
<td align="right"><?php echo $record->After_SGST ; ?></td>
|
||||
<td align="right"><?php echo $record->After_CGST ; ?></td>
|
||||
<td align="right"><?php echo $record->After_IGST ; ?></td>
|
||||
<td align="right"><?php echo $record->otherallowance ; ?></td>
|
||||
|
||||
<td align="right"><?php echo number_format($TotalAmount,2) ; ?></td>
|
||||
<td align="right"><?php echo $record->Rate ; ?></td>
|
||||
<td align="right"><?php if($record->Schedule_Type == "One Time"){echo number_format(($record->Quantity * $record->Rate),2,'.','');}else if($record->Schedule_Type == "Recurring"){echo number_format((($record->Quantity * $record->Rate) * $record->NumberOfService),2,'.','');} ?></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -231,11 +233,55 @@
|
||||
$totaltaxamount=$totaltaxamount+$record->Taxamount;
|
||||
|
||||
}
|
||||
$OrderValue = $SubTotalAmount ;
|
||||
$OrderValue = $SubTotalAmount+ $otherallowances;
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;" rowspan="2"><strong>HSN Code</strong></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>CGST</strong> <br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>SGST</strong> <br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>IGST</strong> <br /><br /></td>
|
||||
<td style="text-align: center;" rowspan="2"><strong>Total Tax Amt</strong></td>
|
||||
<td style="text-align: center;" rowspan="2"><strong>Other Allow In INR</strong></td>
|
||||
<td style="text-align: center;" rowspan="2"><strong>Total Amt In INR</strong></td>
|
||||
</tr>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
</tr>
|
||||
|
||||
<?php if(!empty($POItem))
|
||||
{
|
||||
foreach($POItem as $l){ ?>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;"><?php if(!empty($record->HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";}?></td>
|
||||
<td style="text-align: right;"><?php echo $l->CGST?>%</td>
|
||||
<td style="text-align: right;"><?php echo $l->After_CGST?></td>
|
||||
<td style="text-align: right;"><?php echo $l->SGST?>%</td>
|
||||
<td style="text-align: right;"><?php echo $l->After_SGST?></td>
|
||||
<td style="text-align: right;"><?php echo $l->IGST?>%</td>
|
||||
<td style="text-align: right;"><?php echo $l->After_IGST?></td>
|
||||
<td style="text-align: right;"><?php echo $l->Taxamount?></td>
|
||||
<td style="text-align: right;"><?php echo $l->otherallowance?></td>
|
||||
<td style="text-align: right;"><?php if($l->Schedule_Type == "One Time"){echo number_format(($l->Taxamount + $l->otherallowance + ($l->Rate * $l->Quantity)),2,'.','');}else if($record->Schedule_Type == "Recurring"){echo number_format(($l->Taxamount + $l->otherallowance + ($l->Rate * $l->Quantity * $l->NumberOfService)),2,'.','');}?></td>
|
||||
</tr>
|
||||
<?php }}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -273,39 +319,35 @@
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div align="right">
|
||||
<p> </p>
|
||||
|
||||
|
||||
<p><strong>Payment Terms:</strong> <?php echo $PaymentTerms ." ".$PaymentOtherDescription;?></p>
|
||||
|
||||
<div align="Left"> <b>Scope Of Work As Annixture :</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
|
||||
<div align="right">
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;font-size:14px;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;" rowspan="3"><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td>
|
||||
<td style="text-align: right;">Total Amount Before Tax In INR - <?php echo number_format(($OrderValue - $totaltaxamount),2)?></td>
|
||||
<td style="text-align: right;"><strong>Total Amount Before Tax In INR </strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format(($OrderValue - $totaltaxamount),2,'.','')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;">Total Tax Amount In INR - <?php echo number_format($totaltaxamount,2);?> </td>
|
||||
<td style="text-align: right;"><strong>Total Tax Amount In INR </strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format($totaltaxamount,2,'.','');?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Total Amount After Tax In INR - <?php echo number_format($OrderValue,2);?></strong></td>
|
||||
<td style="text-align: right;"><strong>Total Amount After Tax In INR </strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format($OrderValue,2,'.','');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Payment Terms</strong></p>
|
||||
<p><?php echo $PaymentTerms ." ".$PaymentOtherDescription;?></p>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<p><font size="1">Certified that the particulars given above are true and correct</font></p>
|
||||
<p><?php echo $CompanyName; ?></p>
|
||||
<p> </p>
|
||||
<p>Authorized Signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
<div align="Left"> <b>Scope Of Work :</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
<?php
|
||||
<td>
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
@ -314,22 +356,10 @@
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<!-- <table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>Released By:</b></td>
|
||||
<td style="text-align:right;"><b>Released On:</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $detail->FirstName;?></td>
|
||||
<td style="text-align:right;"><?php echo $releasedOn->format('d-m-Y');?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table> -->
|
||||
|
||||
<p> </p>
|
||||
<div align="Left"> <b>Released By : </b><?php echo $detail->FirstName;?></div>
|
||||
<div align="Left"> <b>Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
|
||||
<div align="Left"> <b> Released By : </b><?php echo $detail->FirstName;?></div>
|
||||
<div align="Left"> <b> Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@ -339,6 +369,17 @@
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td style="text-align: center;" colspan="2">
|
||||
<p><font size="1">Certified that the particulars given above are true and correct</font></p>
|
||||
<p><?php echo $CompanyName; ?></p>
|
||||
<p> </p>
|
||||
<p>Authorized Signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -12,10 +12,11 @@
|
||||
$DeliverySchedule='';
|
||||
$postatus='';
|
||||
$ServiceDescription = '';
|
||||
$PaymentTerms = '';
|
||||
$PaymentOtherDescription='';
|
||||
/* $PaymentDays='';
|
||||
$PayableAT=''; */
|
||||
$PaymentTerms = '';
|
||||
$PaymentOtherDescription='';
|
||||
$type='';
|
||||
$value='';
|
||||
$amt='';
|
||||
$totaltaxonly=0;
|
||||
if(!empty($CompanyDetails))
|
||||
{
|
||||
@ -110,67 +111,70 @@
|
||||
else
|
||||
{
|
||||
echo '<div><b>DRAFT</b> </div>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div> </div>
|
||||
<center> <span style="font-size:24px;">SIDDHARTH INDUSTRIES - PURCHASE ORDER </span><br><span style="font-size:18px;">PO NO : <?php echo $PONO?></span></center>
|
||||
<div style="border:1px solid;">
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<b style="color:#3c8dbc"><h3><?php echo $CompanyName; ?></h3></b><br/> <?php echo $CompanyAddress; ?>
|
||||
</td>
|
||||
<td style="text-align: center;"><img width="80" height="80" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg=="></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?>/R </a></span></center>
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<td colspan="2">
|
||||
<p style="color:#3c8dbc;font-size:16px;"><strong><?php echo $CompanyName; ?></strong></p>
|
||||
<p> <?php echo $CompanyAddress; ?></p>
|
||||
</td>
|
||||
<td align="right"><img width="100" height="100" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg=="></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Vendor Address :</strong>
|
||||
<?php echo $SuplierName?><br /><?php echo $SuplierAddress ?>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<p><strong>Delivery To :</strong></p>
|
||||
<p><?php echo $DeliveryAddress?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PO DATE : <?php echo $Podt?></td>
|
||||
<td colspan="2">DELIVERY DATE / SCHEDULE BY : <?php echo $DeliveryDate.$DeliverySchedule;?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;font-size:14px; border-color: #fff #fff;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <a style="color:#3c8dbc">Vendor Address :</a> <br/><?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?> </td>
|
||||
<td> <a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table style="font-size:12px;" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>PO DATE :<?php echo $Podt?></td>
|
||||
<td>DELIVERY DATE / SCHEDULE BY :<?php echo $DeliveryDate.$DeliverySchedule;?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<p> </p>
|
||||
|
||||
<div class="page" style="font-size:12px;">
|
||||
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<td>Requistion Number</td>
|
||||
<td>Requested By</td>
|
||||
<td>Requested Department</td>
|
||||
<td>Cost Center</td>
|
||||
<td style="text-align: center;">Requistion Number</td>
|
||||
<td style="text-align: center;">Requistion Date</td>
|
||||
<td style="text-align: center;">Requested By</td>
|
||||
<td style="text-align: center;">Requested Department</td>
|
||||
<td style="text-align: center;">Cost Center</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
{
|
||||
|
||||
//print_r($RequistionDetails);die();
|
||||
foreach($RequistionDetails as $ReqDetails)
|
||||
{
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td style="text-align: center;"><?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("Y-m-d"); echo $date; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -180,24 +184,18 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p> </p>
|
||||
<!-- <p> </p> -->
|
||||
<table width="100%">
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<th>#</th>
|
||||
<th>Item Code</th>
|
||||
<th>Item Description</th>
|
||||
<th>UOM</th>
|
||||
<th>Qty</th>
|
||||
<th>Rate In INR</th>
|
||||
<th>Basic Value In INR</th>
|
||||
<th>Discount In INR</th>
|
||||
<th>CGST In INR</th>
|
||||
<th>SGST In INR</th>
|
||||
<th>IGST In INR</th>
|
||||
<th>Insurance In INR</th>
|
||||
<th>Packaging In INR</th>
|
||||
<th>Freight In INR</th>
|
||||
<th>Total Amount In INR</th>
|
||||
<th style="text-align: center;">#</th>
|
||||
<th style="text-align: center;">Item Code</th>
|
||||
<th style="text-align: center;">Item Description</th>
|
||||
<th style="text-align: center;">HSN Code</th>
|
||||
<th style="text-align: center;">UOM</th>
|
||||
<th style="text-align: center;">Qty</th>
|
||||
<th style="text-align: center;">Rate In INR</th>
|
||||
<th style="text-align: center;">Basic Value In INR</th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -224,26 +222,15 @@
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $index ; ?></td>
|
||||
<td><?php echo $record->MaterialCode ; ?></td>
|
||||
<td><?php echo $record->MaterialName ; ?></td>
|
||||
<td><?php echo $record->UOM ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $index ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialCode ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialName ; ?></td>
|
||||
<td style="text-align: center;"><?php if(!empty($record->HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";} ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
<td align="right"><?php echo $record->Rate ; ?></td>
|
||||
<td align="right"><?php echo $record->BasicValue ; ?></td>
|
||||
<td align="right"><?php echo $record->AfterDiscount; ?></td>
|
||||
|
||||
|
||||
<td align="right"><?php echo $record->AfterCGST ; ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->AfterSGST ; ?></td>
|
||||
<td align="right"><?php echo $record->AfterIGST ; ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->Insurance ; ?></td>
|
||||
<td align="right"><?php echo $record->AfterPackagingValue ; ?></td>
|
||||
<td align="right"><?php echo $record->AfterFreightValue ; ?></td>
|
||||
<td align="right"><?php $TotalAmount = (($record->BasicValue+ $record->AfterCGST+$record->AfterIGST+$record->AfterSGST + $record->Insurance+ $record->AfterFreightValue+$record->AfterPackagingValue)- ($record->AfterDiscount));
|
||||
echo number_format($TotalAmount,2) ; ?></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -263,18 +250,76 @@
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<p></p>
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;" rowspan="2"><strong>HSN Code</strong><br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>Discount In INR</strong><br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>SGST</strong> <br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>CGST </strong> <br /><br /></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>IGST</strong><br /><br /></td>
|
||||
|
||||
<td style="text-align: center;" colspan="2"><strong>Packaging In INR</strong> </td>
|
||||
<td style="text-align: center;" rowspan="2"><strong>Insurance In INR</strong> </td>
|
||||
<td style="text-align: center;" colspan="2"> <strong>Freight In INR </strong></td>
|
||||
<td style="text-align: center;" rowspan="2"><strong>Total Tax</strong> </td>
|
||||
<td style="text-align: center;" rowspan="2"><strong> Total Amount In INR</strong> </td>
|
||||
</tr>
|
||||
<tr style="line-height: 2.5em;">
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
<td style="text-align: center;"><strong>Value</strong></td>
|
||||
<td style="text-align: center;"><strong>Amt</strong></td>
|
||||
</tr>
|
||||
|
||||
<?php if(!empty($POItem)){
|
||||
foreach($POItem as $l)
|
||||
{
|
||||
?>
|
||||
<tr style="line-height: 1.5em;">
|
||||
<td style="text-align: center;"><?php if(!empty($l->HSNCODE)){echo $l->HSNCODE;}else{echo "NIL";} ; ?></td>
|
||||
<td style="text-align: right;"><?php if($l->DiscountType == 'PERCENTAGE'){$type="%";}else if($l->DiscountType == 'LUMP SUM'){$type="LS";}else if($l->DiscountType == 'NIL'){$type='';} echo $l->DiscountValue . $type;?></td>
|
||||
<td style="text-align: right;"><?php echo $l->AfterDiscount;?></td>
|
||||
<td style="text-align: right;"><?php echo $l->SGST."%";?></td>
|
||||
<td style="text-align: right;"><?php echo $l->AfterSGST;?></td>
|
||||
<td style="text-align: right;"><?php echo $l->CGST."%";?></td>
|
||||
<td style="text-align: right;"><?php echo $l->AfterCGST;?></td>
|
||||
<td style="text-align: right;"><?php echo $l->IGST."%";?></td>
|
||||
<td style="text-align: right;"><?php echo $l->AfterIGST;?></td>
|
||||
<td style="text-align: right;"><?php if($l->PackagingType == 'PERCENTAGE'){$type="%";}else if($l->PackagingType == 'LUMP SUM'){$type="LS";}else if($l->PackagingType == 'NIL'){$type='';} echo $l->PackagingValue . $type;?></td>
|
||||
<td style="text-align: right;"><?php echo $l->AfterPackagingValue;?></td>
|
||||
<td style="text-align: right;"><?php echo $l->Insurance;?></td>
|
||||
<td style="text-align: right;"><?php if($l->FreightType == 'PER TRIP'){$type="TRIP"; echo $l->FreightValue ."*" . $l->NoOfTrip . $type;}else{ if($l->FreightType == 'LUMP SUM'){$type="LS";}else if($l->FreightType == 'NIL'){$type='';}else if($l->FreightType == 'PER UOM'){$type='UOM';}else if($l->FreightType == 'PERCENTAGE'){$type='%';} echo $l->PackagingValue . $type;}?></td>
|
||||
<td style="text-align: right;"><?php echo $l->AfterFreightValue;?></td>
|
||||
<td style="text-align: right;"><?php $tax=$l->AfterSGST+$l->AfterCGST+$l->AfterIGST+$l->AfterPackagingValue+$l->Insurance+$l->AfterFreightValue;echo number_format($tax,2);?></td>
|
||||
<td style="text-align: right;"><?php echo number_format((($record->BasicValue + $tax)-($l->AfterDiscount)),2);?></td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
}?>
|
||||
|
||||
</tbody>
|
||||
</table><br><br>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
$OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insurance +$AfterFreightValue+$AfterPackaging) - $AfterDiscount) ;
|
||||
}?>
|
||||
<div align="right">
|
||||
|
||||
|
||||
|
||||
<p></p>
|
||||
<?php //s$i=0; if(!empty($POItem)){foreach($POItem as $v){if(!empty($v->AmendedDetails)){$i++;}}} if($i<0){ ?>
|
||||
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -312,37 +357,33 @@ $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insuranc
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php //} ?>
|
||||
|
||||
<p> <b>Payment Terms :</b> <?php echo $PaymentTerms ." ".$PaymentOtherDescription;?> </p>
|
||||
|
||||
<div> <b>Special Instruction:</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;" rowspan="3"><strong>Total Amount In Words :</strong><br /><br /><b><i><?php echo $TotalAmountInWords." "."Only.";?></i></b></td>
|
||||
<td style="text-align: right;"> <strong>Total Amount Before Tax In INR : <?php echo number_format($SubTotalAmount,2); ?></strong></td>
|
||||
<td style="text-align: right;"> <strong>Total Amount Before Tax In INR : </strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format($SubTotalAmount,2); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"> <strong>Total Tax Amount In INR :<?php echo number_format($totaltaxonly,2);?><strong></td>
|
||||
<td style="text-align: right;"> <strong>Total Tax Amount In INR : <strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format($totaltaxonly,2);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"> <strong>Total Amount After Tax In INR : <?php echo number_format($OrderValue,2);?></strong></td>
|
||||
<td style="text-align: right;"> <strong>Total Amount After Tax In INR : </strong></td>
|
||||
<td style="text-align: right;"> <?php echo number_format($OrderValue,2);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p> <b>Payment Terms :</b> </p>
|
||||
<p><?php echo $PaymentTerms ." ".$PaymentOtherDescription;?></p>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<p> Certified that the particulars given above are true and correct</p>
|
||||
<p><b style="font-size: small;"><?php echo $CompanyName; ?></b></p>
|
||||
<p> </p>
|
||||
<p>Authorized Signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
<div align="Left"> <b>Special Instruction:</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
@ -350,20 +391,7 @@ $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insuranc
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<!-- <table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>Released By:</b></td>
|
||||
<td style="text-align:right;"><b>Released On:</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $detail->FirstName;?></td>
|
||||
<td style="text-align:right;"><?php echo $releasedOn->format('d-m-Y');?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table> -->
|
||||
|
||||
<p> </p>
|
||||
<div align="Left"> <b>Released By : </b><?php echo $detail->FirstName;?></div>
|
||||
<div align="Left"> <b>Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
|
||||
@ -376,7 +404,20 @@ $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insuranc
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</td>
|
||||
<td style="text-align: center;" colspan="2">
|
||||
<p> Certified that the particulars given above are true and correct</p>
|
||||
<p><b style="font-size: small;"><?php echo $CompanyName; ?></b></p>
|
||||
<p> </p>
|
||||
<p>Authorized Signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@ -115,7 +115,7 @@
|
||||
?>
|
||||
</div>
|
||||
<div> </div>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?> </a></span></center>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?>/C</a></span></center>
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
@ -150,11 +150,12 @@
|
||||
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<td>Requistion Number</td>
|
||||
<td>Requested By</td>
|
||||
<td>Requested Department</td>
|
||||
<td>Cost Center</td>
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<td style="text-align: center;">Requistion Number</td>
|
||||
<td style="text-align: center;">Requistion Date</td>
|
||||
<td style="text-align: center;">Requested By</td>
|
||||
<td style="text-align: center;">Requested Department</td>
|
||||
<td style="text-align: center;">Cost Center</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
@ -165,10 +166,11 @@
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td style="text-align: center;"><?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("Y-m-d"); echo $date; ?></td><!--Requistion Date code should come from DB-->
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedName']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -178,27 +180,29 @@
|
||||
</tbody>
|
||||
</table><p> </p>
|
||||
<div class="page" style="font-size:14px;">
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<th>#</th>
|
||||
<th>Item and Description</th>
|
||||
<th>Qty</th>
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<th style="text-align: center;">#</th>
|
||||
<th style="text-align: center;">Item and Description</th>
|
||||
<th style="text-align: center;">HSN Code</th>
|
||||
<th style="text-align: center;">UOM</th>
|
||||
<th style="text-align: center;">Qty</th>
|
||||
<?php if($currencyName!='INR'){ ?>
|
||||
<th>Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
|
||||
<th style="text-align: center;">Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
|
||||
<?php
|
||||
} else{
|
||||
|
||||
?>
|
||||
<th>Rate Per Unit in <?php echo "$currencyName";?></th><?php } ?>
|
||||
<th style="text-align: center;">Rate Per Unit in <?php echo "$currencyName";?></th><?php } ?>
|
||||
|
||||
|
||||
<?php if($currencyName!='INR'){ ?>
|
||||
<th>Total Amount in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
|
||||
<th style="text-align: center;">Total Amount in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
|
||||
<?php
|
||||
} else{
|
||||
|
||||
?>
|
||||
<th>Total Amount in <?php echo "$currencyName"; ?></th> <?php } ?>
|
||||
<th style="text-align: center;">Total Amount in <?php echo "$currencyName"; ?></th> <?php } ?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -217,8 +221,10 @@
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $index ; ?></td>
|
||||
<td><?php echo $record->MaterialCode;?> - <?php echo $record->MaterialName ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $index ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialCode;?> - <?php echo $record->MaterialName ; ?></td>
|
||||
<td style="text-align: center;"><?php if(!empty($record->HSNCODE)){echo $record->HSNCODE;}else {echo "NIL";}?></td>
|
||||
<td style="text-align: center;"><?php echo $record->UOM; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
<td align="right"><?php echo $record->Rate ; ?></td>
|
||||
|
||||
@ -234,6 +240,14 @@
|
||||
|
||||
?>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<p><strong>Payment Terms:</strong> <?php echo $PaymentTerms ." ".$PaymentOtherDescription;?></p>
|
||||
|
||||
|
||||
<div align="Left"> <b>Special Instruction:</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -289,8 +303,33 @@
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<p><strong>Payment Terms</strong></p>
|
||||
<p><?php echo $PaymentTerms ." ".$PaymentOtherDescription;?></p>
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<p> </p>
|
||||
<div align="Left"> <b>Released By : </b><?php echo $detail->FirstName;?></div>
|
||||
<div align="Left"> <b>Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<p><font size="1">Certified that the particulars given above are true and correct</font></p>
|
||||
@ -302,39 +341,13 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div align="Left"> <b>Special Instruction:</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>Released By:</b></td>
|
||||
<td style="text-align:right;"><b>Released On:</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $detail->FirstName;?></td>
|
||||
<td style="text-align:right;"><?php echo $releasedOn->format('d-m-Y');?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -244,7 +244,7 @@ $('#EditPackagingType').change(function() {
|
||||
if(selValue == PercentageType)
|
||||
{
|
||||
var PackagingCalculation = '';
|
||||
$('#packagingcalmodel').modal('show');
|
||||
//$('#packagingcalmodel').modal('show');
|
||||
$('#txtEditPackaging').removeAttr( 'readonly','true' );
|
||||
}
|
||||
else
|
||||
@ -438,6 +438,10 @@ function calculatePackaging()
|
||||
else
|
||||
{
|
||||
var basicValue = parseFloat($('#txtEditBasicValue').val());
|
||||
var discount=parseFloat($('#txtEditAfterDiscount').val());
|
||||
|
||||
basicValue=basicValue-discount;
|
||||
// alert("Final"+basicValue);
|
||||
//var ExciseDuty = parseFloat($('#txtEditAfterExciseDuty').val());
|
||||
var AfterVat = 0.0;
|
||||
// if(VatCalculation != 0 && $('#txtEditVat').val() != '' )
|
||||
@ -492,11 +496,13 @@ function calculatePackaging()
|
||||
else
|
||||
{
|
||||
var basicValue = parseFloat($('#txtEditBasicValue').val());
|
||||
|
||||
var discount=parseFloat($('#txtEditAfterDiscount').val());
|
||||
basicValue=basicValue-discount;
|
||||
if($('#txtEditGST').val() != "0" && $('#txtEditGST').val() != '')
|
||||
{
|
||||
var GSTValue = parseFloat($('#txtEditGST').val());
|
||||
|
||||
|
||||
var AfterGST = 0.0;
|
||||
AfterGST = <?php echo GSTTAX; ?>;
|
||||
|
||||
@ -526,12 +532,15 @@ function calculatePackaging()
|
||||
else
|
||||
{
|
||||
var basicValue = parseFloat($('#txtEditBasicValue').val());
|
||||
|
||||
|
||||
var discount=parseFloat($('#txtEditAfterDiscount').val());
|
||||
basicValue=basicValue-discount;
|
||||
if($('#txtEditOtherTax').val() != "0" && $('#txtEditOtherTax').val() != '')
|
||||
{
|
||||
{
|
||||
|
||||
var OtherTaxValue = parseFloat($('#txtEditOtherTax').val());
|
||||
|
||||
|
||||
|
||||
var AfterOtherTaxes = 0.0;
|
||||
AfterOtherTaxes = <?php echo OTHERTAX; ?>;
|
||||
|
||||
@ -1467,7 +1476,7 @@ function calculateEditTaxValue()
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</br>
|
||||
|
||||
<div class="box-body">
|
||||
<table id="revenueTax" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color:#ddf">
|
||||
@ -1520,35 +1529,45 @@ function calculateEditTaxValue()
|
||||
<input type="hidden" name="<?php echo 'itemRate'.$index ?>" id="<?php echo 'itemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
|
||||
|
||||
<input type="hidden" name="<?php echo 'DisType'.$index ?>" id="<?php echo 'DisType'.$index ?>" value="<?php echo $record->DiscountType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeDisType'.$index ?>" id="<?php echo 'beforeDisType'.$index ?>" value="<?php echo $record->DiscountType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'DisVal'.$index ?>" id="<?php echo 'DisVal'.$index ?>" value="<?php echo $record->DiscountValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeDisVal'.$index ?>" id="<?php echo 'DisVal'.$index ?>" value="<?php echo $record->DiscountValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeDisVal'.$index ?>" id="<?php echo 'beforeDisVal'.$index ?>" value="<?php echo $record->DiscountValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterDisVal'.$index ?>" id="<?php echo 'AfterDisVal'.$index ?>" value="<?php echo $record->AfterDiscount ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterDisVal'.$index ?>" id="<?php echo 'beforeAfterDisVal'.$index ?>" value="<?php echo $record->AfterDiscount ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackOption'.$index ?>" id="<?php echo 'PackOption'.$index ?>" value="<?php echo $record->PackagingCalulatedOn ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackType'.$index ?>" id="<?php echo 'PackType'.$index ?>" value="<?php echo $record->PackagingType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackVal'.$index ?>" id="<?php echo 'PackVal'.$index ?>" value="<?php echo $record->PackagingValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforePackVal'.$index ?>" id="<?php echo 'PackVal'.$index ?>" value="<?php echo $record->PackagingValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackType'.$index ?>" id="<?php echo 'PackType'.$index ?>" value="<?php echo $record->PackagingType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforePackType'.$index ?>" id="<?php echo 'beforePackType'.$index ?>" value="<?php echo $record->PackagingType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackVal'.$index ?>" id="<?php echo 'PackVal'.$index ?>" value="<?php echo $record->PackagingValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforePackVal'.$index ?>" id="<?php echo 'beforePackVal'.$index ?>" value="<?php echo $record->PackagingValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterPackVal'.$index ?>" id="<?php echo 'AfterPackVal'.$index ?>" value="<?php echo $record->AfterPackagingValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterPackVal'.$index ?>" id="<?php echo 'beforeAfterPackVal'.$index ?>" value="<?php echo $record->AfterPackagingValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'VatOption'.$index ?>" id="<?php echo 'VatOption'.$index ?>" value="<?php echo $record->VatCalulatedOn ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'VatVal'.$index ?>" id="<?php echo 'VatVal'.$index ?>" value="<?php echo $record->Vat ; ?>" /> <!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeVatVal'.$index ?>" id="<?php echo 'VatVal'.$index ?>" value="<?php echo $record->Vat ; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeVatVal'.$index ?>" id="<?php echo 'beforeVatVal'.$index ?>" value="<?php echo $record->Vat ; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterVatVal'.$index ?>" id="<?php echo 'AfterVatVal'.$index ?>" value="<?php echo $record->AfterVAT ; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterVatVal'.$index ?>" id="<?php echo 'beforeAfterVatVal'.$index ?>" value="<?php echo $record->AfterVAT ; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'GSTVal'.$index ?>" id="<?php echo 'GSTVal'.$index ?>" value="<?php echo $record->GST ; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeGSTVal'.$index ?>" id="<?php echo 'GSTVal'.$index ?>" value="<?php echo $record->GST ; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeGSTVal'.$index ?>" id="<?php echo 'beforeGSTVal'.$index ?>" value="<?php echo $record->GST ; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterGSTVal'.$index ?>" id="<?php echo 'AfterGSTVal'.$index ?>" value="<?php echo $record->AfterGST ; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterGSTVal'.$index ?>" id="<?php echo 'beforeAfterGSTVal'.$index ?>" value="<?php echo $record->AfterGST ; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'OtherTaxVal'.$index ?>" id="<?php echo 'OtherTaxVal'.$index ?>" value="<?php echo $record->OtherTaxes ; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeOtherTaxVal'.$index ?>" id="<?php echo 'OtherTaxVal'.$index ?>" value="<?php echo $record->OtherTaxes ; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterOtherTaxVal'.$index ?>" id="<?php echo 'AfterOtherTaxVal'.$index ?>" value="<?php echo $record->AfterOtherTaxes ; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'FreightType'.$index ?>" id="<?php echo 'FreightType'.$index ?>" value="<?php echo $record->FreightType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeOtherTaxVal'.$index ?>" id="<?php echo 'beforeOtherTaxVal'.$index ?>" value="<?php echo $record->OtherTaxes ; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterOtherTaxVal'.$index ?>" id="<?php echo 'AfterOtherTaxVal'.$index ?>" value="<?php echo $record->AfterOtherTaxes ; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterOtherTaxVal'.$index ?>" id="<?php echo 'beforeAfterOtherTaxVal'.$index ?>" value="<?php echo $record->AfterOtherTaxes ; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'FreightType'.$index ?>" id="<?php echo 'FreightType'.$index ?>" value="<?php echo $record->FreightType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeFreightType'.$index ?>" id="<?php echo 'beforeFreightType'.$index ?>" value="<?php echo $record->FreightType ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'FreightVal'.$index ?>" id="<?php echo 'FreightVal'.$index ?>" value="<?php echo $record->FreightValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeFreightVal'.$index ?>" id="<?php echo 'FreightVal'.$index ?>" value="<?php echo $record->FreightValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeFreightVal'.$index ?>" id="<?php echo 'beforeFreightVal'.$index ?>" value="<?php echo $record->FreightValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterFreightVal'.$index ?>" id="<?php echo 'AfterFreightVal'.$index ?>" value="<?php echo $record->AfterFreightValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterFreightVal'.$index ?>" id="<?php echo 'before-AfterFreightVal'.$index ?>" value="<?php echo $record->AfterFreightValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'Nooftrips'.$index ?>" id="<?php echo 'Nooftrips'.$index ?>" value="<?php echo $record->NoOfTrip ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $record->BasicValue ; ?>"/>
|
||||
<input type="hidden" name="<?php echo 'beforeNooftrips'.$index ?>" id="<?php echo 'beforeNooftrips'.$index ?>" value="<?php echo $record->NoOfTrip ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $record->BasicValue ; ?>"/>
|
||||
<input type="hidden" name="<?php echo 'Insval'.$index ?>" id="<?php echo 'Insval'.$index ?>" value="<?php echo $record->Insurance ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeInsval'.$index ?>" id="<?php echo 'Insval'.$index ?>" value="<?php echo $record->Insurance ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeInsval'.$index ?>" id="<?php echo 'beforeInsval'.$index ?>" value="<?php echo $record->Insurance ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'TotalOrderValue'.$index ?>" id="<?php echo 'TotalOrderValue'.$index ?>" value="<?php echo $record->TotalValue ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeqty'.$index ?>" id="<?php echo 'beforeqty'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeitemRate'.$index ?>" id="<?php echo 'beforeitemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeqty'.$index ?>" id="<?php echo 'beforeqty'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeitemRate'.$index ?>" id="<?php echo 'beforeitemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
|
||||
|
||||
|
||||
|
||||
@ -1670,7 +1689,7 @@ function calculateEditTaxValue()
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Total Order Amount In INR </label>
|
||||
<!--<input type="text" name="preTotalOdervalue" value="<?php echo $totOrderSummaryAmt;?>"> -->
|
||||
<input type="hidden" name="preTotalOdervalue" value="<?php echo $totOrderSummaryAmt;?>">
|
||||
<?php
|
||||
$data = array('name' => 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary',$totOrderSummaryAmt),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
|
||||
echo form_input($data);
|
||||
@ -1943,7 +1962,7 @@ function AmendChange(){
|
||||
var TotalOrderValue = $("#txtEditTotalOrderValue").val();
|
||||
|
||||
var TotalTaxValue = calculateEditTaxValue();
|
||||
alert(TotalTaxValue);
|
||||
//alert(TotalTaxValue);
|
||||
|
||||
|
||||
|
||||
@ -2085,7 +2104,7 @@ function populateValueMainFormForEditRevenueTax()
|
||||
var Discount =$('#AfterDisVal'+rowid).val() == '' ? '0.00' : $('#AfterDisVal'+rowid).val();
|
||||
var BasicVal = $('#basicval'+rowid).val() == '' ? '0.00' : $('#basicval'+rowid).val();
|
||||
var TotalVal =$('#TotalOrderValue'+rowid).val() == '' ? '0.00' : $('#TotalOrderValue'+rowid).val();
|
||||
alert(TotalVal);
|
||||
//alert(TotalVal);
|
||||
|
||||
|
||||
totBasicAmt = parseFloat(totBasicAmt ) + parseFloat(BasicVal);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user