Gift Receipt Printing - advise needed
Posted
#1
(In Topic #1189)
Enthusiast

I have a slight problem that I am working on at the moment and i would like some input as to how to handle this
I am trying to print a Receipt for a customer that does not have any prices on it (as a Gift Receipt) below is the example recipit file that is created by my software Ready to print
Code (gambas)
- VALUE ORANGE JUICE £0.35 A
- DVD 12352 £19.99 A
- ------------------------------------------------------
- 2 Items Sold £11.34
- ------------------------------------------------------
- CASH £15.00
- Change £3.66
Ideally I would like it to be like this
Code (gambas)
- VALUE ORANGE JUICE A
- DVD 12352 A
- ------------------------------------------------------
- 2 Items Sold
- ------------------------------------------------------
- ** GIFT RECEIPT ISSUED 19/02/2024 **
Any ideas as how I can do this as the option of a Gift Receipt is At the end when the sale has completed and the Receipt file is already created
Any input is most welcomed. (as you guys have some great ideas and have moved my project along super quickly)
Andy
Posted
Guru

Posted
Enthusiast

I can when I'm at the computer post a example file if that helps
Posted
Guru

Posted
Enthusiast

|C|2Where Quality Meets Value~
|C|1OPEN MONDAY TO THURSDAY 8AM to 8PM~
|C|1FRIDAY & SATURDAY 8AM to 9PM~
|C|1SUNDAYS 10AM to 4PM~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|L|1CADBURY'S CREAM EGG 40G 짙0.60 A~
|L|1FARM FRESH LSE BRAEBURN CL1 12 짙2.89 Z~
|L|1LOOSE PINK LADY APPLES CL1 1KG 짙3.69 Z~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|L|33 Items Sold Total Due 짙7.18~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|L|B1CASH 짙10.00~
|L|B1CHANGE DUE 짙2.82~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|L|1~
|C|2Thank-you for shopping with~
|C|2us today. we hope to see~
|C|2you again very soon.~
|L|1~|L|3 袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴?
|L|3?1 |4 Last Date for Returns|3 ?
|L|3?1 Your last date that this recipit can be used for |3?
|L|3?1 refunds or exchanges will be |3?
|L|3?1|2 27/03/2024 |3?
|L|3훤袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴暠~
~
|C|B1You was served today by ~|C|B2Andrew~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|C|B1Tuesday 13 February 2024~
|C|B122:13 001691 1105 001 0000~
the ~ is used buy the printer module to show the end of the line
Posted
Guru

Posted
Enthusiast

BruceSteers said
I do this to print so yes I can open the file no problem i was just stuck on how i would remove the Values and remove everything after the |L|33 Items Sold Total Due 짙7.18~ line (I would need to remove the 짙7.18 value so it would look like |L|33 Items ~)
This is how I would like it to look when the values are removed
|Logo7
|C|2Where Quality Meets Value~
|C|1OPEN MONDAY TO THURSDAY 8AM to 8PM~
|C|1FRIDAY & SATURDAY 8AM to 9PM~
|C|1SUNDAYS 10AM to 4PM~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|L|1CADBURY'S CREAM EGG 40G A~
|L|1FARM FRESH LSE BRAEBURN CL1 12 Z~
|L|1LOOSE PINK LADY APPLES CL1 1KG Z~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|L|33 Items Sold
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|C|2 ** GIFT RECEIPT **
|L|1~|L|3 袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴?
|L|3?1 |4 Last Date for Returns|3 ?
|L|3?1 Your last date that this recipit can be used for |3?
|L|3?1 refunds or exchanges will be |3?
|L|3?1|2 27/03/2024 |3?
|L|3훤袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴袴暠~
Ignore the strange chrs when it is printed on the Epson Thermal printer they print correctly (I think is is the ASCII version of the control chrs for the printer)
~
|C|B1You was served today by ~|C|B2Andrew~
|L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~
|C|B1Tuesday 13 February 2024~
|C|B122:13 001691 1105 001 0000~
Posted
Guru

So this (or any other example)
Code (gambas)
- VALUE ORANGE JUICE £0.35 A
- DVD 12352 £19.99 A
- ------------------------------------------------------
- 2 Items Sold £11.34
- ------------------------------------------------------
- CASH £15.00
- Change £3.66
And the printer file text is the same.
I made this
Code (gambas)
- alines.Remove(alines.Count - 2, -1)
- sLine = aLines[c]
- aWords.Remove(iPos, 1)
- aLines[c] = aWords.Join(" ")
- aLines.Add("** GIFT RECEIPT ISSUED 19/02/2024 **")
then realized the £ was not even in the printer text :-\
I need to correlate/translate
Cheers
Posted
Enthusiast

I can generate another file tomorrow if that helps.
I have 2 files one file holds everything upto the tender payment and the other file holds the full recipit format would you like me to post both?
Posted
Guru

maybe you can just change it to suit your needs
Posted
Enthusiast

BruceSteers said
Well does the above code do (with adjustments)
maybe you can just change it to suit your needs
Thanks I shall have a experiment and see what I get
1 guest and 0 members have just viewed this.



