forked from science-ation/science-ation
Always put the app text under the barcode so people know what its for :p
Fix the naming of the barcode function for consistency
This commit is contained in:
parent
12bb399d48
commit
d59908033e
@ -820,7 +820,7 @@ foreach($report_stock as $n=>$v) {
|
||||
'module_width' => 3, // width of a single module in points
|
||||
'module_height' => 3 // height of a single module in points
|
||||
);
|
||||
$rep->barcode($v, 'QRCODE,H', $d['x'], $d['y'], $d['w'], $d['h'], $style, 'N');
|
||||
$rep->label_barcode($v, 'QRCODE,H', $d['x'], $d['y'], $d['w'], $d['h'], $style, 'N');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -406,8 +406,9 @@ class pdf extends TCPDF {
|
||||
300, '', false, false, $show_box ? 1 : 0, true);
|
||||
}
|
||||
|
||||
function barcode($code, $type, $x='', $y='', $w='', $h='', $style='', $align='', $distort=false) {
|
||||
function label_barcode($code, $type, $x='', $y='', $w='', $h='', $style='', $align='', $distort=false) {
|
||||
$this->write2DBarcode($code,$type, $this->lMargin+$x, $this->tMargin+$y, $w, $h, $style, $align, $distort);
|
||||
$this->label_text($x-1,$y+$h+1,32,10,"Get the iPhone app search Science Fair",0,"center","center","","normal",10,"scale");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user