Facing problem in adjusting bill template format

i am trying to align the bill template but i its not aligning. we have try to play around but no use.
layout:

  >   ` [LAYOUT]
      -- General layout
    <F>=
     <XCT>27,33,48
    <J>TAX INVOICE
    <XCT>27,33,0
     <F>=
    <J00>{TICKET DATE}   {TIME}|{TICKET TAG:SG}
    <J00>Service:{USER NAME}|People: {TICKET TAG:People}
    <XCT>27,33,48
   <J>Table: {ENTITY NAME:Table}
     <XCT>27,33,0
     {ENTITIES}
      <F>=
      <J00>QTY   DESCRIPTION|AMOUNT
      <F>=
       {ORDERS}
      <F>=
      [<J00>|Amount:|   ${PLAIN TOTAL}]
      {DISCOUNTS}
      {TAXES}
      {SERVICES}
      [<J00>|Total Gift:|   ${ORDER STATE TOTAL:Gift}]
      <XCT>27,33,48
        [<J00>|TOTAL:|   ${TICKET TOTAL}]
        <XCT>27,33,0
         {PAYMENTS}
        [<J00>|{TICKET TAG:CCtype}]
        [<J00>|Tendered Total:|   ${TENDERED TOTAL}]
        {CHANGES}
        [<J00>|Balance:|   ${CHANGE TOTAL}]
        <F>=
        <XCT>27,33,48
        <J>Order Number: {TICKET NO}
         <XCT>27,33,0
           <F>=
          <C00>THANK YOU FOR VISITING
           <C00>PLEASE COME AGAIN
            <L>
            [DISCOUNTS]
            [<J00>|{CALCULATION NAME} ({CALCULATION AMOUNT}%):|   ${CALCULATION TOTAL}]
           [TAXES]
            <J00>|{TAX NAME}:|   ${TAX AMOUNT}
           [PAYMENTS]
         <J00> |{PAYMENT NAME}:|   ${PAYMENT AMOUNT}
           [CHANGES]
            [<J00>|{CHANGE TOTAL}]
              [SERVICES]
             <J00>|{CALCULATION NAME}:|   ${CALCULATION TOTAL}
         [ORDERS]
          -- Default format for orders
          <J00>{QUANTITY}     {NAME}|   ${TOTAL AMOUNT}
            {ORDER TAGS}
           [ORDERS:Gift]
          -- Format for gifted orders
         <L00>{QUANTITY}   {NAME}  **GIFT**
        {ORDER TAGS}
          [ORDERS:Void]
          -- Nothing will print for void lines
          [ORDER TAGS]
          -- Format for order tags
            -- <J00>  * {ORDER TAG NAME}
         [ENTITIES:Customer]
           -- Customer entity format
           <C00>Customer: {ENTITY NAME} 
             <C00>Balance: $[=F(0-TN('{ENTITY Balance}'))
              <L>
             [ENTITIES:Layby]
          -- Customer entity format
            <C00>Layby: {ENTITY NAME} 
           <C00>Balance: $[=F(0-TN('{ENTITY Balance}'))
          <L>
           [ENTITIES:Gift Certificate]
           -- Customer entity format
            <C00>Gift Certificate: {ENTITY NAME} 
            <C00>Balance: $[=F(0-TN('{ENTITY Balance}'))
            <QR>{ENTITY NAME}
          <L>`

NOTE:
if bill pay by CC then its display aligned

and if i remove the CC tag from template
>{PAYMENTS}
>[|{TICKET TAG:CCtype}]
then it aligns properly


i spend so much time playing around with the template
now i have achieved alignement

Unfortunately can’t see all the code in your template.
You need to select the code and click the <> button in the post editor before posting as the forum will strip some of the code.

However have you changed the font?
Questions like this seem to always relate to using a non-fixed width font.

what do u mean by non fixed width font

i manage to get it aligned after alot of playing with the spacing

If you have sorted don’t worry.
I was referring to changing the ticket font, have seen many questions relating to spacing and alignment which were a result of using a non fixed width font.

by changing the ticket font you mean using xct command in template

Have not changed font myself but believe that is one way to change font.
Example would be a and i on fixed with
Fixed;

i a i a i a
a i a i a i

Not fixed;
i a i a i a
a i a i a i

Can you see the difference, i takes less space than a.