Dear All,
Im newbie to scripting.
We are trying to stop all transaction, if our employee try to sale the item below the purchase price or last purchase price.
I try to make 1 simple script and add itu to custom form, but not working.
can any body help me, whats wrong with my script ?
function saleprices () { var sale = nlapiGetCurrentLineItemValue(rate,rate,1); var buy = nlapiGetCurrentLineItemValue(currency,lastpurchaseprice,1); if (sale < buy ) {alert('The price below purchase price'); return false} return true; } Thanks for all help