Skip to content

Commit 856ed90

Browse files
committed
ACP2E-1216: Large area customizable option not able to render for print invoice PDF
1 parent b3aa13f commit 856ed90

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

app/code/Magento/Bundle/Model/Sales/Order/Pdf/Items/Creditmemo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function draw()
101101
}
102102

103103
if (!isset($drawItems[$optionId])) {
104-
$drawItems[$optionId] = ['lines' => [], 'height' => 15];
104+
$drawItems[$optionId] = ['lines' => [], 'height' => 20];
105105
}
106106

107107
// draw selection attributes
@@ -112,7 +112,7 @@ public function draw()
112112
'feed' => $x,
113113
];
114114

115-
$drawItems[$optionId] = ['lines' => [$line], 'height' => 15];
115+
$drawItems[$optionId] = ['lines' => [$line], 'height' => 20];
116116

117117
$line = [];
118118
$prevOptionId = $attributes['option_id'];
@@ -210,7 +210,7 @@ public function draw()
210210
$lines[][] = ['text' => $text, 'feed' => $leftBound + 5];
211211
}
212212

213-
$drawItems[] = ['lines' => $lines, 'height' => 15, 'shift' => 5];
213+
$drawItems[] = ['lines' => $lines, 'height' => 20, 'shift' => 5];
214214
}
215215
}
216216

app/code/Magento/Bundle/Model/Sales/Order/Pdf/Items/Invoice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private function drawChildrenItems(): array
105105
}
106106

107107
if (!isset($drawItems[$optionId])) {
108-
$drawItems[$optionId] = ['lines' => [], 'height' => 15];
108+
$drawItems[$optionId] = ['lines' => [], 'height' => 20];
109109
}
110110

111111
if ($childItem->getOrderItem()->getParentItem() && $prevOptionId != $attributes['option_id']) {
@@ -250,7 +250,7 @@ private function drawCustomOptions(array $draw): array
250250
$lines[][] = ['text' => $text, 'feed' => 40];
251251
}
252252

253-
$draw[] = ['lines' => $lines, 'height' => 15, 'shift' => 5];
253+
$draw[] = ['lines' => $lines, 'height' => 20, 'shift' => 5];
254254
}
255255
}
256256

app/code/Magento/Bundle/Model/Sales/Order/Pdf/Items/Shipment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function draw()
9999
}
100100

101101
if (!isset($drawItems[$optionId])) {
102-
$drawItems[$optionId] = ['lines' => [], 'height' => 15];
102+
$drawItems[$optionId] = ['lines' => [], 'height' => 20];
103103
}
104104

105105
if ($childItem->getParentItem() && $prevOptionId != $attributes['option_id']) {
@@ -109,7 +109,7 @@ public function draw()
109109
'feed' => 100,
110110
];
111111

112-
$drawItems[$optionId] = ['lines' => [$line], 'height' => 15];
112+
$drawItems[$optionId] = ['lines' => [$line], 'height' => 20];
113113

114114
$line = [];
115115

@@ -186,7 +186,7 @@ public function draw()
186186
$lines[][] = ['text' => $text, 'feed' => 115];
187187
}
188188

189-
$drawItems[] = ['lines' => $lines, 'height' => 15, 'shift' => 5];
189+
$drawItems[] = ['lines' => $lines, 'height' => 20, 'shift' => 5];
190190
}
191191
}
192192

app/code/Magento/Sales/Model/Order/Pdf/Creditmemo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function _drawHeader(\Zend_Pdf_Page $page)
8787
$page->setFillColor(new \Zend_Pdf_Color_Rgb(0.93, 0.92, 0.92));
8888
$page->setLineColor(new \Zend_Pdf_Color_GrayScale(0.5));
8989
$page->setLineWidth(0.5);
90-
$page->drawRectangle(25, $this->y, 570, $this->y - 30);
90+
$page->drawRectangle(25, $this->y, 570, $this->y - 15);
9191
$this->y -= 10;
9292
$page->setFillColor(new \Zend_Pdf_Color_Rgb(0, 0, 0));
9393

0 commit comments

Comments
 (0)