JsBarcode
JsBarcode copied to clipboard
Fix coveralls coverage
This will probably not be node before ES6 import / export comes to node since coverage on compiled code isn't what I want.
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
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.
`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
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>
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