negative sign?

nvermanverma Member Posts: 396
I have a quick question:

All I want to do is, put a negative sign in front of the amount field if the transaction type is receipt.

This is what I have so far, which is clearly not working.
Amount is off type decimal;
Sign is of type Text;
IF Rec."Transaction Type" = rec."Transaction Type"::Receipt THEN

  Sign : = '- %1', rec.Amount;
  rec.Amount := Sign;


Any suggestions

Answers

Sign In or Register to comment.