260 lines
10 KiB
Smarty
260 lines
10 KiB
Smarty
|
|
<!-- jQuery -->
|
||
|
|
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.js"></script>
|
||
|
|
<!-- Tablesorter script: required -->
|
||
|
|
<script src="modules/EcmReports/TableSorterNew/js/jquery.tablesorter.js"></script>
|
||
|
|
<script src="modules/EcmReports/TableSorterNew/js/jquery.tablesorter.widgets.js"></script>
|
||
|
|
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||
|
|
<!-- Tablesorter: theme -->
|
||
|
|
<link class="theme" rel="stylesheet" href="modules/EcmReports/TableSorter/css/theme.blue.css">
|
||
|
|
|
||
|
|
<script type="text/javascript" src="modules/EcmReports/javascript/VatSalesRegister.js"></script>
|
||
|
|
|
||
|
|
<style type="text/css">
|
||
|
|
{literal}
|
||
|
|
thead, tfoot {font-weight: bold;}
|
||
|
|
{/literal}
|
||
|
|
|
||
|
|
{literal}
|
||
|
|
.additionalColumn {
|
||
|
|
background-color: #87CCED;
|
||
|
|
border-top: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sumRow {
|
||
|
|
background-color: #BDC7B5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.info {
|
||
|
|
width: 26%;
|
||
|
|
border: 1px dashed #ccc;
|
||
|
|
margin-top: 50px;
|
||
|
|
padding: 10px;
|
||
|
|
line-height: 25px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Extra selectors needed to override the default styling */
|
||
|
|
table.tablesorter tbody tr.normal-row td {
|
||
|
|
background: #EFEFF1;
|
||
|
|
color: #343432;
|
||
|
|
}
|
||
|
|
table.tablesorter tbody tr.alt-row td {
|
||
|
|
background: #FFF;
|
||
|
|
color: #343432;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Extra selectors needed to override the default styling */
|
||
|
|
table.tablesorter tbody tr.normal-row:hover td {
|
||
|
|
background: #E8E8E8;
|
||
|
|
color: #343432;
|
||
|
|
}
|
||
|
|
table.tablesorter tbody tr.alt-row:hover td {
|
||
|
|
background: #E8E8E8;
|
||
|
|
color: #343432;
|
||
|
|
}
|
||
|
|
table.tablesorter tbody tr.sumTr td {
|
||
|
|
background: #EBEBED;
|
||
|
|
color: black;
|
||
|
|
}
|
||
|
|
table.tablesorter tbody tr.sumTr:hover td {
|
||
|
|
background: #E0E0E2;
|
||
|
|
color: black;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
table.tablesorter thead th.groupActiveG {
|
||
|
|
border-top: 1px solid black;
|
||
|
|
border-bottom: 1px solid black;
|
||
|
|
border-left: 1px solid #687783;
|
||
|
|
background-color: #ABC3D7;
|
||
|
|
}
|
||
|
|
|
||
|
|
table.tablesorter thead th.groupActiveGL {
|
||
|
|
border-right: 1px solid black;
|
||
|
|
border-top: 1px solid black;
|
||
|
|
border-bottom: 1px solid black;
|
||
|
|
border-left: 1px solid #687783;
|
||
|
|
background-color: #ABC3D7;
|
||
|
|
}
|
||
|
|
|
||
|
|
table.tablesorter thead th.groupActive {
|
||
|
|
border-left: 1px solid black;
|
||
|
|
border-top: 1px solid black;
|
||
|
|
border-bottom: 1px solid black;
|
||
|
|
background-color: #ABC3D7;
|
||
|
|
}
|
||
|
|
|
||
|
|
table.tablesorter tbody td.align-right,
|
||
|
|
table.tablesorter tfoot th.align-right {
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
{/literal}
|
||
|
|
</style>
|
||
|
|
|
||
|
|
|
||
|
|
<table id="table" cellspacing="0" cellpadding="0" border="0">
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<img src="themes/Sugar/images/EcmProducts.gif" style="margin-top: 3px; margin-right: 3px;" alt="EcmProducts" width="16" border="0" height="16">
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<h2>{$MOD.LBL_REPORT} {$MOD.LBL_VAT_SALES_REGISTER} </h2>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<br />
|
||
|
|
|
||
|
|
<ul class="tablist" style="width:100%;">
|
||
|
|
|
||
|
|
</ul>
|
||
|
|
<form action="index.php" method="get" name="searchDailyReports">
|
||
|
|
<input type="hidden" name="module" value="EcmReports" />
|
||
|
|
<input type="hidden" name="action" value="VatSalesRegister" />
|
||
|
|
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||
|
|
|
||
|
|
<tr>
|
||
|
|
|
||
|
|
{* Search by date_from *}
|
||
|
|
<td class="dataLabel" width="5%" nowrap="nowrap">Data od: </td>
|
||
|
|
<td class="dataField" width="8%" nowrap="nowrap">
|
||
|
|
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="" value="{$date_from}" autocomplete="off">
|
||
|
|
<img id="date_from_trigger" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||
|
|
<script language="JavaScript" type="text/javascript">
|
||
|
|
Calendar.setup ({ldelim}
|
||
|
|
inputField : "date_from",
|
||
|
|
daFormat : "%d.%m.%Y",
|
||
|
|
button : "date_from_trigger",
|
||
|
|
singleClick : true,
|
||
|
|
dateStr : "",
|
||
|
|
step : 1
|
||
|
|
{rdelim}
|
||
|
|
);
|
||
|
|
</script>
|
||
|
|
</td>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
{* Search by date_to *}
|
||
|
|
<td class="dataLabel" width="5%" nowrap="nowrap">Data do: </td>
|
||
|
|
<td class="dataField" width="8%" nowrap="nowrap">
|
||
|
|
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="" tabindex="" size="11" maxlength="10" type="text">
|
||
|
|
<img src="themes/default/images/jscalendar.gif" alt="Enter Date" id="date_to_trigger" align="absmiddle" border="0">
|
||
|
|
<script language="JavaScript" type="text/javascript">
|
||
|
|
Calendar.setup ({ldelim}
|
||
|
|
inputField : "date_to",
|
||
|
|
daFormat : "%d.%m.%Y",
|
||
|
|
button : "date_to_trigger",
|
||
|
|
singleClick : true,
|
||
|
|
dateStr : "",
|
||
|
|
step : 1
|
||
|
|
{rdelim}
|
||
|
|
);
|
||
|
|
</script>
|
||
|
|
</td>
|
||
|
|
<td class="dataLabel" width="5%" nowrap="nowrap">Kategoria dokumentu</td>
|
||
|
|
<td class="dataField" width="6%" nowrap="nowrap">
|
||
|
|
<select name="category">
|
||
|
|
<option value="%" {if $category.0 eq '%'}selected="true"{/if}>wszystkie</option>
|
||
|
|
{ foreach from=$CATEGORY item=c key=k }
|
||
|
|
<option value="{$k}" {if $category.0 eq $k} selected="true" {/if} >{$c}</option>
|
||
|
|
{/foreach}
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
<td class="dataLabel" width="4%" nowrap="nowrap">Typ: </td>
|
||
|
|
<td class="dataField" width="6%" nowrap="nowrap">
|
||
|
|
<select name="type">
|
||
|
|
<option value="fv" { if $searchByType=="fvk" || $searchByType==""} selected="true" {/if} >FV</option>
|
||
|
|
<option value="fvk" { if $searchByType=="fvk"} selected {/if} >FVK</option>
|
||
|
|
<option value="pr" { if $searchByType=="pr"} selected {/if} >PR</option>
|
||
|
|
<option value="prk" { if $searchByType=="prk"} selected {/if} >PRK</option>
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
<td class="dataLabel" width="5%" nowrap="nowrap">Rodzaj dokumentu:</td>
|
||
|
|
<td class="dataField" width="8%" nowrap="nowrap">
|
||
|
|
<select name="pdfType">
|
||
|
|
<option value="K" {if $pdfType.K == true } selected="true"{/if}>Kraj</option>
|
||
|
|
<option value="U" {if $pdfType.U == true } selected="true"{/if}>Unia</option>
|
||
|
|
<option value="E" {if $pdfType.E == true } selected="true"{/if}>Eksport</option>
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||
|
|
<input class="button" name="clear" value="Wyczyść" type="button" onclick="location.href='index.php?module=EcmReports&action=VatSalesRegister';">
|
||
|
|
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button">
|
||
|
|
<input id="pdfEksport" class="button" name="importToPDF" value="{$MOD.BTN_PDF_EXPORT}" type="button">
|
||
|
|
|
||
|
|
<br><br>
|
||
|
|
|
||
|
|
{* Table headers *}
|
||
|
|
<table id="myTable" class="tablesorter-blue">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>{$MOD.LBL_DOC_NUMBER}</th>
|
||
|
|
<th>{$MOD.LBL_CREATE_LAB}</th>
|
||
|
|
<th>{$MOD.LBL_SALE_DATE}</th>
|
||
|
|
<th>{$MOD.LBL_CONTRACTOR_NIP}</th>
|
||
|
|
<th>{$MOD.LBL_LIST_SUBJECT}</th>
|
||
|
|
<th class="sorter-saas">{$MOD.LBL_ADDRESS}</th>
|
||
|
|
<th class="sorter-saas">{$MOD.LBL_GROSS_SALES}</th>
|
||
|
|
{ if $showNetto7 }<th class="sorter-saas">{$MOD.LBL_NET_SALES} 7%</th>{/if}
|
||
|
|
{ if $showNetto7 }<th class="sorter-saas">{$MOD.LBL_VAT} 7%</th>{/if}
|
||
|
|
{ if $showNetto8 }<th class="sorter-saas">{$MOD.LBL_NET_SALES} 8%</th>{/if}
|
||
|
|
{ if $showNetto8 }<th class="sorter-saas">{$MOD.LBL_VAT} 8%</th>{/if}
|
||
|
|
{ if $showNetto22 }<th class="sorter-saas">{$MOD.LBL_NET_SALES} 22%</th>{/if}
|
||
|
|
{ if $showNetto22 }<th class="sorter-saas">{$MOD.LBL_VAT} 22%</th> {/if}
|
||
|
|
{ if $showNetto23 }<th class="sorter-saas">{$MOD.LBL_NET_SALES} 23%</th>{/if}
|
||
|
|
{ if $showNetto23 }<th class="sorter-saas">{$MOD.LBL_VAT} 23%</th>{/if}
|
||
|
|
{ if $showNetto0 }<th class="sorter-saas">{$MOD.LBL_NET_SALES} 0%</th> {/if}
|
||
|
|
<th class="sorter-saas">{$MOD.LBL_SUM_VAT}</th>
|
||
|
|
<th class="sorter-saas">{$MOD.LBL_COST_OF}</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tfoot>
|
||
|
|
<tr>
|
||
|
|
<th colspan="6"></th>
|
||
|
|
<th class="align-right">{ $totalBruttoSum|number_format:2:",":"." }</th>
|
||
|
|
{ if $showNetto7 }<th class="align-right">{ $totalNetto7|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto7 }<th class="align-right">{ $totalVat7|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto8 }<th class="align-right">{ $totalNetto8|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto8 }<th class="align-right">{ $totalVat8|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto22 }<th class="align-right">{ $totalNetto22|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto22 }<th class="align-right">{ $totalVat22|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto23 }<th class="align-right">{ $totalNetto23|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto23 }<th class="align-right">{ $totalVat23|number_format:2:",":"." }</th>{/if}
|
||
|
|
{ if $showNetto0 }<th class="align-right">{ $totalNetto0|number_format:2:",":"." }</th>{/if}
|
||
|
|
<th class="align-right">{ $totalVat|number_format:2:",":"." }</th>
|
||
|
|
<th class="align-right">{ $totalPurchasePrice|number_format:2:",":"."}</th>
|
||
|
|
</tr>
|
||
|
|
</tfoot>
|
||
|
|
<tbody aria-live="polite" aria-relevant="all">
|
||
|
|
{foreach from=$DATA item=ROW}
|
||
|
|
<tr>
|
||
|
|
<td><a href="index.php?module=EcmInvoiceOuts&action=DetailView&record={ $ROW.id }" target="_blank" >{$ROW.document_no }</a></td>
|
||
|
|
<td>{$ROW.register_date}</td>
|
||
|
|
<td>{$ROW.sell_date }</td>
|
||
|
|
<td>{$ROW.account.to_vatid}</td>
|
||
|
|
<td><a href="index.php?module=Accounts&return_module=Accounts&action=DetailView&record={$ROW.account.id}" target="_blank">{$ROW.account.name}</a></td>
|
||
|
|
<td>{$ROW.account.register_address_postalcode} {$ROW.account.register_address_city}</td>
|
||
|
|
<td class="align-right">{$ROW.total_brutto|number_format:2:",":"."}</td>
|
||
|
|
{ if $showNetto7 }<td class="align-right">{$ROW.netto7|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto7 }<td class="align-right">{$ROW.vat7|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto8 }<td class="align-right">{$ROW.netto8|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto8 }<td class="align-right">{$ROW.vat8|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto22 }<td class="align-right">{$ROW.netto22|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto22 }<td class="align-right">{$ROW.vat22|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto23 }<td class="align-right">{$ROW.netto23|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto23 }<td class="align-right">{$ROW.vat23|number_format:2:",":"."}</td>{/if}
|
||
|
|
{ if $showNetto0 }<td class="align-right">{$ROW.netto0|number_format:2:",":"."}</td>{/if}
|
||
|
|
<td class="align-right">{$ROW.total_vat|number_format:2:",":"."}</td>
|
||
|
|
<td class="align-right">{$ROW.purchase_price|number_format:2:",":"."}</td>
|
||
|
|
</tr>
|
||
|
|
{/foreach}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
|