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

Bill types is not enabled in cashcode bill validator #6

Open
sarathjasrin opened this issue May 26, 2019 · 4 comments
Open

Bill types is not enabled in cashcode bill validator #6

sarathjasrin opened this issue May 26, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@sarathjasrin
Copy link

I tried to connect cashcode bill validator using ccnet protocol implemented in node js. I tried to enable billTypes it's showing any error. When I tried to print the BillTypes it's showing enabled as false.

    [ { amount: 1, code: 'QAT', enabled: false, security: false },
  { amount: 5, code: 'QAT', enabled: false, security: false },
  { amount: 10, code: 'QAT', enabled: false, security: false },
  { amount: 50, code: 'QAT', enabled: false, security: false },
  { amount: 100, code: 'QAT', enabled: false, security: false },
  { amount: 500, code: 'QAT', enabled: false, security: false }]

My bill validator model: MSM-QA1112

@fenixphp
Copy link
Contributor

Sample code you used?

@sarathjasrin
Copy link
Author

I used the example code from the repo.

const { CCNet } = require('cashcode-bv');
let device = new CCNet.BillValidator('COM3');
async function init (){
   await device.connect();
  console.log(device.info);
  console.log(device.billTable);
}
init()
.then(function () {
  console.log('Ok.');
})
.catch(function (error) {
  console.error(error);
});

@fenixphp
Copy link
Contributor

Yes, there were problems with this; at the time of its creation the library did not have to correct this. In addition, the behavior of the device does not correspond to the documentation. In the second version it should be improved, but when I finish, I don’t know. There is no time allocated for this project. The new version is in the "refactoring" branch, but it is not ready.

@sarathjasrin
Copy link
Author

First of all thanks for the project. You already put good amount of time creating this project hopefully you will finish soon. Till I have to wait and I have no choice. God bless you.

@fenixphp fenixphp added the bug Something isn't working label Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants