Author Topic: Trying to print positive instead of neg on Ticket Account Bal val.  (Read 10815 times)

pecanhouse

  • Newbie
  • *
  • Posts: 15
I use the system for gift cards I apply a negative balance to account bal but is there a way just to alter print job have this so far:

<F>=
<EB>
<J10>{IF DISCOUNT}
<J10>[Total Gift:|{GIFT TOTAL}]
<J10>Sales Tax:|{TAX TOTAL}
<J10>Total:|{TICKET TOTAL}{IF PAID}
<J10>
<J10>Tip:|__________________
<J10>Total:|__________________
<J10>
<J10>Signature:
<F>_
<F>-
<J10>[Account Balance:|{ACC BALANCE}]
<J00>Remaining Balance before tip:|[= Format (ToNumber ('{ACC BALANCE}') + (ToNumber ('{TICKET TOTAL}')))]
<DB>
<F>=
<C10>T H A N K    Y O U

if its possible to Multiply the acc bal by -1 should work ?

Tried
[= Multiply by -1 Format (ToNumber ('{ACC BALANCE}') + (ToNumber ('{TICKET TOTAL}')))]


Thanks for any sujestions
« Last Edit: May 04, 2012, 01:53:37 pm by pecanhouse »

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Trying to print positive instead of neg on Ticket Account Bal val.
« Reply #1 on: May 04, 2012, 05:57:45 pm »
Can you try?

[=Format(Abs(ToNumber('{ACC BALANCE}')+ToNumber ('{TICKET TOTAL}')))]

pecanhouse

  • Newbie
  • *
  • Posts: 15
Re: Trying to print positive instead of neg on Ticket Account Bal val.
« Reply #2 on: May 04, 2012, 11:17:21 pm »
Thanks the only prob with this is that if some one goes over the account bal it still shows positive. Thank you though I'm am not familiar on how to group formulas  together but i added another ToNumber to the mix thanks thanks for the help!

<F>=
<EB>
<J10>{IF DISCOUNT}
<J10>[Total Gift:|{GIFT TOTAL}]
<J10>Sales Tax:|{TAX TOTAL}
<J10>Total:|{TICKET TOTAL}{IF PAID}
<J10>
<J10>Tip:|__________________
<J10>Total:|__________________
<J10>
<J10>Signature:
<F>_
<F>-
<J10>Account Balance:|[= Format (ToNumber ('{ACC BALANCE}')*-1)]
<J00>Remaining Balance before tip:|[= Format (ToNumber (ToNumber ('{ACC BALANCE}') + (ToNumber ('{TICKET TOTAL}')))*-1)]
<DB>
<F>=
<C10>T H A N K    Y O U