You need to sign in to do that
Don't have an account?

S control field
I have an scontrol that brings over the COGS value from "product" into "opportunity Product" and calculate the total COGS value of each line item.
<script type="text/javascript">
var num1 = parseFloat({!Product2.COGS2__c});
var num2 = parseFloat({!OpportunityLineItem.Quantity});
var result = ""
if (num1 && num2) {
result = Math.round(num1 * num2 * 100)/100;
document.write(result);
}
</script>
var num1 = parseFloat({!Product2.COGS2__c});
var num2 = parseFloat({!OpportunityLineItem.Quantity});
var result = ""
if (num1 && num2) {
result = Math.round(num1 * num2 * 100)/100;
document.write(result);
}
</script>
I've place the scontrol on the opportunity product page layout so that the COGs value is visible. However, what I'd like to do is have the scontrol populate an actual field called "COGS" so I can write formulas around it.
Any ideas ?

hi
iam working in salesforce.u r from which state..u r name seems to be telugu..possible tell me something
about u.so that possible we can contact ...we can clarify our doubts..iam from Andhra pradesh
Regards,
madhu.