Hello,
Try this may be it will solve the problem.
<F>=
<EB>
<J10>{IF DISCOUNT}
<J00>Total: |${PLAIN TOTAL}
<J00>CA SALE TAX {SERVICE DETAILS}
<R21>GRAND TOTAL: ${TICKET TOTAL}
<J10>[TOTAL GIFT: |{GIFT TOTAL}]
<F>=
<F>*
<C10>*THANK YOU FOR DINING WITH US!*
<F>*
Hope that helps a little bit.