I took case Id as parameter and I want to display quantity,price,Discount in x axis.Vendour Id in y axis using rdp class
I wrote this code in dp class give me suggestion to get report.
public void ProcessReport()
{
ITTI_purchcontract1 contract = this.parmDataContract() as ITTI_purchcontract1;
CaseId = contract.parmPurchRFQCaseId();
delete_from ITTI_purchtemp1;
if(!CaseId ==0)
while select PurchRFQCaseTable where PurchRFQCaseTable.RFQCaseId==CaseId
join PurchRFQCaseLine where PurchRFQCaseLine.RFQCaseId==PurchRFQCaseTable.RFQCaseId
join PurchRFQVendLink where PurchRFQVendLink.RFQCaseId==PurchRFQCaseTable.RFQCaseId
{
/*
ITTI_purchtemp1.PurchQty =PurchRFQCaseLine.PurchQty;
ITTI_purchtemp1.Price =PurchRFQCaseLine.PurchPrice;
ITTI_purchtemp1.Discount =PurchRFQCaseLine.LinePercent;
ITTI_purchtemp1.VendAccount =PurchRFQVendLink.vendAccount;
ITTI_purchtemp1.insert();*/
if(i==1)
{
i++;
ITTI_purchtemp1.LabelDescription ="Qty";
ITTI_purchtemp1.PurchQty =PurchRFQCaseLine.PurchQty;
ITTI_purchtemp1.VendAccount =PurchRFQVendLink.vendAccount;
ITTI_purchtemp1.doInsert();
}
if(i==2)
{
i++;
ITTI_purchtemp1.LabelDescription ="Unit price";
ITTI_purchtemp1.Price =PurchRFQCaseLine.PurchPrice;
ITTI_purchtemp1.VendAccount =PurchRFQVendLink.vendAccount;
ITTI_purchtemp1.doInsert();
}
if(i==3)
{
i++;
ITTI_purchtemp1.LabelDescription ="Disscount";
ITTI_purchtemp1.Discount =PurchRFQCaseLine.LinePercent;
ITTI_purchtemp1.VendAccount =PurchRFQVendLink.vendAccount;
ITTI_purchtemp1.doInsert();
}
}
}
*This post is locked for comments
I have the same question (0)