function CalculateLineCost()
{
var quantity=Xrm.Page.getAttribute("jmh_quantity").getValue();
var unitcost=Xrm.Page.getAttribute("jmh_unitcost").getValue();
if(quantity != null && unitcost)
{
var linecost=quantity*unitcost;
Xrm.Page.getAttribute("jmh_linecost").setValue(linecost);
}
}
{
var quantity=Xrm.Page.getAttribute("jmh_quantity").getValue();
var unitcost=Xrm.Page.getAttribute("jmh_unitcost").getValue();
if(quantity != null && unitcost)
{
var linecost=quantity*unitcost;
Xrm.Page.getAttribute("jmh_linecost").setValue(linecost);
}
}
No comments:
Post a Comment