I have a script that is triggered by a button on the Lines tab of Sales Order entry. I would like to type in the Extension Amount ("Labor $ Sold) and then trigger a script that uses a preset labor rate (in the script) to calculate the qty of labor hours sold. Equation is simply
Qty = ExtAmt / Lab Rate
Which works fine except that when the Qty value is transferred back to the SO, it is being rounded to 2 decimal places instead of 3, which then throws off the ExtAmt.
I have made it better by using Round on the Qty equation
Qty = Round(ExtAmt / Lab Rate, 2)
But I really need the 3rd decimal place to make it work.
Also, I have checked and Qty Entries in common information is set to 3 decimal places.
Any ideas