|
1C-Bitrix 25.700.0
|
Переменные | |
| $ORDER_ID = IntVal($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"]) | |
| $pdf = new CSalePdf('P', 'pt', 'A4') | |
| if(CSalePaySystemAction::GetParamValue('BACKGROUND')) | $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")) | |
| $invoiceDateWidth = $pdf->GetStringWidth($invoiceDate) | |
| $invoiceDueDate = CSalePdf::prepareToPdf(ConvertDateTime(CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE"), FORMAT_DATE)) | |
| $invoiceDueDateWidth = $pdf->GetStringWidth($invoiceDueDate) | |
| $invoiceInfoWidth = max($invoiceNoWidth, $invoiceDateWidth, $invoiceDueDateWidth) | |
| $title = CSalePdf::prepareToPdf('Invoice # ') | |
| $titleWidth = $pdf->GetStringWidth($title) | |
| $dbBasket | |
| $x0 = $pdf->GetX() | |
| $y5 = $pdf->GetY() | |
| $rowsCnt = count($arCells) | |
| $bankAccNo = CSalePaySystemAction::GetParamValue("SELLER_BANK_ACCNO") | |
| $bankRouteNo = CSalePaySystemAction::GetParamValue("SELLER_BANK_ROUTENO") | |
| $bankSwift = CSalePaySystemAction::GetParamValue("SELLER_BANK_SWIFT") | |
| if(CSalePaySystemAction::GetParamValue("SELLER_DIR")||CSalePaySystemAction::GetParamValue("SELLER_DIR_SIGN")) if(CSalePaySystemAction::GetParamValue("SELLER_ACC")||CSalePaySystemAction::GetParamValue("SELLER_ACC_SIGN")) | $dest = 'I' |
| $bankAccNo = CSalePaySystemAction::GetParamValue("SELLER_BANK_ACCNO") |
| $bankRouteNo = CSalePaySystemAction::GetParamValue("SELLER_BANK_ROUTENO") |
| $bankSwift = CSalePaySystemAction::GetParamValue("SELLER_BANK_SWIFT") |
| $dbBasket |
| if(CSalePaySystemAction::GetParamValue("SELLER_DIR")||CSalePaySystemAction::GetParamValue("SELLER_DIR_SIGN")) if (CSalePaySystemAction::GetParamValue("SELLER_ACC")||CSalePaySystemAction::GetParamValue("SELLER_ACC_SIGN")) $dest = 'I' |
| $invoiceDate = CSalePdf::prepareToPdf(CSalePaySystemAction::GetParamValue("DATE_INSERT")) |
| $invoiceDueDate = CSalePdf::prepareToPdf(ConvertDateTime(CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE"), FORMAT_DATE)) |
| $invoiceDueDateWidth = $pdf->GetStringWidth($invoiceDueDate) |
| $invoiceInfoWidth = max($invoiceNoWidth, $invoiceDateWidth, $invoiceDueDateWidth) |
| $invoiceNo = CSalePdf::prepareToPdf($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ACCOUNT_NUMBER"]) |
| $margin |
| $ORDER_ID = IntVal($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"]) |
| if (CSalePaySystemAction::GetParamValue( 'BACKGROUND')) $pageWidth = $pdf->GetPageWidth() |
| $title = CSalePdf::prepareToPdf('Invoice # ') |