Skip to content

Commit

Permalink
6.11.1
Browse files Browse the repository at this point in the history
накопившиеся  исправления
  • Loading branch information
leon-mbs committed Jul 12, 2024
1 parent 9a7eeb9 commit 61bb77f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
2 changes: 2 additions & 0 deletions db/update/update6100to6110.sql
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ CREATE TABLE custacc (
KEY document_id (document_id)
) ENGINE = INNODB DEFAULT CHARSET = utf8;

DROP VIEW IF EXISTS custacc_view;

CREATE
VIEW custacc_view
AS
Expand Down
3 changes: 2 additions & 1 deletion www/app/pages/report/paybalance.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use App\Entity\Pay;

/**
* Финансовые результаты
* Доходы и расходы
*/
class PayBalance extends \App\Pages\Base
{
Expand Down Expand Up @@ -203,6 +203,7 @@ private function generateReport() {
"_detail" => $detail,
"_detail2" => $detail2,
"_detail3" => $detail3,
"is3" => count($detail3) >0,
'tin' => H::fa($tin),
'tout' => H::fa($tout),
'total' => H::fa($total)
Expand Down
2 changes: 1 addition & 1 deletion www/app/system.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
class System
{
public const CURR_VERSION= "6.11.0";
public const CURR_VERSION= "6.11.1";
public const REQUIRED_DB= "6.11.0";

private static $_options = array(); // для кеширования
Expand Down
2 changes: 1 addition & 1 deletion www/templates/pages/report/paybalance.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

</head>
<body>
<div class="row">
<div class="row mb-4">
<div class="col-12 col-lg-10 col-xl-8">
<h3>Прибутки та видатки </h3>
<div class="navbar nav">
Expand Down
28 changes: 15 additions & 13 deletions www/templates/printforms/doc/serviceact.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
</tr>
{{#isfirm}}
<tr>
<td colspan="5">
<td colspan="6">
Виконавець: {{firm_name}}
</td>

</tr>
{{/isfirm}}
{{#iscontract}}
<tr>
<td colspan="5">
<td colspan="6">
Договір: {{contract}} вiд {{createdon}}
</td>

Expand All @@ -25,14 +25,14 @@

{{#isdevice}}
<tr>
<td colspan="5">
<td colspan="6">
Виріб, матеріали: {{device}} с/н: {{devsn}}
</td>

</tr>
{{/isdevice}}
<tr style="font-weight: bolder;">
<td colspan="5" align="center">
<td colspan="6" align="center">

{{#isfinished}} Акт виконаних робіт {{/isfinished}}
{{^isfinished}} Квитанція до {{/isfinished}}
Expand All @@ -47,6 +47,7 @@
<th width="20" style="border: 1px solid black;">№</th>
<th style="border: 1px solid black;">Найменування</th>
<th style="border: 1px solid black;"> </th>
<th style="border: 1px solid black;" align="right">Кількість</th>
<th style="border: 1px solid black;" align="right">Вартість</th>
<th style="border: 1px solid black;" align="right">Сума</th>

Expand All @@ -58,55 +59,56 @@

<td>{{desc}}</td>

<td align="right">{{qty}}</td>
<td align="right">{{price}}</td>
<td align="right">{{amount}}</td>

</tr>
{{/_detail}}
<tr style="font-weight: bolder;">
<td colspan="4" style="border-top: 1px solid black;" align="right">Всього:</td>
<td colspan="5" style="border-top: 1px solid black;" align="right">Всього:</td>
<td style="border-top: 1px solid black;" align="right">{{total}}</td>
</tr>
{{#totaldisc}}
<tr style="font-weight: bolder;">
<td colspan="4" align="right">Знижка:</td>
<td colspan="5" align="right">Знижка:</td>
<td align="right">{{totaldisc}}</td>
</tr>
{{/totaldisc}}
{{#bonus}}
<tr style="font-weight: bolder;">
<td colspan="4" align="right">Списані бонуси:</td>
<td colspan="5" align="right">Списані бонуси:</td>
<td align="right">{{bonus}}</td>
</tr>
{{/bonus}}
{{#payamount}}
<tr style="font-weight: bolder;">
<td colspan="4" align="right">До сплати:</td>
<td colspan="5" align="right">До сплати:</td>
<td align="right">{{payamount}}</td>
</tr>
{{/payamount}}
{{#payed}}
<tr style="font-weight: bolder;">
<td colspan="4" align="right">Оплата:</td>
<td colspan="5" align="right">Оплата:</td>
<td align="right">{{payed}}</td>
</tr>
{{/payed}}
<tr>
<td colspan="5"><br>
<td colspan="6"><br>
Гарантія: {{gar}}
</td>
</tr>
<tr>
<td colspan="5" ><small>{{{devdesc}}}</small></td>
<td colspan="6" ><small>{{{devdesc}}}</small></td>
</tr>
<tr>
<td colspan="5"><small>{{{notes}}}</small></td>
<td colspan="6"><small>{{{notes}}}</small></td>
</tr>
{{#payamount}}

{{#totalstr}}
<tr>
<td colspan="5">До сплати <b>{{totalstr}}</b></td>
<td colspan="6">До сплати <b>{{totalstr}}</b></td>
</tr>
{{/totalstr}}

Expand Down
9 changes: 6 additions & 3 deletions www/templates/printforms/report/paybalance.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@
<td align="right">{{total}}</td>
<td></td>
</tr>

{{#is3}}

</tr>
<td colspan="3"> <br>
<b>Деталiзацiя по ТМЦ</b>
</td> -
<b>Деталiзацiя по ТМЦ </b>
</td>
</tr>

{{#_detail3}}
Expand All @@ -104,7 +107,7 @@
<td></td>
</tr>
{{/_detail3}}

{{/is3}}
</table>


0 comments on commit 61bb77f

Please sign in to comment.