forked from science-ation/science-ation
Oops missed one (IMPORTANT) barcode commit
This commit is contained in:
parent
c338261abc
commit
047dd2c86f
@ -812,11 +812,28 @@ foreach($report_stock as $n=>$v) {
|
||||
break;
|
||||
|
||||
default:
|
||||
if($f == 'static_text') $v = $d['value'];
|
||||
$rep->label_text($d['x'], $d['y'], $d['w'], $d['h'],
|
||||
$v, $show_box, $d['align'], $d['valign'],
|
||||
$d['fontname'],$d['fontstyle'],$d['fontsize'],
|
||||
$d['on_overflow']);
|
||||
if($f == 'static_text')
|
||||
$v = $d['value'];
|
||||
|
||||
if($f=="projectbarcode") {
|
||||
$style = array(
|
||||
'border' => 2,
|
||||
'vpadding' => 'auto',
|
||||
'hpadding' => 'auto',
|
||||
'fgcolor' => array(0,0,0),
|
||||
'bgcolor' => false, //array(255,255,255)
|
||||
'module_width' => 2, // width of a single module in points
|
||||
'module_height' => 2 // height of a single module in points
|
||||
);
|
||||
$rep->barcode($v, 'QRCODE,H', $d['x'], $d['y'], $d['w'], $d['h'], $style, 'N');
|
||||
}
|
||||
else {
|
||||
$rep->label_text($d['x'], $d['y'], $d['w'], $d['h'],
|
||||
$v, $show_box, $d['align'], $d['valign'],
|
||||
$d['fontname'],$d['fontstyle'],$d['fontsize'],
|
||||
$d['on_overflow']);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user