|
Lines 33-45
my $layout = C4::Labels::Layout->retrieve(layout_id => $layout_id);
Link Here
|
| 33 |
|
33 |
|
| 34 |
sub _calc_next_label_pos { |
34 |
sub _calc_next_label_pos { |
| 35 |
my ($row_count, $col_count, $llx, $lly) = @_; |
35 |
my ($row_count, $col_count, $llx, $lly) = @_; |
| 36 |
if ($col_count lt $template->get_attr('cols')) { |
36 |
if ($col_count < $template->get_attr('cols')) { |
| 37 |
$llx = ($llx + $template->get_attr('label_width') + $template->get_attr('col_gap')); |
37 |
$llx = ($llx + $template->get_attr('label_width') + $template->get_attr('col_gap')); |
| 38 |
$col_count++; |
38 |
$col_count++; |
| 39 |
} |
39 |
} |
| 40 |
else { |
40 |
else { |
| 41 |
$llx = $template->get_attr('left_margin'); |
41 |
$llx = $template->get_attr('left_margin'); |
| 42 |
if ($row_count eq $template->get_attr('rows')) { |
42 |
if ($row_count == $template->get_attr('rows')) { |
| 43 |
$pdf->Page(); |
43 |
$pdf->Page(); |
| 44 |
$lly = ($template->get_attr('page_height') - $template->get_attr('top_margin') - $template->get_attr('label_height')); |
44 |
$lly = ($template->get_attr('page_height') - $template->get_attr('top_margin') - $template->get_attr('label_height')); |
| 45 |
$row_count = 1; |
45 |
$row_count = 1; |
| 46 |
- |
|
|