Hi there,
I need to get the SUM of QTY Filed from CUSTINVOICETRANS Table, i wrote the display method i.e.
public display Qty QtySoldToDate()
{
CustInvoiceTrans custInvoiceTrans;
;
select sum(Qty) from custInvoiceTrans
where custInvoiceTrans.ItemId == this.ItemId;
return custInvoiceTrans.Qty;
}
but the problem here is QTY field is having both positive and negative values, but i need to get only the SUM of Positive values.
Can you please guide me to modify my above method, so that it returns only the SUM of positive values.
Thanks.
Regards
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (