Test
This commit is contained in:
parent
887c687dd1
commit
ba7f3d2223
@ -505,7 +505,6 @@ class AdminLabelGenerate extends AdminTab
|
||||
$quantity += ($od['product_quantity'] - $od['product_quantity_reinjected']);
|
||||
}
|
||||
if ($quantity > 0) {
|
||||
print_r($combination);
|
||||
$barcode->generateIdentification($combination['id_product'], $combination['id_product_attribute'], $product->reference, $combination['attribute_name']);
|
||||
$barcode->assocProduct($combination['id_product'], $combination['id_product_attribute'], $quantity, $product->reference);
|
||||
}
|
||||
|
@ -131,12 +131,12 @@ class GenerateBarcode
|
||||
$white = ImageColorAllocate($im, 0xff, 0xff, 0xff);
|
||||
imagefilledrectangle($im, 0, 0, $width, $height, $white);
|
||||
|
||||
imagettftext($im, 40, 0, 10, 50, $black, $font, $ref);
|
||||
imagettftext($im, 40, 0, 10, 40, $black, $font, $ref);
|
||||
|
||||
if ($id_product_attribute === null) {
|
||||
$result = imagegif($im, $this->directory.'/id-'.$id_product.'-0.gif');
|
||||
} else {
|
||||
imagettftext($im, 12, 0, 80, 50 , $black, $font, $attribute_ref);
|
||||
imagettftext($im, 12, 0, 110, 40 , $black, $font, $attribute_ref);
|
||||
$result = imagegif($im, $this->directory.'/id-'.$id_product.'-'.$id_product_attribute.'.gif');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user