Serial Number issue fixed
This commit is contained in:
parent
e6da75a265
commit
83eb730144
@ -1637,12 +1637,16 @@ left join T_Employee_Details emp on Req.Requestedby = emp.EmpID
|
||||
//get service tax listusing po number
|
||||
function GetServiceTaxDetails($PONO = ''){
|
||||
|
||||
$taxQuery ='SELECT @count:=@count+1 serial_number,group_concat(@count ORDER BY @count ASC) as Itemcode,st.CGST,st.SGST,st.IGST,st.otherallowance FROM T_Service_Tax st
|
||||
$taxQuery ='SELECT group_concat(@count:=@count+1) Itemcode,
|
||||
st.CGST,st.SGST,st.IGST,st.otherallowance FROM T_Service_Tax st
|
||||
join T_PurchaseOrder_LineItem pl on pl.LineItemNo=st.LineItemNo
|
||||
join T_PurchaseOrder_Master pm on pm.PONO=pl.PONO
|
||||
JOIN (SELECT @count := 0) count
|
||||
where pm.POType=? and pm.PONO=?
|
||||
group by st.CGST,st.SGST,st.IGST,st.otherallowance ORDER BY st.LineItemNo ASC';
|
||||
join T_PurchaseOrder_Master pm on pm.PONO=pl.PONO JOIN
|
||||
(SELECT @count := 0) count
|
||||
where pm.POType=? and pm.PONO=?
|
||||
group by st.CGST,st.SGST,st.IGST,st.otherallowance
|
||||
ORDER BY Itemcode ASC ';
|
||||
|
||||
|
||||
$query = $this->db->query($taxQuery,array("SERVICE",$PONO));
|
||||
|
||||
return $query->result();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user