} ?> </table> <br> <b><?php echo sprintf("Всього найменувань: %s, на суму %s", $items, $arOrder["CURRENCY"] == "UAH" ? Number2Word_Rus($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], "Y", $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"]) : SaleFormatCurrency($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false)); ?> </b> <br> <? if ($vat > 0) { ?> <b><?php echo sprintf("У т.ч. ПДВ: %s", $arOrder["CURRENCY"] == "UAH" ? Number2Word_Rus($orderTax, "Y", $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"]) : SaleFormatCurrency($orderTax, $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false)); ?> </b> <? } else { ?> <b>Без ПДВ</b> <? } ?> <br> <br> <div style="border-bottom: 1pt solid #000000; width:100%; "> </div> <? if (!$blank) { ?> <div style="position: relative; "><?php echo CFile::ShowImage(CSalePaySystemAction::GetParamValue("PATH_TO_STAMP"), 0, 0, 'style="position: absolute; left: 40pt; "'); ?> </div>
margin-left:0cm;margin-bottom:.0001pt;line-height:133%'> </p> </td> <td width=116 colspan=2 valign=top style='width:87.0pt;border:none; border-bottom:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:10.0pt'> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:normal'> </p> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:normal'> </p> </td> </tr> <tr style='height:19.0pt'> <td width=481 colspan=2 valign=top style='width:361.0pt;padding:0cm 2.0pt 0cm 2.0pt; height:19.0pt'> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'>Всего отпущено <?php echo htmlspecialcharsbx(Number2Word_Rus($n - 1, false)) . " порядков" . PrintRussian($n - 1, array("ый", "ых", "ых")) . " номер" . PrintRussian($n - 1, array("", "а", "ов")); ?> наименований </p> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'>на сумму <a name=ТекстовоеПоле11></a><?php echo htmlspecialcharsbx(Number2Word_rus($total_sum)); ?> </p> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'> </p> </td> <td width=409 colspan=6 valign=top style='width:307.0pt;border:none; padding:0cm 2.0pt 0cm 2.0pt;height:19.0pt'> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'>кем, кому
$GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"] ) : SaleFormatCurrency( $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false ) ))); $pdf->Ln(); if ($vat > 0) { $pdf->Write(15, CSalePdf::prepareToPdf(sprintf( "У т.ч. ПДВ: %s", ($arOrder["CURRENCY"] == "UAH") ? Number2Word_Rus($orderTax, "Y", $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"]) : SaleFormatCurrency($orderTax, $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false) ))); } else { $pdf->Write(15, CSalePdf::prepareToPdf("Без ПДВ")); } $pdf->Ln(); $pdf->Ln(); if (CSalePaySystemAction::GetParamValue("COMMENT1") || CSalePaySystemAction::GetParamValue("COMMENT2")) { $pdf->Write(15, CSalePdf::prepareToPdf('Умови та коментарі')); $pdf->Ln();
$y0 = $margin['top']; } for ($i = is_null($arCells[$n][1]) ? 6 : 0; $i <= 7; $i++) { if ($vat > 0 || $i != 5) { $pdf->Line(${"x{$i}"}, $y0, ${"x{$i}"}, $y5); } } $pdf->Line(!is_null($arCells[$n][1]) ? $x0 : $x6, $y5, $x7, $y5); } $pdf->Ln(); $pdf->SetFont($fontFamily, '', $fontSize); $pdf->Write(15, CSalePdf::prepareToPdf(sprintf("Всего наименований %s, на сумму %s", $items, SaleFormatCurrency($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false)))); $pdf->Ln(); $pdf->SetFont($fontFamily, 'B', $fontSize); if (in_array($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], array("RUR", "RUB"))) { $pdf->Write(15, CSalePdf::prepareToPdf(Number2Word_Rus($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"]))); } else { $pdf->Write(15, CSalePdf::prepareToPdf(SaleFormatCurrency($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false))); } $pdf->Ln(); $pdf->Ln(); if (CSalePaySystemAction::GetParamValue("COMMENT1", false) || CSalePaySystemAction::GetParamValue("COMMENT2", false)) { $pdf->Write(15, CSalePdf::prepareToPdf('Условия и комментарии')); $pdf->Ln(); $pdf->SetFont($fontFamily, '', $fontSize); if (CSalePaySystemAction::GetParamValue("COMMENT1", false)) { $pdf->Write(15, HTMLToTxt(preg_replace(array('#</div>\\s*<div[^>]*>#i', '#</?div>#i'), array('<br>', '<br>'), CSalePdf::prepareToPdf(CSalePaySystemAction::GetParamValue("COMMENT1", false))), '', array(), 0)); $pdf->Ln(); $pdf->Ln(); } if (CSalePaySystemAction::GetParamValue("COMMENT2", false)) {
$html .= '</td>'; $html .= '<td>'; $html .= '<p>' . number_format($_SESSION["ORDER_ITEM"]['price'], 0, '.', ' ') . '</p>'; $html .= '</td>'; $html .= '</tr>'; $html .= '<tr>'; $html .= '<td colspan="2">'; $html .= '<p style="font-weight:bold;text-align:right;">Итого:</p>'; $html .= '</td>'; $html .= '<td>'; $html .= '<p style="font-weight:bold;">' . number_format($_SESSION["ORDER_ITEM"]['price'], 0, '.', ' ') . '</p>'; $html .= '</td>'; $html .= '</tr>'; $html .= '</table>'; $html .= '<br>'; $html .= '<p>Итого к оплате без НДС*: ' . number_format($_SESSION["ORDER_ITEM"]['price'], 0, '.', ' ') . ' (' . Number2Word_Rus($_SESSION["ORDER_ITEM"]['price'], 'N') . ') белорусских рублей.</p>'; $html .= '<p style="font-size:80%;">* Стоимость услуг указана без НДС, Исполнитель является плательщиком налогов по УСН.</p>'; $html .= '<table style="width:100%;">'; $html .= '<tr>'; $html .= '<td style="width:50%;background:url(/bitrix/templates/goodidea/images/pechat.jpg) no-repeat 0 0;height:190px;padding-left:70px;vertical-align:top;">'; $html .= ''; $html .= '<p>Исполнитель:</p>'; $html .= '<br><br><br><br>'; $html .= '<p>________________ Р.В. Нестерович</p>'; $html .= '<p>м.п.</p>'; $html .= '<br><br>'; $html .= '<p>' . CIBlockFormatProperties::DateFormat('«j» F Y', time()) . 'г.</p>'; $html .= '</td>'; $html .= '<td style="width:50%;height:190px;padding-left:70px;vertical-align:top;">'; $html .= ''; $html .= '<p>Заказчик:</p>';
if ($y0 > $y5) { $y0 = $margin['top']; } for ($i = is_null($arCells[$n][1]) ? 6 : 0; $i <= 7; $i++) { if ($showVat || $i != 5) { $pdf->Line(${"x{$i}"}, $y0, ${"x{$i}"}, $y5); } } $pdf->Line(!is_null($arCells[$n][1]) ? $x0 : $x6, $y5, $x7, $y5); } $pdf->Ln(); $pdf->SetFont($fontFamily, 'B', $fontSize); $pdf->Write(15, CSalePdf::prepareToPdf(sprintf("Всього найменувань: %s, на суму %s", $items, $arOrder["CURRENCY"] == "UAH" ? Number2Word_Rus($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], "Y", $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"]) : SaleFormatCurrency($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false)))); $pdf->Ln(); if ($vat > 0) { $pdf->Write(15, CSalePdf::prepareToPdf(sprintf("У т.ч. ПДВ: %s", $arOrder["CURRENCY"] == "UAH" ? Number2Word_Rus($orderTax, "Y", $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"]) : SaleFormatCurrency($orderTax, $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], false)))); } else { $pdf->Write(15, CSalePdf::prepareToPdf("Без ПДВ")); } $pdf->Ln(); $pdf->Ln(); if (CSalePaySystemAction::GetParamValue("COMMENT1", false) || CSalePaySystemAction::GetParamValue("COMMENT2", false)) { $pdf->Write(15, CSalePdf::prepareToPdf('Умови та коментарі')); $pdf->Ln(); $pdf->SetFont($fontFamily, '', $fontSize); if (CSalePaySystemAction::GetParamValue("COMMENT1", false)) { $pdf->Write(15, HTMLToTxt(preg_replace(array('#</div>\\s*<div[^>]*>#i', '#</?div>#i'), array('<br>', '<br>'), CSalePdf::prepareToPdf(CSalePaySystemAction::GetParamValue("COMMENT1", false))), '', array(), 0)); $pdf->Ln(); $pdf->Ln(); } if (CSalePaySystemAction::GetParamValue("COMMENT2", false)) {
margin-left:0cm;margin-bottom:.0001pt;line-height:133%'> </p> </td> <td width=116 colspan=2 valign=top style='width:87.0pt;border:none; border-bottom:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:10.0pt'> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:normal'> </p> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:normal'> </p> </td> </tr> <tr style='height:19.0pt'> <td width=481 colspan=2 valign=top style='width:361.0pt;padding:0cm 2.0pt 0cm 2.0pt; height:19.0pt'> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'>Всего отпущено  <?php echo htmlspecialcharsbx(Number2Word_Rus($n - 1, false)) . " порядков" . PrintRussian($n - 1, array("ый", "ых", "ых")) . " номер" . PrintRussian($n - 1, array("", "а", "ов")); ?> наименований </p> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'>на сумму   <a name=ТекстовоеПоле11></a><?php echo htmlspecialcharsbx(Number2Word_rus($total_sum)); ?> </p> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'> </p> </td> <td width=409 colspan=6 valign=top style='width:307.0pt;border:none; padding:0cm 2.0pt 0cm 2.0pt;height:19.0pt'> <p class=Normal style='margin-top:1.0pt;margin-right:0cm;margin-bottom:0cm; margin-left:0cm;margin-bottom:.0001pt;line-height:133%'>кем, кому
?> <tr> <td align="right" bgcolor="#ffffff" colspan="4" style="border: 1pt solid #000000; border-right:none; border-top:none;">Итого:</td> <td align="right" bgcolor="#ffffff" style="border: 1pt solid #000000; border-top:none;" nowrap><?php echo SaleFormatCurrency($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], true); ?> </td> </tr> </table> <?php } ?> <p><b>Итого к оплате:</b> <?php if ($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"] == "RUR" || $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"] == "RUB") { echo Number2Word_Rus($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"]); } else { echo SaleFormatCurrency($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"]); } ?> </p> <p> <div align="right" style="padding-right:30px;"><?php echo CSalePaySystemAction::GetParamValue("DATE_INSERT"); ?> </div><br /> <?php $stamp = CSalePaySystemAction::GetParamValue("PATH_TO_STAMP"); if (strlen($stamp) > 0) { if (file_exists($_SERVER["DOCUMENT_ROOT"] . $stamp) && is_file($_SERVER["DOCUMENT_ROOT"] . $stamp)) { list($width, $height, $type, $attr) = CFile::GetImageSize($_SERVER["DOCUMENT_ROOT"] . $stamp);
?> <tr> <td align="right" bgcolor="#ffffff" colspan="4" style="border: 1pt solid #000000; border-right:none; border-top:none;">Итого:</td> <td align="right" bgcolor="#ffffff" style="border: 1pt solid #000000; border-top:none;"><?php echo number_format($total_sum, 2, ',', ' '); ?> </td> </tr> </table> <?php //endif ?> <p><b>Итого к оплате:</b> <?php if ($arOrder["CURRENCY"] == "RUR" || $arOrder["CURRENCY"] == "RUB") { echo Number2Word_Rus($arOrder["PRICE"]); } else { echo SaleFormatCurrency($arOrder["PRICE"], $arOrder["CURRENCY"]); } ?> .</p> <p><font size="2">В случае непоступления средств на расчетный счет продавца в течение пяти банковских дней со дня выписки счета, продавец оставляет за собой право пересмотреть отпускную цену товара в рублях пропорционально изменению курса доллара и выставить счет на доплату.<br><br> В платежном поручении обязательно указать - "Оплата по счету № <?php echo $ORDER_ID; ?> от <?php echo $arOrder["DATE_INSERT_FORMAT"];
border-bottom:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:normal'> </p> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:normal'> </p> </td> <td width=116 colspan=2 valign=top style='width:87.0pt;border:none; padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:normal'> </p> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:normal'> </p> </td> </tr> <tr style='height:9.0pt'> <td width=481 colspan=2 valign=top style='width:361.0pt;border:none; border-bottom:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:133%'>и содержит <a name=ТекстовоеПоле5></a><?php echo htmlspecialcharsbx(Number2Word_Rus($n - 1, false)); ?> </p> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:133%'> </p> </td> <td width=409 colspan=6 valign=top style='width:307.0pt;border:none; border-bottom:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:133%'>порядков<?php echo PrintRussian($n - 1, array("ый", "ых", "ых")); ?> номер<?php echo PrintRussian($n - 1, array("", "а", "ов")); ?> записей</p> <p class=Normal style='margin:0cm;margin-bottom:.0001pt;line-height:133%'> </p> </td>
<?php if ($arOrder["CURRENCY"] == "UAH" || $arOrder["CURRENCY"] == "UAH") { echo Number2Word_Rus($sum, "Y", $arOrder["CURRENCY"]); } else { echo SaleFormatCurrency($arOrder["PRICE"], $arOrder["CURRENCY"]); } ?> </span><br> <?php if ($orderTax > 0) { ?> <span style="font-weight: bold;">У т.ч. ПДВ: <?php if ($arOrder["CURRENCY"] == "UAH" || $arOrder["CURRENCY"] == "UAH") { echo Number2Word_Rus($orderTax, "Y", $arOrder["CURRENCY"]); } else { echo SaleFormatCurrency($orderTax, $arOrder["CURRENCY"]); } ?> </span> <?php } ?> <br> <div style="border-bottom: 2px solid #000;width:100%;"> </div> <br> <span><b>Виписав(ла):</b> <input size="25" style="border:0px solid #000;font-size:16px;font-style:bold;text-decoration: underline;" type="text" value="_______________________ "></span>