1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Файл template_pdf.php

См. исходные тексты.

Переменные

 $arPaySysAction ["ENCODING"] = ""
 $blank = ($_REQUEST['BLANK'] == 'Y')
 $pdf = new CSalePdf('P', 'pt', 'A4')
if($params['BILLBY_BACKGROUND']) $pageWidth = $pdf->GetPageWidth()
 $pageHeight = $pdf->GetPageHeight()
 $fontFamily = 'Font'
 $fontSize = 10.5
 $defaultLineWidth = 0.567
 $lineHeight = 15
 $margin
 $width = $pageWidth - $margin['left'] - $margin['right']
 $x0 = $pdf->GetX()
 $y0 = $pdf->GetY()
 $logoHeight = 0
 $logoWidth = 0
 $textWidth = $width
if($params['BILLBY_PAYER_SHOW']=='Y') $arCurFormat = CCurrencyLang::GetCurrencyFormat($params['CURRENCY'])
 $currency = preg_replace('/(^|[^&])#/', '${1}', $arCurFormat['FORMAT_STRING'])
 $currencyFormat = CCurrencyLang::GetFormatDescription($params['CURRENCY'])
 $currencyPrecision = (int)$currencyFormat['DECIMALS']
 $salePrecision = (int)Bitrix\Main\Config\Option::get('sale', 'value_precision', 2)
 $precision = min($salePrecision, $currencyPrecision)
 $columnList = array('NUMBER', 'NAME', 'QUANTITY', 'MEASURE', 'PRICE', 'SUM', 'VAT_RATE', 'VAT_SUM', 'TOTAL')
 $arCols = array()
 $vatRateColumn = 0
 $arColumnKeys = array_keys($arCols)
 $columnCount = count($arColumnKeys)
 $taxes = array()
 $arRowsWidth = array()
 $arRowsContentWidth = array()
 $showTotalRow = false
 $totalTitleColIndex = -1
 do
 $y5 = $pdf->GetY()
 $rowsCnt = count($arCells)
if($params['BILLBY_SIGN_SHOW']=='Y') $dest = 'I'
 $fileName
 $trFileName = CUtil::translit($fileName, 'ru', array('max_len' => 1024, 'safe_chars' => '.', 'replace_space' => '-'))

Переменные

◆ $arCols

$arCols = array()

См. определение в файле template_pdf.php строка 414

◆ $arColumnKeys

$arColumnKeys = array_keys($arCols)

См. определение в файле template_pdf.php строка 441

◆ $arCurFormat

if ( $params[ 'BILLBY_PAYER_SHOW']=='Y') $arCurFormat = CCurrencyLang::GetCurrencyFormat($params['CURRENCY'])

См. определение в файле template_pdf.php строка 395

◆ $arPaySysAction

$arPaySysAction["ENCODING"] = ""

См. определение в файле template_pdf.php строка 6

◆ $arRowsContentWidth

$arRowsContentWidth = array()

См. определение в файле template_pdf.php строка 447

◆ $arRowsWidth

$arRowsWidth = array()

См. определение в файле template_pdf.php строка 446

◆ $blank

$blank = ($_REQUEST['BLANK'] == 'Y')

См. определение в файле template_pdf.php строка 11

◆ $columnCount

$columnCount = count($arColumnKeys)

См. определение в файле template_pdf.php строка 442

◆ $columnList

$columnList = array('NUMBER', 'NAME', 'QUANTITY', 'MEASURE', 'PRICE', 'SUM', 'VAT_RATE', 'VAT_SUM', 'TOTAL')

См. определение в файле template_pdf.php строка 413

◆ $currency

$currency = preg_replace('/(^|[^&])#/', '${1}', $arCurFormat['FORMAT_STRING'])

См. определение в файле template_pdf.php строка 396

◆ $currencyFormat

$currencyFormat = CCurrencyLang::GetFormatDescription($params['CURRENCY'])

См. определение в файле template_pdf.php строка 400

◆ $currencyPrecision

$currencyPrecision = (int)$currencyFormat['DECIMALS']

См. определение в файле template_pdf.php строка 403

◆ $defaultLineWidth

$defaultLineWidth = 0.567

См. определение в файле template_pdf.php строка 32

◆ $dest

if ( $params[ 'BILLBY_SIGN_SHOW']=='Y') $dest = 'I'

См. определение в файле template_pdf.php строка 1145

◆ $fileName

$fileName
Инициализатор
= sprintf(
'Schet No %s ot %s.pdf',
str_replace(
chr(0), chr(1), chr(2), chr(3), chr(4), chr(5), chr(6), chr(7), chr(8), chr(9), chr(10), chr(11),
chr(12), chr(13), chr(14), chr(15), chr(16), chr(17), chr(18), chr(19), chr(20), chr(21), chr(22),
chr(23), chr(24), chr(25), chr(26), chr(27), chr(28), chr(29), chr(30), chr(31),
'"', '*', '/', ':', '<', '>', '?', '\\', '|'
),
'_',
strval($params["ACCOUNT_NUMBER"])
),
ConvertDateTime($params['PAYMENT_DATE_INSERT'], 'YYYY-MM-DD')
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
ConvertDateTime($datetime, $to_format=false, $from_site=false, $bSearchInSitesOnly=false)
Определения tools.php:724
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799

См. определение в файле template_pdf.php строка 1151

◆ $fontFamily

$fontFamily = 'Font'

См. определение в файле template_pdf.php строка 30

◆ $fontSize

$fontSize = 10.5

См. определение в файле template_pdf.php строка 31

◆ $lineHeight

$lineHeight = 15

См. определение в файле template_pdf.php строка 33

◆ $logoHeight

$logoHeight = 0

См. определение в файле template_pdf.php строка 53

◆ $logoWidth

$logoWidth = 0

См. определение в файле template_pdf.php строка 54

◆ $margin

$margin
Инициализатор
'top' => intval($params['BILLBY_MARGIN_TOP'] ?: 15) * 72/25.4,
'right' => intval($params['BILLBY_MARGIN_RIGHT'] ?: 15) * 72/25.4,
'bottom' => intval($params['BILLBY_MARGIN_BOTTOM'] ?: 15) * 72/25.4,
'left' => intval($params['BILLBY_MARGIN_LEFT'] ?: 20) * 72/25.4
)

См. определение в файле template_pdf.php строка 35

◆ $pageHeight

$pageHeight = $pdf->GetPageHeight()

См. определение в файле template_pdf.php строка 25

◆ $pageWidth

if ( $params[ 'BILLBY_BACKGROUND']) $pageWidth = $pdf->GetPageWidth()

См. определение в файле template_pdf.php строка 24

◆ $pdf

$pdf = new CSalePdf('P', 'pt', 'A4')

См. определение в файле template_pdf.php строка 14

◆ $precision

$precision = min($salePrecision, $currencyPrecision)

См. определение в файле template_pdf.php строка 410

◆ $rowsCnt

$rowsCnt = count($arCells)

См. определение в файле template_pdf.php строка 821

◆ $salePrecision

$salePrecision = (int)Bitrix\Main\Config\Option::get('sale', 'value_precision', 2)

См. определение в файле template_pdf.php строка 406

◆ $showTotalRow

$showTotalRow = false

См. определение в файле template_pdf.php строка 448

◆ $taxes

$taxes = array()

См. определение в файле template_pdf.php строка 444

◆ $textWidth

$textWidth = $width

См. определение в файле template_pdf.php строка 56

◆ $totalTitleColIndex

$totalTitleColIndex = -1

См. определение в файле template_pdf.php строка 449

◆ $trFileName

$trFileName = CUtil::translit($fileName, 'ru', array('max_len' => 1024, 'safe_chars' => '.', 'replace_space' => '-'))

См. определение в файле template_pdf.php строка 1166

◆ $vatRateColumn

$vatRateColumn = 0

См. определение в файле template_pdf.php строка 415

◆ $width

$width = $pageWidth - $margin['left'] - $margin['right']

См. определение в файле template_pdf.php строка 42

◆ $x0

$x0 = $pdf->GetX()

См. определение в файле template_pdf.php строка 51

◆ $y0

$y0 = $pdf->GetY()

См. определение в файле template_pdf.php строка 52

◆ $y5

$y5 = $pdf->GetY()

См. определение в файле template_pdf.php строка 812

◆ do

do
Инициализатор
{
$newLine = false

См. определение в файле template_pdf.php строка 793