Reputation: 31
I am trying to find the way how to remove 2 digit decimals in field purchaseorder.UPRI when purchaseorder.CUR = "IDR". The way that I have tried does not help me to solve myproblem How do I fix it ? Does anyone here could help me to solve the problem ? Here is my code;
IF{purchaseorder.CUR} = "IDR"
IF(ROUND({purchaseorder.UPRI},0) <> {purchaseorder.UPRI}) THEN
(
2
)
ELSE
(
0
)
Upvotes: 0
Views: 82
Reputation: 3208
I can't try it right now, but try these options and tell me if it worked:
if {purchaseorder.CUR} = "IDR"
then Truncate({purchaseorder.UPRI})
Upvotes: 1