|
| | $arPaySysAction ["ENCODING"] = "" |
| | $ORDER_ID = intval($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"]) |
| | $pdf = new CSalePdf('P', 'pt', 'A4') |
| if(CSalePaySystemAction::GetParamValue('BACKGROUND', false)) | $pageWidth = $pdf->GetPageWidth() |
| | $pageHeight = $pdf->GetPageHeight() |
| | $fontFamily = 'Font' |
| | $fontSize = 10.5 |
| | $margin |
| | $width = $pageWidth - $margin['left'] - $margin['right'] |
| | $y0 = $pdf->GetY() |
| | $logoHeight = 0 |
| | $logoWidth = 0 |
| | $invoiceNo = CSalePdf::prepareToPdf($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ACCOUNT_NUMBER"]) |
| | $invoiceNoWidth = $pdf->GetStringWidth($invoiceNo) |
| | $invoiceDate = CSalePdf::prepareToPdf(CSalePaySystemAction::GetParamValue("DATE_INSERT", false)) |
| | $invoiceDateWidth = $pdf->GetStringWidth($invoiceDate) |
| | $invoiceDueDate |
| | $invoiceDueDateWidth = $pdf->GetStringWidth($invoiceDueDate) |
| | $invoiceInfoWidth = max($invoiceNoWidth, $invoiceDateWidth, $invoiceDueDateWidth) |
| | $title = CSalePdf::prepareToPdf('Factura # ') |
| | $titleWidth = $pdf->GetStringWidth($title) |
| | $dbBasket |
| | $x0 = $pdf->GetX() |
| | $y5 = $pdf->GetY() |
| | $rowsCnt = count($arCells) |
| | $bankAccNo = CSalePaySystemAction::GetParamValue("SELLER_BANK_ACCNO", false) |
| | $bankRouteNo = CSalePaySystemAction::GetParamValue("SELLER_BANK_ROUTENO", false) |
| | $bankSwift = CSalePaySystemAction::GetParamValue("SELLER_BANK_SWIFT", false) |
| if(CSalePaySystemAction::GetParamValue("SELLER_DIR_POS", false)) if(CSalePaySystemAction::GetParamValue("SELLER_ACC_POS", false)) | $dest = 'I' |