From 047dd2c86f60551c2510ae520c53abc5d2ad2af4 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 17 Mar 2011 23:13:51 +0000 Subject: [PATCH] Oops missed one (IMPORTANT) barcode commit --- admin/reports.inc.php | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/admin/reports.inc.php b/admin/reports.inc.php index 5ad67ba..0c581e7 100644 --- a/admin/reports.inc.php +++ b/admin/reports.inc.php @@ -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; }