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.it td { border: 1pt solid #000000; padding: 0pt 3pt; }
26 if (intval(
$path) > 0)
28 if ($arFile = CFile::GetFileArray(
$path))
29 $path = $arFile[
'SRC'];
33 if (!in_array($backgroundStyle,
array(
'none',
'tile',
'stretch')))
34 $backgroundStyle =
'none';
38 switch ($backgroundStyle)
48 "url('%s') 0 0 repeat-y; background-size: %.02fpt %.02fpt",
68 style=
"margin: 0pt; padding: <?=join('pt ', $margin); ?>pt; width: <?=$width; ?>pt; background: <?=$background; ?>"
70 onload=
"setTimeout(window.print, 0);"
77 'style="float: left; padding-right: 5pt; "'
80<div
style=
"font-size: 3em; float: left; ">
83<div
style=
"clear: both; height: 5pt; "></div>
87<span
style=
"text-decoration: underline">
115<span
style=
"font-size: 2em"><b>Rechnung</b></span>
122 <tr
style=
"font-weight: bold">
129 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"USER_ID"]
131 <td
align=
"right"><?=sprintf(
137<small><b>Bitte bei Zahlungen und Schriftverkehr angeben!</b></small>
146 array(
"NAME" =>
"ASC"),
161 $arProdProps =
array();
163 array(
"SORT" =>
"ASC",
"ID" =>
"DESC"),
165 "BASKET_ID" => $arBasket[
"ID"],
166 "!CODE" =>
array(
"CATALOG.XML_ID",
"PRODUCT.XML_ID")
170 array(
"ID",
"BASKET_ID",
"NAME",
"VALUE",
"CODE",
"SORT")
172 while ($arBasketProps = $dbBasketProps->GetNext())
174 if (!empty($arBasketProps) && $arBasketProps[
"VALUE"] !=
"")
175 $arProdProps[] = $arBasketProps;
177 $arBasket[
"PROPS"] = $arProdProps;
190 $arBasket[
"VATLESS_PRICE"] * $arBasket[
"QUANTITY"],
191 $arBasket[
"CURRENCY"],
197 foreach ($arBasket[
"PROPS"] as $vv)
200 $sum += doubleval($arBasket[
"VATLESS_PRICE"] * $arBasket[
"QUANTITY"]);
201 $vat = max(
$vat, $arBasket[
"VAT_RATE"]);
202 if ($arBasket[
"VAT_RATE"] > 0)
204 if (!isset($vats[$arBasket[
"VAT_RATE"]]))
205 $vats[$arBasket[
"VAT_RATE"]] = 0;
206 $vats[$arBasket[
"VAT_RATE"]] += ($arBasket[
"PRICE"] - $arBasket[
"VATLESS_PRICE"]) * $arBasket[
"QUANTITY"];
211 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"]) > 0)
215 $sDeliveryItem =
"Schifffahrt";
216 if (strlen($arDelivery_tmp[
"NAME"]) > 0)
217 $sDeliveryItem .= sprintf(
" (%s)", $arDelivery_tmp[
"NAME"]);
224 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"] / (1 +
$vat),
225 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
230 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"] / (1 +
$vat),
231 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
237 doubleval(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"] / (1 +
$vat)),
243 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"] *
$vat / (1 +
$vat),
250 if (
$sum <
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE"])
267 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE"] -
$sum - array_sum($vats),
288 foreach ($vats as $vatRate => $vatSum)
302 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
311 array(
"APPLY_ORDER" =>
"ASC"),
325 (
$arTaxList[
"IS_IN_PRICE"] ==
"Y") ?
"inkl." :
"zzgl.",
331 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
338 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SUM_PAID"]) > 0)
348 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SUM_PAID"],
349 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
355 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"DISCOUNT_VALUE"]) > 0)
365 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"DISCOUNT_VALUE"],
366 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
380 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SHOULD_PAY"],
381 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
388<table
class=
"it" width=
"100%">
390 <td><nobr>Pos.</nobr></td>
391 <td><nobr>Leistung</nobr></td>
392 <td><nobr>Anzahl</nobr></td>
393 <td><nobr>Einheit</nobr></td>
394 <td><nobr>Einzelpreis</nobr></td>
395 <?
if (
$vat > 0) { ?>
396 <td><nobr>MwSt.</nobr></td>
398 <td><nobr>Gesamtpreis</nobr></td>
416 <?
if ($accumulated) {
417 ?>
style=
"border-width: 0pt 1pt 0pt 0pt" colspan=
"<?=($accumulated+1); ?>"<? $accumulated = 0;
420 <?
if (isset($arProps[
$n]) && is_array($arProps[
$n])) { ?>
421 <?
foreach ($arProps[
$n] as $property) { ?>
423 <small><?=$property; ?></small>
430 <?
for (
$i = 3;
$i <= 7;
$i++) { ?>
434 <?
if ($accumulated) { ?>
435 style=
"border-width: 0pt 1pt 0pt 0pt"
436 colspan=
"<?=(($i == 6 && $vat <= 0) ? $accumulated : $accumulated+1); ?>"
437 <? $accumulated = 0; } ?>>
459 array(
'#</div>\s*<div[^>]*>#i',
'#</?div>#i'),
array(
'<br>',
'<br>'),
461 ),
'',
array(), 0)); ?>
467 array(
'#</div>\s*<div[^>]*>#i',
'#</?div>#i'),
array(
'<br>',
'<br>'),
469 ),
'',
array(), 0)); ?>
480 'style="position: absolute; left: 40pt; "'
483<div
style=
"position: relative">
487 <td valign>Geschдftsfьhrer</td>
488 <td
style=
"width: 160pt; border: 1pt solid #000000; border-width: 0pt 0pt 1pt 0pt; text-align: center; ">
497 <tr><td colspan=
"3">&
nbsp;</td></tr>
502 <td
style=
"width: 160pt; border: 1pt solid #000000; border-width: 0pt 0pt 1pt 0pt; text-align: center; ">
520<div
style=
"text-align: center">
579 ?><small><?=join(
' – ',
$bankData); ?></small>
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)
<? 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
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(!empty($sellerData)) $bankAccNo
if(!empty($bankData)) $sellerEuInn
if(CSalePaySystemAction::GetParamValue('BACKGROUND', false)) $margin
for($n=1; $n<=$rowsCnt; $n++) if(CSalePaySystemAction::GetParamValue("COMMENT1", false)||CSalePaySystemAction::GetParamValue("COMMENT2", false)) if(! $blank) if(CSalePaySystemAction::GetParamValue("SELLER_DIR_POS", false)) if(CSalePaySystemAction::GetParamValue("SELLER_ACC_POS", false)) $sellerName
if(!empty($sellerData)) $sellerPhone
SaleFormatCurrency($fSum, $strCurrency, $OnlyValue=false, $withoutFormat=false)
const SALE_VALUE_PRECISION
$GLOBALS['_____370096793']