lsongdev / lsongdev/node-escpos

cashdraw() issue

Open
#303 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.6k
Forks
443
PR merge metrics
No merged PRs in 30d

Description

When I call cashdraw() method the first print is fine but the next print gonna have extra character at the top of paper.

How can I fix this case?
Are they any way to open the cashdrawer without having the extra character ?

The code that I test it on is
networkDevice.open(function(error){ printer.align('ct').text('test').cashdraw().cut('partial').close() });

Here are the picture of receipt that I mentioned about
https://drive.google.com/file/d/1kDmbVDdTDzgqr8RzqGSwJV02rWUZdb-I/view?usp=sharing

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the cashdraw() entry point and reproduce the shown networkDevice flow: align, text, cashdraw, cut, and close. Compare the first and subsequent receipts to identify the extra character, then verify that opening the cash drawer no longer alters the next print.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.