Topic: barcode
i need report print label barcode in item by printer barcode
how this report
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Reporting → barcode
i need report print label barcode in item by printer barcode
how this report
Which field in FA do you want to use as Barcode and what code type of barcode do you want?
i need used Code 128 Font
and i need relation to print label barcode contain :-
barcode number
name item
price ( got list price from type sales for example if i need print barcode by list retail price is retail - if need wholesale print wholesale )
and i need one item in one page by ( size 2.5 cm width × 5 cm height ) to print one item in one page
for example 20 item = 20 page by this size
thanks
Setup => Company Setup => tick "Use Barcodes on Stocks" and optionally tick "Company Logo on Reports" if logo is present and desired.
Items and Inventory => Items => Add New Item
You will now see the EAN-8 Barcode which if clicked, will yield a random EAN-8 barcode
Any other barcodes you will need to make changes in the codebase and you can also use third party online tools to generate them like:
https://barcode.tec-it.com/en/EAN8
https://www.free-barcode-generator.net/code-128/
Items and Inventory => Inventory Reports => Stock Check Sheets => Select "Yes" for "Show Pictures" and optionally "Inventory Column" and now all barcodes will be listed.
Since you want code-128 barcode and one barcode per sheet with your fields listed there, just edit the Stock Check Sheets reporting/rep303.php file to suit your need.
If you need technical assistance for it, post your specs and bounty in the Jobs board and hopefully someone will assist you.
The EAN8 barcode type is hardcoded in the reporting/rep303.php file in lines 327-329:
$barcode = str_pad($trans['stock_id'], 7, '0', STR_PAD_LEFT);
$barcode = substr($barcode, 0, 8); // EAN 8 Check digit is auto computed and barcode printed
$rep->write1DBarcode($barcode, 'EAN8', $rep->cols[$firstcol++], $bar_y + 22, 22, $SysPrefs->pic_height, 1.2, $style, 'N');
The default FA reporting/includes/barcodes.php file is from the TCPDF 's 1dBarcode library when used.
The reporting/rep303.php file however uses another library's extracted barcode functionality which supports only the following subset of formats:
EAN, EAN-8, EAN-13, GTIN-8, GTIN-12, GTIN-14, UPC, UPC-12 coupon code, JAN
Using another subset of TCPDF from a GitHub project for barcode generation is also feasible. This library is set to be PHP 5.4+ compatible but for backwards compatibility with PHP 5.3.x, just replace all instances of "= []" with "= Array()" in it's src/BarcodeGenerator.php file.
Sample code for using it in a standalone manner would be:
<?php
include('src/BarcodeGenerator.php');
include('src/BarcodeGeneratorPNG.php');
$generator = new Picqer\Barcode\BarcodeGeneratorPNG();
file_put_contents('src/files/081231723897-code128.png', $generator->getBarcode('081231723897', $generator::TYPE_CODE_128));
echo '<img src="data:image/png;base64,' . base64_encode($generator->getBarcode('081231723897', $generator::TYPE_CODE_128)) . '">';
The above will both generate a file and display it inline as well.
If rep303.php has the 'EAN' replaced with 'C128B', the attached Stock Check Sheets would ensue.
Here is a first draft of rep311.php which should do the job.
@joe: Move the defines to sys_prefs table with appropriate settables in the Company Setup and incorporate it into the core if found useful.
Additional variables could be number of barcodes per sheet (here 1) besides suppressing the header if not necessary.
i need remove all in page header and i need view one page same like this image
https://i.ibb.co/nck6Cjc/14145568.png
to print label in printer TSC label
The sizing of what you want is attached - 5cm x 3cm.
As the code in my previous post has all the necessary variables and functionality, you can now engage anyone in the Job Board to do it for you specific to your printer.
If you print all your barcodes in one A4 page then you can use a regular printer with Avery like labels - but printing on them may waste paper if you just need one or two.
@apmuthu, thanks for this report. Very useful for me.
FrontAccounting forum → Reporting → barcode
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.