
The issue is the "Extension" field value is getting calculated based on the formula field but it should get calculated as per the changes made in visual force page and display (Extension =Qty*0.01) on the subtotal.
Condition :
If the product line for the product selected in opportunity items is ‘DIE’ make following changes .1) unit price should change to $.01.2)Unit price just change on the PDF display only and with extended amount which will be quantity times .01.3)Subtotal__c=Non_Pick_Total__cCode :
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;
//tempObj.NonPickTotal=OPplineitem[i].Opportunity.Non_Pick_Total__c*tempObj.unitprice;
}
else
{
tempObj.unitprice=1;
//tempObj.unitprice=OPplineitem[i].ListPrice;
tempobj.extension=OPplineitem[i].Extension__c ;
}