31 $this->_oData = $oData;
45 $this->
line(15, $iStartPos + 1, 195, $iStartPos + 1);
46 $sNetSum = $oLang->formatCurrency($this->_oData->oxorder__oxtotalnetsum->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
47 $this->
text(45, $iStartPos + 4, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ALLPRICENETTO'));
48 $this->
text(195 - $this->_oPdf->getStringWidth($sNetSum), $iStartPos + 4, $sNetSum);
52 foreach ($this->_oData->getVats() as $iVat => $dVatPrice) {
53 $iStartPos += 4 * $iCtr;
54 $sVATSum = $oLang->formatCurrency($dVatPrice, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
55 $this->
text(45, $iStartPos + 8, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT') . $iVat . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PERCENTSUM'));
56 $this->
text(195 - $this->_oPdf->getStringWidth($sVATSum), $iStartPos + 8, $sVATSum);
61 $sBrutPrice = $oLang->formatCurrency($this->_oData->oxorder__oxtotalbrutsum->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
62 $this->
text(45, $iStartPos + 12, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ALLPRICEBRUTTO'));
63 $this->
text(195 - $this->_oPdf->getStringWidth($sBrutPrice), $iStartPos + 12, $sBrutPrice);
67 $this->
line(45, $iStartPos + 13, 195, $iStartPos + 13);
81 $this->
line(15, $iStartPos + 1, 195, $iStartPos + 1);
83 if ($this->_oData->isNettoMode()) {
86 $sNetSum = $oLang->formatCurrency($this->_oData->oxorder__oxtotalnetsum->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
87 $this->
text(45, $iStartPos + 4, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ALLPRICENETTO'));
88 $this->
text(195 - $this->_oPdf->getStringWidth($sNetSum), $iStartPos + 4, $sNetSum);
91 $dDiscountVal = $this->_oData->oxorder__oxdiscount->value;
92 if ($dDiscountVal > 0) {
95 $sDiscount = $oLang->formatCurrency($dDiscountVal, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
96 $this->
text(45, $iStartPos + 8, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_DISCOUNT'));
97 $this->
text(195 - $this->_oPdf->getStringWidth($sDiscount), $iStartPos + 8, $sDiscount);
101 $this->
line(45, $iStartPos + 8, 195, $iStartPos + 8);
104 foreach ($this->_oData->getVats() as $iVat => $dVatPrice) {
105 $iStartPos += 4 * $iCtr;
106 $sVATSum = $oLang->formatCurrency($dVatPrice, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
107 $this->
text(45, $iStartPos + 12, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT') . $iVat . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PERCENTSUM'));
108 $this->
text(195 - $this->_oPdf->getStringWidth($sVATSum), $iStartPos + 12, $sVATSum);
114 $sBrutPrice = $oLang->formatCurrency($this->_oData->oxorder__oxtotalbrutsum->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
115 $this->
text(45, $iStartPos + 12, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ALLPRICEBRUTTO'));
116 $this->
text(195 - $this->_oPdf->getStringWidth($sBrutPrice), $iStartPos + 12, $sBrutPrice);
121 $sBrutPrice = $oLang->formatCurrency($this->_oData->oxorder__oxtotalbrutsum->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
122 $this->
text(45, $iStartPos + 4, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ALLPRICEBRUTTO'));
123 $this->
text(195 - $this->_oPdf->getStringWidth($sBrutPrice), $iStartPos + 4, $sBrutPrice);
126 $this->
line(45, $iStartPos + 5, 195, $iStartPos + 5);
129 $dDiscountVal = $this->_oData->oxorder__oxdiscount->value;
130 if ($dDiscountVal > 0) {
133 $sDiscount = $oLang->formatCurrency($dDiscountVal, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
134 $this->
text(45, $iStartPos + 8, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_DISCOUNT'));
135 $this->
text(195 - $this->_oPdf->getStringWidth($sDiscount), $iStartPos + 8, $sDiscount);
139 $this->
line(45, $iStartPos + 8, 195, $iStartPos + 8);
143 $sNetSum = $oLang->formatCurrency($this->_oData->oxorder__oxtotalnetsum->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
144 $this->
text(45, $iStartPos + 8, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ALLPRICENETTO'));
145 $this->
text(195 - $this->_oPdf->getStringWidth($sNetSum), $iStartPos + 8, $sNetSum);
149 foreach ($this->_oData->getVats() as $iVat => $dVatPrice) {
150 $iStartPos += 4 * $iCtr;
151 $sVATSum = $oLang->formatCurrency($dVatPrice, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
152 $this->
text(45, $iStartPos + 12, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT') . $iVat . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PERCENTSUM'));
153 $this->
text(195 - $this->_oPdf->getStringWidth($sVATSum), $iStartPos + 12, $sVATSum);
168 if ($this->_oData->oxorder__oxvoucherdiscount->value) {
169 $dDiscountVal = $this->_oData->oxorder__oxvoucherdiscount->value;
170 if ($dDiscountVal > 0) {
173 $sPayCost =
oxRegistry::getLang()->formatCurrency($dDiscountVal, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
174 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_VOUCHER'));
175 $this->
text(195 - $this->_oPdf->getStringWidth($sPayCost), $iStartPos, $sPayCost);
193 if ($oConfig->getConfigParam(
'blShowVATForDelivery')) {
195 $sDelCostNetto = $oLang->formatCurrency($this->_oData->getOrderDeliveryPrice()->getNettoPrice(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
196 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_SHIPCOST') .
' ' . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_NETTO'));
197 $this->
text(195 - $this->_oPdf->getStringWidth($sDelCostNetto), $iStartPos, $sDelCostNetto);
200 if ($oConfig->getConfigParam(
'sAdditionalServVATCalcMethod') !=
'proportional') {
201 $sVatValueText = $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT') . $this->_oData->oxorder__oxdelvat->value . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PERCENTSUM');
203 $sVatValueText = $this->_oData->translate(
'TOTAL_PLUS_PROPORTIONAL_VAT');
207 $sDelCostVAT = $oLang->formatCurrency($this->_oData->getOrderDeliveryPrice()->getVATValue(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
208 $this->
text(45, $iStartPos, $sVatValueText);
209 $this->
text(195 - $this->_oPdf->getStringWidth($sDelCostVAT), $iStartPos, $sDelCostVAT);
212 $sAddString =
' ' . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_BRUTTO');
215 if ($this->_oData->oxorder__oxstorno->value) {
216 $this->_oData->oxorder__oxdelcost->setValue(0);
219 $sDelCost = $oLang->formatCurrency($this->_oData->oxorder__oxdelcost->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
220 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_SHIPCOST') . $sAddString);
221 $this->
text(195 - $this->_oPdf->getStringWidth($sDelCost), $iStartPos, $sDelCost);
232 if ($this->_oData->oxorder__oxwrapcost->value || $this->_oData->oxorder__oxgiftcardcost->value) {
237 if ($oConfig->getConfigParam(
'blShowVATForWrapping')) {
239 if ($this->_oData->oxorder__oxwrapcost->value) {
242 $sWrapCostNetto = $oLang->formatCurrency($this->_oData->getOrderWrappingPrice()->getNettoPrice(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
243 $this->
text(45, $iStartPos, $this->_oData->translate(
'WRAPPING_COSTS') .
' ' . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_NETTO'));
244 $this->
text(195 - $this->_oPdf->getStringWidth($sWrapCostNetto), $iStartPos, $sWrapCostNetto);
249 $sWrapCostVAT = $oLang->formatCurrency($this->_oData->getOrderWrappingPrice()->getVATValue(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
250 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT'));
251 $this->
text(195 - $this->_oPdf->getStringWidth($sWrapCostVAT), $iStartPos, $sWrapCostVAT);
255 if ($this->_oData->oxorder__oxgiftcardcost->value) {
258 $sWrapCostNetto = $oLang->formatCurrency($this->_oData->getOrderGiftCardPrice()->getNettoPrice(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
259 $this->
text(45, $iStartPos, $this->_oData->translate(
'GIFTCARD_COSTS') .
' ' . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_NETTO'));
260 $this->
text(195 - $this->_oPdf->getStringWidth($sWrapCostNetto), $iStartPos, $sWrapCostNetto);
265 $sWrapCostVAT = $oLang->formatCurrency($this->_oData->getOrderGiftCardPrice()->getVATValue(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
267 if ($oConfig->getConfigParam(
'sAdditionalServVATCalcMethod') !=
'proportional') {
268 $sVatValueText = $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT') . $this->_oData->oxorder__oxgiftcardvat->value . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PERCENTSUM');
270 $sVatValueText = $this->_oData->translate(
'TOTAL_PLUS_PROPORTIONAL_VAT');
273 $this->
text(45, $iStartPos, $sVatValueText);
274 $this->
text(195 - $this->_oPdf->getStringWidth($sWrapCostVAT), $iStartPos, $sWrapCostVAT);
279 $sAddString =
' ' . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_BRUTTO');
281 if ($this->_oData->oxorder__oxwrapcost->value) {
284 $sWrapCost = $oLang->formatCurrency($this->_oData->oxorder__oxwrapcost->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
285 $this->
text(45, $iStartPos, $this->_oData->translate(
'WRAPPING_COSTS' ) . $sAddString);
286 $this->
text(195 - $this->_oPdf->getStringWidth($sWrapCost), $iStartPos, $sWrapCost);
290 if ($this->_oData->oxorder__oxgiftcardcost->value) {
293 $sWrapCost = $oLang->formatCurrency($this->_oData->oxorder__oxgiftcardcost->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
294 $this->
text(45, $iStartPos, $this->_oData->translate(
'GIFTCARD_COSTS') . $sAddString);
295 $this->
text(195 - $this->_oPdf->getStringWidth($sWrapCost), $iStartPos, $sWrapCost);
312 if ($this->_oData->oxorder__oxstorno->value) {
313 $this->_oData->oxorder__oxpaycost->setValue(0);
316 if ($oConfig->getConfigParam(
'blShowVATForDelivery')) {
317 if ($this->_oData->oxorder__oxpayvat->value) {
320 $sPayCostNetto = $oLang->formatCurrency($this->_oData->getOrderPaymentPrice()->getNettoPrice(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
321 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PAYMENTIMPACT') .
' ' . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_NETTO'));
322 $this->
text(195 - $this->_oPdf->getStringWidth($sPayCostNetto), $iStartPos, $sPayCostNetto);
324 if ($oConfig->getConfigParam(
'sAdditionalServVATCalcMethod') !=
'proportional') {
325 $sVatValueText = $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT') . $this->_oData->oxorder__oxpayvat->value . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PERCENTSUM');
327 $sVatValueText = $this->_oData->translate(
'TOTAL_PLUS_PROPORTIONAL_VAT');
332 $sPayCostVAT = $oLang->formatCurrency($this->_oData->getOrderPaymentPrice()->getVATValue(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
333 $this->
text(45, $iStartPos, $sVatValueText);
334 $this->
text(195 - $this->_oPdf->getStringWidth($sPayCostVAT), $iStartPos, $sPayCostVAT);
343 if ($this->_oData->oxorder__oxpaycost->value) {
345 $sPayCost = $oLang->formatCurrency($this->_oData->oxorder__oxpaycost->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
346 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PAYMENTIMPACT'));
347 $this->
text(195 - $this->_oPdf->getStringWidth($sPayCost), $iStartPos, $sPayCost);
365 if ($this->_oData->oxorder__oxtsprotectcosts->value && $oConfig->getConfigParam(
'blShowVATForPayCharge')) {
369 $sPayCostNetto = $oLang->formatCurrency($this->_oData->getOrderTsProtectionPrice()->getNettoPrice(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
370 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_TSPROTECTION') .
' ' . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_NETTO'));
371 $this->
text(195 - $this->_oPdf->getStringWidth($sPayCostNetto), $iStartPos, $sPayCostNetto);
375 $sPayCostVAT = $oLang->formatCurrency($this->_oData->getOrderTsProtectionPrice()->getVATValue(), $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
376 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ZZGLVAT') . $oConfig->getConfigParam(
'dDefaultVAT') . $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PERCENTSUM'));
377 $this->
text(195 - $this->_oPdf->getStringWidth($sPayCostVAT), $iStartPos, $sPayCostVAT);
381 } elseif ($this->_oData->oxorder__oxtsprotectcosts->value) {
384 $sPayCost = $oLang->formatCurrency($this->_oData->oxorder__oxtsprotectcosts->value, $this->_oData->getCurrency()) .
' ' . $this->_oData->getCurrency()->name;
385 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_TSPROTECTION'));
386 $this->
text(195 - $this->_oPdf->getStringWidth($sPayCost), $iStartPos, $sPayCost);
402 $sTotalOrderSum = $this->_oData->getFormattedTotalOrderSum() .
' ' . $this->_oData->getCurrency()->name;
403 $this->
text(45, $iStartPos, $this->_oData->translate(
'ORDER_OVERVIEW_PDF_ALLSUM'));
404 $this->
text(195 - $this->_oPdf->getStringWidth($sTotalOrderSum), $iStartPos, $sTotalOrderSum);
407 if ($this->_oData->oxorder__oxdelvat->value || $this->_oData->oxorder__oxwrapvat->value || $this->_oData->oxorder__oxpayvat->value) {
419 $oPayment =
oxNew(
'oxpayment');
420 $oPayment->loadInLang($this->_oData->getSelectedLang(), $this->_oData->oxorder__oxpaymenttype->value);
422 $text = $this->_oData->translate(
'ORDER_OVERVIEW_PDF_SELPAYMENT') . $oPayment->oxpayments__oxdesc->value;
424 $this->
text(15, $iStartPos + 4, $text);
435 $text = $this->_oData->translate(
'ORDER_OVERVIEW_PDF_PAYUPTO') . date(
'd.m.Y', strtotime(
'+' . $this->_oData->getPaymentTerm() .
' day', strtotime($this->_oData->oxorder__oxbilldate->value)));
437 $this->
text(15, $iStartPos + 4, $text);
455 if (!$this->_oData->oxorder__oxdiscount->value) {
467 if ($this->_oData->oxorder__oxdiscount->value || $this->_oData->oxorder__oxvoucherdiscount->value) {
468 $this->
line(45, $siteH - 3, 195, $siteH - 3);
484 $this->
line(15, $siteH, 195, $siteH);
491 $this->
line(15, $siteH, 195, $siteH);
500 return $siteH - $iStartPos;