1<?
if (!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !==
true)
die();?><?
3if (!is_array($arOrder))
6<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
10<meta
http-equiv=
"Content-Type" content=
"text/html; charset=<?=LANG_CHARSET?>">
13 table.acc td { padding: 0pt; vertical-
align:
top; }
14 table.it td { border: 1pt solid #000000; padding: 0pt 3pt; }
15 table.sign td { font-weight: bold; vertical-
align: bottom; }
31 if (intval(
$path) > 0)
33 if ($arFile = CFile::GetFileArray(
$path))
34 $path = $arFile[
'SRC'];
38 if (!in_array($backgroundStyle,
array(
'none',
'tile',
'stretch')))
39 $backgroundStyle =
'none';
43 switch ($backgroundStyle)
53 "url('%s') 0 0 repeat-y; background-size: %.02fpt %.02fpt",
72<body
style=
"margin: 0pt; padding: 0pt;"<?
if (
$_REQUEST[
'PRINT'] ==
'Y') { ?> onload=
"setTimeout(window.print, 0);"<? } ?>>
74<div
style=
"margin: 0pt; padding: <?=join('pt ', $margin); ?>pt; width: <?=$width; ?>pt; background: <?=$background; ?>">
77 "Рахунок на оплату №%s від %s",
93 <td>Постачальник:</td>
94 <td
style=
"padding-left: 4pt; ">
113 <tr><td>&
nbsp;</td><td>&
nbsp;</td></tr>
116 <td
style=
"padding-left: 4pt; ">
141 array(
"DATE_INSERT" =>
"ASC",
"NAME" =>
"ASC"),
144 array(
"ID",
"PRICE",
"CURRENCY",
"QUANTITY",
"NAME",
"VAT_RATE",
"MEASURE_NAME")
157 $arProdProps =
array();
159 array(
"SORT" =>
"ASC",
"ID" =>
"DESC"),
161 "BASKET_ID" => $arBasket[
"ID"],
162 "!CODE" =>
array(
"CATALOG.XML_ID",
"PRODUCT.XML_ID")
166 array(
"ID",
"BASKET_ID",
"NAME",
"VALUE",
"CODE",
"SORT")
168 while ($arBasketProps = $dbBasketProps->GetNext())
170 if (!empty($arBasketProps) && $arBasketProps[
"VALUE"] !=
"")
171 $arProdProps[] = $arBasketProps;
173 $arBasket[
"PROPS"] = $arProdProps;
175 $productName = $arBasket[
"NAME"];
176 if ($productName ==
"OrderDelivery")
177 $productName =
"Доставка";
178 else if ($productName ==
"OrderDiscount")
179 $productName =
"Знижка";
189 $arBasket[
"PRICE"] * $arBasket[
"QUANTITY"],
190 $arBasket[
"CURRENCY"],
196 foreach ($arBasket[
"PROPS"] as $vv)
199 $sum += doubleval($arBasket[
"PRICE"] * $arBasket[
"QUANTITY"]);
200 $vat = max(
$vat, $arBasket[
"VAT_RATE"]);
204 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"]) > 0)
208 $sDeliveryItem =
"Доставка";
209 if ($arDelivery_tmp[
"NAME"] <>
'')
210 $sDeliveryItem .= sprintf(
" (%s)", $arDelivery_tmp[
"NAME"]);
217 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"],
218 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
223 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"],
224 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
229 $sum += doubleval(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"]);
249 array(
"APPLY_ORDER" =>
"ASC"),
263 (
$arTaxList[
"IS_IN_PRICE"] ==
"Y") ?
"У тому числі " :
"",
271 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
279 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SUM_PAID"]) > 0)
289 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SUM_PAID"],
290 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
296 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"DISCOUNT_VALUE"]) > 0)
306 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"DISCOUNT_VALUE"],
307 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
319 $vat <= 0 ?
"Всього без ПДВ:" :
"Всього:",
321 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SHOULD_PAY"],
322 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
333<table
class=
"it" width=
"100%">
335 <td><nobr>№</nobr></td>
336 <td><nobr>Товар/Послуга</nobr></td>
337 <td><nobr>Кіл-сть</nobr></td>
338 <td><nobr>Од.</nobr></td>
339 <td><nobr><?
if (
$vat <= 0) { ?>Ціна без ПДВ<? }
else { ?>Ціна з ПДВ<? } ?>, <?=
$currency; ?></nobr></td>
340 <?
if ($showVat) { ?>
341 <td><nobr>Ставка ПДВ</nobr></td>
343 <td><nobr><?
if (
$vat <= 0) { ?>Сума без ПДВ<? }
else { ?>Сума з ПДВ<? } ?>, <?=
$currency; ?></nobr></td>
361 style=
"word-break: break-word; word-wrap: break-word; <? if ($accumulated) {?>border-width: 0pt 1pt 0pt 0pt; <? } ?>"
362 <?
if ($accumulated) { ?>colspan=
"<?=($accumulated+1); ?>"<? $accumulated = 0; } ?>>
364 <?
if (isset($arProps[
$n]) && is_array($arProps[
$n])) { ?>
365 <?
foreach ($arProps[
$n] as $property) { ?>
367 <small><?=$property; ?></small>
374 <?
for (
$i = 3;
$i <= 7;
$i++) { ?>
376 <?
if (
$i != 6 || $showVat || is_null(
$arCells[
$n][2])) { ?>
378 <?
if ($accumulated) { ?>
379 style=
"border-width: 0pt 1pt 0pt 0pt"
380 colspan=
"<?=(($i == 6 && !$showVat) ? $accumulated : $accumulated+1); ?>"
381 <? $accumulated = 0; } ?>>
399 "Всього найменувань: %s, на суму %s",
401 ($arOrder[
"CURRENCY"] ==
"UAH")
403 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SHOULD_PAY"],
405 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"]
408 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SHOULD_PAY"],
409 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
418 ($arOrder[
"CURRENCY"] ==
"UAH")
429<b>Умови та коментарі</b>
433 array(
'#</div>\s*<div[^>]*>#i',
'#</?div>#i'),
array(
'<br>',
'<br>'),
435 ),
'',
array(), 0)); ?>
441 array(
'#</div>\s*<div[^>]*>#i',
'#</?div>#i'),
array(
'<br>',
'<br>'),
443 ),
'',
array(), 0)); ?>
449<div
style=
"border-bottom: 1pt solid #000000; width:100%; ">&
nbsp;</div>
455 'style="position: absolute; left: 40pt; "'
461<div
style=
"position: relative">
464 <td>Виписав(ла):&
nbsp;</td>
465 <td
style=
"width: 160pt; border: 1pt solid #000000; border-width: 0pt 0pt 1pt 0pt; text-align: center; ">
470 <td
style=
"width: 160pt; ">
472 style=
"border: none; background: none; width: 100%; "
474 value=
"<?=CSalePaySystemAction::GetParamValue("SELLER_ACC
", false); ?>"
478 <td>Посада:&
nbsp;</td>
479 <td
style=
"width: 160pt; border: 1pt solid #000000; border-width: 0pt 0pt 1pt 0pt; ">
481 style=
"border: none; background: none; width: 100%; text-align: center; "
483 value=
"<?=CSalePaySystemAction::GetParamValue("SELLER_ACC_POS
", false); ?>"
494<div
style=
"text-align: right; "><b><?=sprintf(
495 "Рахунок дійсний до сплати до %s",
static GetParamValue($key, $defaultValue=null)
static ShowImage($strImage, $iMaxW=0, $iMaxH=0, $sParams=null, $strImageUrl="", $bPopup=false, $sPopupTitle=false, $iSizeWHTTP=0, $iSizeHHTTP=0, $strImageUrlTemplate="")
static GetList($arOrder=array(), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
static GetPropsList($arOrder=array(), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
static GetList($arOrder=array("TAX_NAME"=> "ASC"), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
bx_acc_lim_group_list limitGroupList[] multiple<?=$group[ 'ID']?> ID selected margin top
<? if( $useEditor3):?>< tr class="heading">< td colspan="2"><? echo GetMessage("FILEMAN_OPTION_SPELL_SET");?></td ></tr ><? if(function_exists( 'pspell_config_create')):$use_pspell_checked=(COption::GetOptionString( $module_id, "use_pspell", "Y")=="Y") ? "checked" :"";?>< tr >< td valign="top">< label for="use_pspell"><?echo GetMessage("FILEMAN_OPTION_USE_PSPELL");?></label >< br >< a title="<?echo GetMessage("FILEMAN_OPTION_ADDISH_DICS_TITLE");?> http
ConvertDateTime($datetime, $to_format=false, $from_site=false, $bSearchInSitesOnly=false)
htmlspecialcharsback($str)
HTMLToTxt($str, $strSiteUrl="", $aDelete=[], $maxlen=70)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
<? endif;?> window document title
for( $i=0, $max=count( $arBasketIDs);$i< $max;$i++) if($arOrder['DELIVERY_VAT_RATE'] > 0) if(is_array( $arBasketOrder) &&!empty( $arBasketOrder)) if(floatval($arOrder["DISCOUNT_VALUE"]) > 0) $arTaxList
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
if( $arBasket=$dbBasket->Fetch()) if($vat > 0) $rowsCnt
if(CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE", false)) $dbBasket
if(CSalePaySystemAction::GetParamValue('BACKGROUND', false)) $margin
SaleFormatCurrency($fSum, $strCurrency, $OnlyValue=false, $withoutFormat=false)
const SALE_VALUE_PRECISION
Number2Word_Rus($source, $IS_MONEY="Y", $currency="")
$GLOBALS['_____370096793']