Topic: Barcode EAN-8 Generator mod

Unique EAN-8 Barcode ID generator for FA 2.3.x  is enabled in this commit.

Post's attachments

FA 2.3 BarCode_Items.png 24.9 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Barcode EAN-8 Generator mod

The corresponding FA 2.4 commit is here.

Post's attachments

FA24_NewItem_EAN8.png 29.7 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Barcode EAN-8 Generator mod

Is there a way to print barcode lables and stock item names from Inventory

Wynand

Re: Barcode EAN-8 Generator mod

Barcode printing is available in the tcpdf library that FA uses for it's reporting. Checkout the TCPDF examples and write your reports for the barcode label size, type and layout needed.

Sample usage in a reporting/rep###.php file is:

// ..
// ..

// define barcode style
$style = array(
    'position' => 'L', // If blank string, barcode starts on left edge of page
    'stretch' => false,
    'fitwidth' => true,
    'cellfitalign' => '',
    'border' => true,
    'padding' => 'auto',
    'fgcolor' => array(0,0,0),
    'bgcolor' => false, //array(255,255,255),
    'text' => true,
    'font' => 'helvetica',
    'fontsize' => 8,
    'stretchtext' => 4
);

// EAN 8
$y = $rep->GetY();
// write1DBarcode($code, $type, $x='', $y='', $w='', $h='', $xres=0.4, $style='', $align='')
$rep->write1DBarcode('1234567', 'EAN8', 5, $y-8.5, 75, 22, 1.2, $style, 'N');

// ..
// ..
Post's attachments

EAN-8_Barcode.png 870 b, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Barcode EAN-8 Generator mod

As EAN 8 is not available in the standard FA 2.3 and 2.4 as of now, my FAMods repos have been updated with the code backported from the TCPDF repo.

Attached is the file to replace in FA 2.3 and 2.4 (same file).

Post's attachments

reporting_barcodes_php.zip 6.8 kb, 14 downloads since 2017-08-18 

You don't have the permssions to download the attachments of this post.