Capital po live issue : GWM
This commit is contained in:
parent
cf3aeaa4be
commit
3df917b916
@ -1654,18 +1654,16 @@ QuantityRejected,ROUND(Quantity-ReceivedQuantity)as PendingQty,Per,
|
|||||||
{
|
{
|
||||||
|
|
||||||
$subQuery = 'SELECT distinct LineItem.LineItemNo,LineItem.Per,LineItem.ServiceMaterialDescription,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,LineItem.ServiceMaterialDescription,LineItem.ServiceFrequency,
|
$subQuery = 'SELECT distinct LineItem.LineItemNo,LineItem.Per,LineItem.ServiceMaterialDescription,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,LineItem.ServiceMaterialDescription,LineItem.ServiceFrequency,
|
||||||
Mat.UOM,Quantity,ReceivedQuantity,Rate,Req.Status,Tax.*,
|
Mat.UOM,Quantity,ReceivedQuantity,Rate,Req.Status,Tax.*,
|
||||||
ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,POMast.ExchangeRate,POMast.ExchangeRateCalculatedon,POMast.TotalOrderValue as BasicValue,POMast.CapitalRange,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,AfterCustomEdCess,ROUND((POMast.ExchangeRate*BasicPriceInMTon*Quantity),2) as BasicINRValue,Tax.TotalValue as ImportTotalValue,Tax.FreightType,Tax.NoOfTrip,Tax.FreightValue,Tax.AfterFreightValue,POMast.CurrencyType,
|
ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,POMast.ExchangeRate,POMast.ExchangeRateCalculatedon,POMast.TotalOrderValue as BasicValue,POMast.CapitalRange,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,AfterCustomEdCess,ROUND((POMast.ExchangeRate*BasicPriceInMTon*Quantity),2) as BasicINRValue,Tax.TotalValue as ImportTotalValue,Tax.FreightType,Tax.NoOfTrip,Tax.FreightValue,Tax.AfterFreightValue,POMast.CurrencyType,
|
||||||
|
|
||||||
Req.CostCenterCode,Dept.DepartmentName FROM t_purchaseorder_lineitem LineItem
|
Req.CostCenterCode,Dept.DepartmentName FROM t_purchaseorder_lineitem LineItem
|
||||||
join t_purchaseorder_master POMast on POMast.PONO = LineItem.PONO
|
join t_purchaseorder_master POMast on POMast.PONO = LineItem.PONO
|
||||||
join t_materialmaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
join t_materialmaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||||
|
left join t_import_tax Tax on Tax.LineItemNo = LineItem.LineItemNo
|
||||||
join t_import_tax Tax on Tax.LineItemNo = LineItem.LineItemNo
|
join t_requestion_master Req on Req.ReqNo = LineItem.ReqNo
|
||||||
join t_requestion_master Req on Req.ReqNo = LineItem.ReqNo
|
left join t_employee_details emp on Req.Requestedby = emp.EmpID
|
||||||
left join t_employee_details emp on Req.Requestedby = emp.EmpID
|
left join t_departmentdetails Dept on Req.RequestedDept = Dept.DEPCode where LineItem.PONO =?';
|
||||||
|
|
||||||
join t_departmentdetails Dept on Req.RequestedDept = Dept.DEPCode where LineItem.PONO =?';
|
|
||||||
//print_r($subQuery);
|
//print_r($subQuery);
|
||||||
|
|
||||||
$query = $this->db->query($subQuery, array($PONO));
|
$query = $this->db->query($subQuery, array($PONO));
|
||||||
@ -1720,7 +1718,7 @@ left join t_employee_details emp on Req.Requestedby = emp.EmpID
|
|||||||
Req.CostCenterCode,Dept.DepartmentName FROM t_purchaseorder_lineitem LineItem
|
Req.CostCenterCode,Dept.DepartmentName FROM t_purchaseorder_lineitem LineItem
|
||||||
join t_purchaseorder_master POMast on POMast.PONO = LineItem.PONO
|
join t_purchaseorder_master POMast on POMast.PONO = LineItem.PONO
|
||||||
join t_materialmaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
join t_materialmaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||||
join t_service_tax ServiceTax on ServiceTax.LineItemNo = LineItem.LineItemNo
|
left join t_service_tax ServiceTax on ServiceTax.LineItemNo = LineItem.LineItemNo
|
||||||
join t_requestion_master Req on Req.ReqNo = LineItem.ReqNo
|
join t_requestion_master Req on Req.ReqNo = LineItem.ReqNo
|
||||||
join t_employee_details emp on Req.Requestedby = emp.EmpID
|
join t_employee_details emp on Req.Requestedby = emp.EmpID
|
||||||
|
|
||||||
|
|||||||
@ -2935,7 +2935,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3" style=padding-left: -2px;">
|
<div class="col-md-3" style=padding-left:-2px;">
|
||||||
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
<label>Freight Amt <?php echo "($INR)"; ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -3480,7 +3480,7 @@
|
|||||||
<label>Total Discount Amount <?php echo "($INR)" ?> </label>
|
<label>Total Discount Amount <?php echo "($INR)" ?> </label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtTotalDiscount', 'value' => set_value('txtTotalDiscount', number_format($ExitDiscountedAmt, 2, '.', '')), 'id' => 'txtTotalDiscount', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtTotalDiscount', 'value' => set_value('txtTotalDiscount', isset($ExitDiscountedAmt) ? number_format($ExitDiscountedAmt, 2, '.', '') : 0 ), 'id' => 'txtTotalDiscount', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -3623,7 +3623,7 @@
|
|||||||
<label>Total Freight Amount <?php echo "($INR)" ?></label>
|
<label>Total Freight Amount <?php echo "($INR)" ?></label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtTotalFreight', 'value' => set_value('txtTotalFreight', number_format($TotalFreightAmt, 2, '.', '')), 'id' => 'txtTotalFreight', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtTotalFreight', 'value' => set_value('txtTotalFreight', isset($TotalFreightAmt) ? number_format($TotalFreightAmt, 2, '.', '') : 0 ), 'id' => 'txtTotalFreight', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -3638,7 +3638,7 @@
|
|||||||
<label id="lbl_international">Total Order Value <?php echo "($INR)" ?> </label>
|
<label id="lbl_international">Total Order Value <?php echo "($INR)" ?> </label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'CapitalToatlOrder', 'value' => set_value('CapitalToatlOrder', number_format($totalCapitalOrder, 2, '.', '')), 'id' => 'CapitalToatlOrder', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'CapitalToatlOrder', 'value' => set_value('CapitalToatlOrder', isset($totalCapitalOrder) ? number_format($totalCapitalOrder, 2, '.', '') : 0), 'id' => 'CapitalToatlOrder', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -3828,7 +3828,7 @@
|
|||||||
var SelectedMaterialList = {
|
var SelectedMaterialList = {
|
||||||
Mat: []
|
Mat: []
|
||||||
};
|
};
|
||||||
var index = <?php echo $index; ?> + 1;
|
var index = <?php isset($index) ? $index : 0; ?> + 1;
|
||||||
|
|
||||||
var myArray = <?php echo json_encode($res_arr_values); ?>;
|
var myArray = <?php echo json_encode($res_arr_values); ?>;
|
||||||
$.each(myArray, function(idx, obj) {
|
$.each(myArray, function(idx, obj) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user