1b.app
Link copied -

Document templates of the UPD RF

A big request to put html document templates in the public domain
Now the UPD RF template is very much needed. This is the main accounting document of the Russian Federation.
I did the invoice template, but the UPD template is complicated in cell layout. In RetailCRM and Megaplan (they have their drawbacks), templates of the main accounting documents are in the help. I took a template from there in Word format, opened it in a browser, copied the html code. But it takes a lot of time to adjust the layout of the cells to an exemplary look.
Substituting values is easy, but the average user does not need to do markup.
This template is needed for every user in Russia. Please share! :)
Original question is available on version: ru

Answers:

Who has, please share the UPD template
Here is the html invoice template, classic RF invoice:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="main">
<table style="border-collapse: collapse; width: 100%; font-family: Arial;" border="2" width="100%" cellspacing="2" cellpadding="2">
<body>
<tr>
<td style="min-height: 13mm; width: 57.947%;" colspan="2" rowspan="2">
<table style="height: 13mm;" border="0" width="100%" cellspacing="0" cellpadding="0">
<body>
<tr>
<td valign="top"><span style="font-size: 14px; line-height: 115%; font-family: arial, helvetica, sans-serif;">Branch POINT OF PAO BANK "FC OTKRITIE"</ span></td>
</tr>
<tr>
<td style="height: 3mm;" align="bottom">
<div style="font-size: 10pt;">Beneficiary's bank</div>
</td>
</tr>
</tbody>
</table>
</td>
<td style="min-height: 7mm; height: auto; width: 13.5762%;">
<div>BIK</div>
</td>
<td style="vertical-align: top; width: 28.3664%;" rowspan="2">
<div style="height: 7mm; line-height: 7mm; vertical-align: middle;">044525999</div>
<div></div>
</td>
</tr>
<tr>
<td style="width: 13.5762%;">
<div>Count №</div>
</td>
</tr>
<tr>
<td style="min-height: 6mm; height: auto; width: 26.1589%;">
<div>TIN</div>
</td>
<td style="min-height: 6mm; height: auto; width: 31.7881%;">
<div>Checkpoint</div>
</td>
<td style="min-height: 19mm; height: auto; vertical-align: top; width: 13.5762%;" rowspan="2">
<div>Count №</div>
</td>
<td style="min-height: 19mm; height: auto; vertical-align: top; width: 28.3664%;" rowspan="2">
<div></div>
</td>
</tr>
<tr>
<td style="min-height: 13mm; height: auto; width: 57.947%;" colspan="2">
<table style="height: 13mm; width: 536px;" border="0" cellspacing="0" cellpadding="0">
<body>
<tr>
<td style="width: 531.111px;" align="top">
<div></div>
</td>
</tr>
<tr>
<td style="height: 3mm; width: 531.111px;" align="bottom">
<div style="font-size: 10pt;">Receiver</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br />
<div style="font-weight: bold; font-size: 25pt; padding-left: 5px; font-family: Arial;">Invoice # {documentNumber} from {orderCdateMonth}</div>
<br />
<div style="background-color: #000000; width: 100%; font-size: 1px; height: 2px;"> </div>
<table style="font-family: Arial;" width="100%">
<body>
<tr>
<td style="width: 30mm; vertical-align: top;">
<div style="padding-left: 2px;">Provider:</div>
</td>
<td>
<div style="font-weight: bold; padding-left: 2px;"> </div>
</td>
</tr>
<tr>
<td style="width: 30mm; vertical-align: top;">
<div style="padding-left: 2px;">Customer:</div>
</td>
<td>
<div style="font-weight: bold; padding-left: 2px;">
<p style="font-weight: 400;"><strong>{customUserLegal_Russia_name}, TIN {customUserLegal_Russia_inn}, KPP {customUserLegal_Russia_kpp}, {customUserLegal_Russia_address}</strong></p>
<p style="font-weight: 400;"> </p>
<p style="font-weight: 400;"><strong>{clientnamefirst} {clientnamemiddle} {clientnamelast}</strong><br /><strong>{clientphone}</strong><br /><strong> {clientemail}</strong><br /><strong>{clientaddress}</strong></p>
</div>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; width: 100%; font-family: Arial;" border="2" width="100%" cellspacing="2" cellpadding="2">
<head>
<tr>
<th style="width: 13mm;">#</th>
<th>Goods (works, services)</th>
<th style="width: 20mm;">Quantity</th>
<th style="width: 17mm;">Unit</th>
<th style="width: 27mm;">Price</th>
<th style="width: 27mm;">Sum</th>
</tr>
</thing>
<body>
<tr>
<td style="width: 13mm; text-align: center;">{row:product_index}</td>
<td>{row:product_name}</td>
<td style="width: 20mm; text-align: right;">{row:product_count}</td>
<td style="width: 17mm;">{row:product_unit}</td>
<td style="width: 27mm; text-align: right;"><span style="text-align: start;">{row:product_productprice}</span></td>
<td style="width: 27mm; text-align: right;"><span style="text-align: start;">{row:product_sum}</span></td>
</tr>
</tbody>
</table>
<table style="font-family: Arial;" border="0" width="100%" cellspacing="1" cellpadding="1">
<body>
<tr>
<td> </td>
<td style="width: 27mm; font-weight: bold; text-align: right;">Total:</td>
<td style="width: 27mm; font-weight: bold; text-align: right;"><strong><span style="text-align: start;">{ordersumwithouttax}</span></strong> </td>
</tr>
<tr>
<td> </td>
<td style="width: 27mm; font-weight: bold; text-align: right;">Total VAT:</td>
<td style="width: 27mm; font-weight: bold; text-align: right;">without VAT</td>
</tr>
<tr>
<td> </td>
<td style="width: 37mm; font-weight: bold; text-align: right;">Total payable:</td>
<td style="width: 27mm; font-weight: bold; text-align: right;"><strong><span style="text-align: start;">{ordersumwithouttax}</span></strong> </td>
</tr>
</tbody>
</table>
<br />
<div style="font-family: Arial;">Total {countOrderProducts} items worth <span style="font-family: Verdana, Arial, Helvetica, sans-serif;">{ordersumwithouttax}</span> rub. <br /><strong>{orderProductsSumWithTax_en}</strong></div>
<br /><br />
<div style="background-color: #000000; width: 100%; font-size: 1px; height: 2px;"> </div>
<br />
<div style="font-family: Arial; font-size: 10pt;"><strong>The invoice is valid for three (3) business days.</strong></div>
<div style="font-family: Arial; font-size: 10pt;"> </div>
<span style="font-family: arial, helvetica, sans-serif;">Head ______________________ Chief Accountant ______________________ </span></div>
<div class="main"> </div>
<div class="main"><span style="text-align: center; background-color: initial; font-family: arial, helvetica, sans-serif;"> M.p.</span><br / <br /><br /><br /><br /><br /><br /><br /><br /><br /></div>
</body>
</html>
21.09.2020, 14:56
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment