Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MICROS RES 3700-Check Trailer SIM

Status
Not open for further replies.

mr54443

IS-IT--Management
Jun 17, 2014
42
US
Hey,
I am not sure why I am getting stuck on this. I have a SIM that prints a suggested gratuity in the check trailer.

Currently the SIM includes:
format t4 as " 18% is $",0.18 * sttl //@ttldue
format t5 as " 20% is $",0.20 * sttl //@ttldue
format t6 as " 22% is $",0.22 * sttl //@ttldue

The SIM prints correctly however I now need to include what the new total would be if a guest was to tip that amount.
For example (if the check subtotal was $100, a 10% tax rate, check total with tax $110.00)

Tip___Amount___Total
18%__$18.00___$128.00
20%__$20.00___$130.00
22%__$22.00___$132.00

I just need to know the statement to include the suggested tip amount as well as what the check total would be include tax. I can worry about the formatting :)

Thanks in advance!
 
Can you not just multiply your total due by 1.18, 1.20 and 1.22 to get your new total with grat?
 
Use another variable for each percentage, something like sTip18, sTip20 and sTip22.

Code:
sTip18 = 0.18 * sttl     // assuming sttl is your subtotal without tax
sTip20 = 0.20 * sttl
sTip22 = 0.22 * sttl

format t4 as " 18% is $",0.18 * sttl, sTip18 + @ttldue
format t5 as " 20% is $",0.20 * sttl, sTip20 + @ttldue
format t6 as " 22% is $",0.22 * sttl, sTip22 + @ttldue
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top