I have a new problem related to my post below on a simple script that calculates gross profit based on standard cost. The script works great for newly-entered orders and invoices, but when the user copies from another open or completed order, the Profit % UDF first shows as blank, and then if the user changes the Unit Price or Quantity, the UDF displays 100%, regardless of true calculation. Is there anything I can do to the script to ensure that it at least recalculates correctly upon changing the quantity or price, or is this better handled by a button script to force a recalc of all lines after copy or before accept?