JsBarcode icon indicating copy to clipboard operation
JsBarcode copied to clipboard

Fix coveralls coverage

Open lindell opened this issue 7 years ago • 6 comments

lindell avatar Jul 13 '16 15:07 lindell

This will probably not be node before ES6 import / export comes to node since coverage on compiled code isn't what I want.

lindell avatar Aug 04 '16 15:08 lindell

hi lindell you have done a great work. but there might be a problem. I am now doing a patient management php project.

My zebex barcode works when I have minimum three digits. suppose it does not work with bar codes generated by 2 . but works with 002. So I tried to create a variable in php to create 00000002 with str_pad function. but when I place this variable value into your code like this

In this case , your code creates bar codes of 2 while I expect bar codes of 00000002. Please give me a solution. I will ever grate full to you. Mukul sarker

mukulsarker avatar Jan 03 '17 08:01 mukulsarker

First, this issue has nothing to do with your problem! Please create a new issue.

Second, are you sure the php generate the 000000002 correctly? Since I can generate barcodes with that value http://codepen.io/lindell/pen/zNYqXO.

lindell avatar Jan 03 '17 09:01 lindell

`Dear Lindell Really grateful to you for your quick response. your pen link perfectly works and for me too. but working with static 00000002 value. not for php variable value. I am sending zip file to you . please run that php file and suggest me where is my fault. I really need your bar codes for patient management in a hospital.

Again thanks for your great work. Mukul sarker

barcodes.zip

mukulsarker avatar Jan 04 '17 08:01 mukulsarker

The problem is that you print the number as a number in the javascript, which will remove the zeroes.

If you add " before and after the number to make it a string it will work.

Like this:

<script>
JsBarcode("#barcode", "<?php 
  echo $formatted_patientID;
?>" , { height:25 }); 
</script> 

lindell avatar Jan 04 '17 14:01 lindell

Dear Lindell I am really grateful to you. Your script running good , producing desired output. My blessings upon you. Thanks from my heart. Mukul sarker

mukulsarker avatar Jan 04 '17 17:01 mukulsarker