$ 0 0 try putting a condition on negative values as amount in doc currency > 0. Hope this helps -Swati.