Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return uniqueSaleNumber on receipt #173

Open
skito opened this issue Feb 7, 2022 · 1 comment
Open

Return uniqueSaleNumber on receipt #173

skito opened this issue Feb 7, 2022 · 1 comment

Comments

@skito
Copy link

skito commented Feb 7, 2022

Hello,

Currently we can print a receipt without specifying uniqueSaleNumber. In this case the printer will automatically generate and add it to the receipt (at least with Datecs devices). However this auto-generated uniqueSaleNumber is not returned back which make it impossible to print a reversal receipt afterwards.

Is it possible to get the uniqueSaleNumber back with the response, no matter if it is already specified by the incoming POST request?

Thanks,
Dimitar

@i-argentinski
Copy link
Contributor

This could be made and would be a nice addition to the protocol.

However, as this is unsupported open-source effort, it is up to you to implement it. If you implement it with a quality code, please give us a pull request, so that we can share it to benefit everybody.

If you decide to implement it:

  • Implement it for DATECS printers
  • Consider the non-DATECS printers - do they support this?
  • Include the change in the protocol help (this should be only 1 line description and 1 line in any of the example responses)
  • Anything else, which you might consider good for the quality of the pull request.

Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants