Questions tagged [receipt]

For any receipt related questions, digital or other forms.

283 questions
2
votes
1 answer

COM port interception and modification of data on Linux

I have a receipt printer connected to my COM port and every time someone prints to my receipt printer, I want to add some extra data to the data going out the COM port. I am on Linux. How can I intercept the data going out and modify it so that I…
Phil
  • 46,436
  • 33
  • 110
  • 175
1
vote
1 answer

Print a hex file in java

I would like to print a hex file on a receipt printer. For testing, I use the cmd with the command: "copy /b test.hex lpt3:" Now I would like a java programm, which can send the test.hex to the printer, but not as graphic. Please, can someone tell…
FabianG
  • 120
  • 1
  • 2
  • 10
1
vote
3 answers

user receipt issue php

I'm working on making a receipt for my registration code and I keep getting this error: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
timoh
  • 37
  • 4
1
vote
0 answers

Customize ODOO 15 POS Receipt

I'm trying to add some new fields that are stored in the pos.order into the POS receipt. However, I don't know how to add them to the JS, I've tried to create a model, followed several tutos but I could not resolve my issue. My main issue is that in…
maxlbs
  • 11
  • 2
1
vote
1 answer

Validating iphone receipt from c++

I'm trying to validate an iphone receipt from a c++ server (I have the receipt encrypted with base64, I'm composing a json object according to apple docs, and then I open a socket to the sandbox and send a POST request). The server responds with…
Sulea Cosmin
  • 598
  • 1
  • 11
  • 24
1
vote
1 answer

Why commands are printed from middle of the page in thermal printer

Why the commands in thermal printer start printing from the middle of the page and why it was cut before the first receipt finished. Following is my code ( I am using…
1
vote
1 answer

Automatize receipt number

I'm trying to make a receipt printing website. I want to be able to increment the receipt number each type a new receipt gets printed, for example, first time ever printing, the number will be 1, second time 2, etc. The numbers should not repeat…
john
  • 106
  • 1
  • 7
1
vote
0 answers

Print diffrent type files with lpr at once

I want to print different files using lpr command to a thermal printer. They need to be printed at once because they're from the same receipt. If I use the following commands lpr -P POS58 aux.txt lpr -P POS58 qr.bin They are printed fine but there's…
Kuznov
  • 11
  • 1
1
vote
0 answers

Print a set width and height using PrintJS

I'm trying to print a receipt using PrintJS, however, I can't seem to be able to print a receipt that ends after the data end, instead, it acts as A4 paper. printJS({ printable: "printable", type: "html", targetStyles:…
Alitron
  • 108
  • 2
  • 8
1
vote
0 answers

How to print receipt using HP Engage One Prime Receipt Printer

I'm developing a web application to print receipts using angular. I use HP Engage One Prime POS as client side using the default browser which is Chromium version 74 and HP Engage One Prime Receipt Printer thermal printer. Any suggestions?
1
vote
1 answer

how can i reduce the top and bottom space in receipt printing using thermal printer?

i am developing a small code for receipt printing using html, JavaScript and css. i am printing a certain div only in my page. but when i print in receipt the top having some space. i want to remove that space. so here some codes i was tried but i…
jack
  • 15
  • 4
1
vote
1 answer

Looking to create a word document from code in Python

I have this code: import random from docx import Document from docx.shared import Inches title = "seans store" """ Declare the two dictionaries with name stock and prices """ stock = { "banana": 60, "apple": 150, "orange": 120, …
1
vote
1 answer

Implementing Sage Intacct API via Postman

I would like to get the invoice link from the purchase order implementing Sage Intacct API via Postman. I suppose it can be done by following sequences(or by only one api request? not sure about this). Order a purchase Create a purchase receipt Get…
1
vote
1 answer

Strange Status Code From Apple Receipt Verification Sandbox

I make a post request of base64 encoded data to the receipt verification address as follows (this is in C#): var postSerializer = new JavaScriptSerializer(); byte[] toEncodeAsBytes =…
1
vote
0 answers

How do I let my django server print a receipt using my client's printer?

I'm working on a web application that allows users to add items to their cart. What I want to do is to print the items in the cart to a kitchen impact receipt printer on my clients side (I'm using the TM-U220 Receipt Printer). Currently, I am using…
Bunny SL
  • 11
  • 1