snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.84k stars 3.14k forks source link

C128 barcode cannot be read #8140

Closed Lightningpicture closed 4 years ago

Lightningpicture commented 4 years ago

Please confirm you have done the following before posting your bug report:

Describe the bug C128 barcode cannot be read with Barcode Reader.

To Reproduce Steps to reproduce the behavior: generate Barcode and Print then scan.

If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

Same Problem from 2017 https://github.com/snipe/snipe-it/issues/3425

problem is Resolved with:

@Jason-Weber-UC first go into the public/uploads/barcodes folder and clean out the existing barcodes, it will use the images if they already exist so you need to clear it to regenerate.

Then go to app\http\controllers\assetscontroller.php Find the function getBarCode Inside that function there will be a line

$barcode_obj = $barcode->getBarcodeObj($settings->alt_barcode, $asset->asset_tag, 250, 20);

replace the 250 with '' (2 apostrophes) so it will be like

$barcode_obj = $barcode->getBarcodeObj($settings->alt_barcode, $asset->asset_tag, '', 20);

stale[bot] commented 4 years ago

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.