Menu

$ signs on receipt

Help
2016-04-12
2016-04-14
  • PasswordSafeGuy

    PasswordSafeGuy - 2016-04-12

    I realize that depending on locale, your money denomination will vary.

    Could someone please tell me how I can customize our receipts so that all $ signs are removed except for the final Total?

    Space is an issue here! And every $ sign takes up precious space.

     
  • RickyO

    RickyO - 2016-04-12

    I can take the $ away, but can not keep it for total.

    Under Configuration > Locale > Currency pop-down and choose '$' #,##0.00 and then remove the '$' portion and then save.

     
    • PasswordSafeGuy

      PasswordSafeGuy - 2016-04-12

      OK thanks very much Ricky, that is very helpful!

       
  • PasswordSafeGuy

    PasswordSafeGuy - 2016-04-12

    On the same theme....
    This program never ceases to amaze me.

    I have products currently in two categories.
    As strange as it may sound, when I enter products from one category to a sale
    and the ticket is printed, there are no $ signs appearing for the products under the price column
    but there are $ signs appearing under the Value column !!!

    Products from the other category show $ signs in both columns.
    This is on a computer that I haven't made changes to with your above tip.

    Any ideas what is going on here?

     
    • Swordylove

      Swordylove - 2016-04-13

      I think it's because the length of the product price exceeds the length specified in the Printer.Ticket. By default, Value has more lenght than PriceTax. And since it's aligned to the right, the '$' sign gets cut off first. Just adjust lengths accordingly.

              <text align ="right" length="8">${ticketline.printPriceTax()}</text>
              <text align ="right" length="7">x${ticketline.printMultiply()}</text>
              <text align ="right" length="10">${ticketline.printValue()}</text>
      

      And for the Total '$' sign, just add another '$' before ${ticket.printTotal().

          <line size="1"><text align ="left" length="16" bold="true">Total</text><text align ="right" length="26" bold="true">$${ticket.printTotal()}</text></line>
      
       

      Last edit: Swordylove 2016-04-13
      • Andrew

        Andrew - 2016-04-13

        *OP asks, how to remove $ symbols from receipts?

         
        • Swordylove

          Swordylove - 2016-04-13

          It has already been answerd by RickyO.

           
      • PasswordSafeGuy

        PasswordSafeGuy - 2016-04-13

        Thanks for the explanation Swordy, it makes sense.

        "And for the Total '$' sign, just add another '$' before ${ticket.printTotal()."

        BINGO! Thanks for the great idea. :)
        It's working perfectly.

        For those who are thinking "What the heck is this guy going on about? His business must be rolling in dough if he has no room on his receipt printouts for $ signs!"

        The business is in the Caribbean and those $1000 pesos don't amount to much at all.

        This is what a typical receipt would look like (if this site formats this properly). You can see it gets a bit tricky to read with the congestion when the amounts are in the thousands and line discounts are offered:

        Solid blue $826.00 x2 $1652.00
        Line Discount 10%($82.60) x1 ($82.60)

        • Well the site didn't format it properly but you get the general idea.
         

        Last edit: PasswordSafeGuy 2016-04-13
        • Swordylove

          Swordylove - 2016-04-13

          You're welcome.

          For those who are thinking "What the heck is this guy going on about? His business must be rolling in dough if he has no room on his receipt printouts for $ signs!"

          Lol yeah I thought you must have a high-end business selling expensive handbags or something. ;D

           
  • Andrew

    Andrew - 2016-04-13

    In Printer.Ticket...

    >{ticketline.printValue()}</text>
    

    instead of

    >${ticketline.printValue()}</text>
    
     
  • Andrew

    Andrew - 2016-04-13

    In Printer.Ticket...

    >{ticketline.printValue()}</text>
    

    instead of

    >${ticketline.printValue()}</text>
    
     
    • PasswordSafeGuy

      PasswordSafeGuy - 2016-04-13

      Ahhh.. if only it were that simple Andrew.
      I did look at that code before and noticed the $ signs.
      They hold another function, they don't simply add a $ sign to the code to the right. :(

       
      • Andrew

        Andrew - 2016-04-13

        Sorry about that. It has been awhile since i've worked with that code extensively.
        No idea on correct solution, but you could strip the $ from the value and store in new var? Just a thought.

         
  • RickyO

    RickyO - 2016-04-13

    I thought the $ were strings.

     
  • Andrew

    Andrew - 2016-04-14

    Sorry guys, for any confusion I may have caused.

     

Log in to post a comment.

MongoDB Logo MongoDB