
if(OPplineitem[i].PricebookEntry.Product2.Product_Line__c=='DIE')
{
tempObj.unitprice=0.01;
tempobj.extension=OPplineitem[i].Quantity * tempObj.unitprice;
tempObj.productname=OPplineitem[i].Bin_Item_Code__c;
//tempObj.Subtotal =OPplineitem[i].Opportunity.Subtotal__c*0.01;
tempObj.Subtotal =OPplineitem[i].Opportunity.Subtotal__c*tempObj.unitprice;
}
1 件の回答

Based on current information I think you want to change value in Rollup summary field. Which is not possible as rllup sumary fields are not editable. You have to create a Decimal property in your wrapper class and calculate value over there.Could you explain a bit more of this problem.