Add TPL files
This commit is contained in:
208
modules/EcmReportsBackUp20151106/tpls/AgreementRaport.tpl
Executable file
208
modules/EcmReportsBackUp20151106/tpls/AgreementRaport.tpl
Executable file
@@ -0,0 +1,208 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="{literal}https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1','packages':['corechart']}]}{/literal}"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
google.setOnLoadCallback(drawChart);
|
||||
function drawChart() {
|
||||
var data = google.visualization.arrayToDataTable([
|
||||
['Rok', 'Wartość'],
|
||||
{/literal}{foreach from=$TABLE key="key" item="item" name=loop}
|
||||
['{$item.payment_date}', {$item.total|number_format:2:".":""}],
|
||||
{/foreach}
|
||||
{literal}
|
||||
]);
|
||||
|
||||
var options = {
|
||||
title: 'Wykres należności',
|
||||
orientation: 'horizontal',
|
||||
hAxis: {title: 'Lata', titleTextStyle: {color: 'red'}}
|
||||
};
|
||||
|
||||
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
|
||||
|
||||
chart.draw(data, options);
|
||||
}
|
||||
function pdfExport() {
|
||||
var url = $(location).attr('href');
|
||||
url = url + "&toPDF=1&to_pdf=1";
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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_AGREEMENT} </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportStocks">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="AgreementRaport" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="dataLabel" width="1%" nowrap="nowrap">
|
||||
{$MOD.LBL_DATE_START}
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<input autocomplete="off" name="date_from" id="date_from" value="{$date_from}" title="" tabindex="" size="11" maxlength="10" type="text">
|
||||
<img src="themes/default/images/jscalendar.gif" alt="Enter Date" id="date_from_trigger" align="absmiddle" border="0">
|
||||
<script type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "date_from",
|
||||
daFormat : "{$dateFormat}",
|
||||
button : "date_from_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="8%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort"></th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Odsetki</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Prowizja</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Rata kapitałowa</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Razem</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
{foreach from=$TABLE key="key" item="item" name=loop}
|
||||
|
||||
<tr>
|
||||
<td class="oddListRowS1 alignLeft"><b>{$item.payment_date}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:right;"><b>{$item.rate|number_format:2:",":"."}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$item.rate2|number_format:2:",":"."}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$item.rate3|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$item.total|number_format:2:",":"." }</b></td>
|
||||
</tr>
|
||||
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td class="oddListRowS1 alignLeft" style="text-align:right;"><b>Razem:</b></td>
|
||||
<td class="oddListRowS1" style="text-align:right;"><b>{$total_o|number_format:2:",":"."}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$total_p|number_format:2:",":"."}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$total_r|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$total|number_format:2:",":"." }</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<div id="chart_div" style="width: 900px; height: 800px;"></div>
|
||||
|
||||
92
modules/EcmReportsBackUp20151106/tpls/AnalysisEcmQuote.tpl
Executable file
92
modules/EcmReportsBackUp20151106/tpls/AnalysisEcmQuote.tpl
Executable file
@@ -0,0 +1,92 @@
|
||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
||||
<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>Analiza Ofert </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<form action="index.php" method="get" class="EditView" name="AnalysisProductSale">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="AnalysisProductSale" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="dataField" nowrap="nowrap">
|
||||
{$MOD.LBL_CONTRACTOR}:
|
||||
<input type="text" id="accountName" name="accountName" value="{$accountName}" style="width:50%">
|
||||
<input type="hidden" id="accountId" name="accountId" value="{$accountId}">
|
||||
<button
|
||||
type="button"
|
||||
id="selectAccount"
|
||||
value="{$APP.LBL_ADD_BUTTON}"
|
||||
title="Wybierz kontrahenta">
|
||||
<img src="{sugar_getimagepath file="id-ff-select.png"}">
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="clearAccount"
|
||||
value="Wyczyść"
|
||||
title="Wyczyść">
|
||||
<img src="{sugar_getimagepath file="id-ff-clear.png"}">
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="submit" value="{$MOD.LBL_EXECUTE}">
|
||||
<input class="button" name="clear" value="Wyczyść" type="button" onclick="location.href = 'index.php?module=EcmReports&action=AnalysisProductSale';">
|
||||
<input id="pdfEksport" class="button" name="importToPDF" value="{$MOD.BTN_PDF_EXPORT}" type="button">
|
||||
</form>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nazwa</th>
|
||||
{foreach from=$DATA key=key item=item}
|
||||
<th>{$key}</th>
|
||||
{/foreach}
|
||||
<th>Suma</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Utworzona/Wysłana</td>
|
||||
{foreach from=$ROWS.created key=key item=item}
|
||||
{assign var=sumacreated value=$sumacreated+$item}
|
||||
<td style="text-align: right;">{$item|number_format:0:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumacreated|number_format:0:",":"."}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Przyjęta</td>
|
||||
{foreach from=$ROWS.accepted key=key item=item}
|
||||
{assign var=sumaaccepted value=$sumaaccepted+$item}
|
||||
<td style="text-align: right;">{$item|number_format:0:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumaaccepted|number_format:0:",":"."}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Odrzucona</td>
|
||||
{foreach from=$ROWS.not_accepted key=key item=item}
|
||||
{assign var=sumanot_accepted value=$sumanot_accepted+$item}
|
||||
<td style="text-align: right;">{$item|number_format:0:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumanot_accepted|number_format:0:",":"."}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="chart_div" style="width: 100%; height: 500px;"></div>
|
||||
<!-- Tablesorter script: required -->
|
||||
<script src="modules/EcmReports/TableSorterNew/js/jquery.tablesorter.js"></script>
|
||||
<script src="modules/EcmReports/javascript/AnalysisEcmQuote.js"></script>
|
||||
<script src="modules/EcmReports/TableSorterNew/js/jquery.tablesorter.widgets.js"></script>
|
||||
<link class="theme" rel="stylesheet" href="modules/EcmReports/TableSorter/css/theme.blue.css">
|
||||
128
modules/EcmReportsBackUp20151106/tpls/AnalysisProductSale.tpl
Executable file
128
modules/EcmReportsBackUp20151106/tpls/AnalysisProductSale.tpl
Executable file
@@ -0,0 +1,128 @@
|
||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
||||
<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>Rejestr wartościowy </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<form action="index.php" method="get" class="EditView" name="AnalysisProductSale">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="AnalysisProductSale" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="dataField" nowrap="nowrap">
|
||||
{$MOD.LBL_PRODUCTS_CATEGORY}
|
||||
<select multiple name="productCategorySelected[]">
|
||||
{foreach from=$productCategoryList key="key" item="item"}
|
||||
<option value="{$key}" {if @in_array($key, $productCategorySelected) } selected="true" {/if}>{$item}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataField" nowrap="nowrap">
|
||||
{$MOD.LBL_PRODUCT}:
|
||||
<input type="text" id="productName" value="{$productName}" name="productName" style="width:50%">
|
||||
<input type="hidden" id="productId" name="productId" value="{$productId}">
|
||||
<button
|
||||
type="button"
|
||||
id="selectProduct"
|
||||
value="{$APP.LBL_ADD_BUTTON}"
|
||||
title="Wybierz kontrahenta">
|
||||
<img src="{sugar_getimagepath file="id-ff-select.png"}">
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="clearProduct"
|
||||
value="Wyczyść"
|
||||
title="Wyczyść">
|
||||
<img src="{sugar_getimagepath file="id-ff-clear.png"}">
|
||||
</button>
|
||||
</td>
|
||||
<td class="dataField" nowrap="nowrap">
|
||||
{$MOD.LBL_CONTRACTOR}:
|
||||
<input type="text" id="accountName" name="accountName" value="{$accountName}" style="width:50%">
|
||||
<input type="hidden" id="accountId" name="accountId" value="{$accountId}">
|
||||
<button
|
||||
type="button"
|
||||
id="selectAccount"
|
||||
value="{$APP.LBL_ADD_BUTTON}"
|
||||
title="Wybierz kontrahenta">
|
||||
<img src="{sugar_getimagepath file="id-ff-select.png"}">
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="clearAccount"
|
||||
value="Wyczyść"
|
||||
title="Wyczyść">
|
||||
<img src="{sugar_getimagepath file="id-ff-clear.png"}">
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="submit" value="{$MOD.LBL_EXECUTE}">
|
||||
<input class="button" name="clear" value="Wyczyść" type="button" onclick="location.href = 'index.php?module=EcmReports&action=AnalysisProductSale';">
|
||||
<input id="pdfEksport" class="button" name="importToPDF" value="{$MOD.BTN_PDF_EXPORT}" type="button">
|
||||
</form>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nazwa</th>
|
||||
{foreach from=$DATA key=key item=item}
|
||||
<th>{$key}</th>
|
||||
{/foreach}
|
||||
<th>Suma</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>netto</td>
|
||||
{foreach from=$ROWS.netto key=key item=item}
|
||||
{assign var=sumanetto value=$sumanetto+$item}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumanetto|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>kupno</td>
|
||||
{foreach from=$ROWS.kupno key=key item=item}
|
||||
{assign var=sumakupno value=$sumakupno+$item}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumakupno|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>dochód</td>
|
||||
{foreach from=$ROWS.marza key=key item=item}
|
||||
{assign var=sumamarza value=$sumamarza+$item}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."}</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumamarza|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>marża %</td>
|
||||
{foreach from=$ROWS.marzaprocent key=key item=item}
|
||||
{assign var=sumamarzaprocent value=$sumamarzaprocent+$item}
|
||||
<td style="text-align: right;">{$item|number_format:2:",":"."} %</td>
|
||||
{/foreach}
|
||||
<td style="text-align: right;">{$sumamarzaprocent/12|number_format:2:",":"."} %</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="chart_div" style="width: 100%; height: 500px;"></div>
|
||||
<!-- Tablesorter script: required -->
|
||||
<script src="modules/EcmReports/TableSorterNew/js/jquery.tablesorter.js"></script>
|
||||
<script src="modules/EcmReports/javascript/AnalysisProductSale.js"></script>
|
||||
<script src="modules/EcmReports/TableSorterNew/js/jquery.tablesorter.widgets.js"></script>
|
||||
<link class="theme" rel="stylesheet" href="modules/EcmReports/TableSorter/css/theme.blue.css">
|
||||
235
modules/EcmReportsBackUp20151106/tpls/Kartoteka.tpl
Executable file
235
modules/EcmReportsBackUp20151106/tpls/Kartoteka.tpl
Executable file
@@ -0,0 +1,235 @@
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportStocks.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
||||
function pdfExport() {
|
||||
var url = $(location).attr('href');
|
||||
url = url + "&toPDF=1&to_pdf=1";
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;;
|
||||
}
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.alt-row:hover td {
|
||||
background: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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>Kartoteka ruchu towarów - Podsumowanie</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportStocks">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="Kartoteka" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_STOCK}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="stock" name="selectStock">
|
||||
<option value="" {if $selectStock==""} selected="true" {/if} >{$MOD.LBL_ALL_STOCKS}</option>
|
||||
{foreach from=$STOCKS item=STOCK key=count name=loop}
|
||||
<option value="{$STOCK.id}" {if $selectStock==$STOCK.id} selected="true" {/if} >{$STOCK.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_PRODUCT_ACTIVE}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="productActive" name="selectProductActive">
|
||||
<option value="" {if $selectProductActive==""} selected="true" {/if} >{$MOD.LBL_YES}/{$MOD.LBL_NO}</option>
|
||||
<option value="1" {if $selectProductActive=="1"} selected="true" {/if} >{$MOD.LBL_YES}</option>
|
||||
<option value="0" {if $selectProductActive=="0"} selected="true" {/if} >{$MOD.LBL_NO}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Data od</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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">
|
||||
{* console.log('dupa');*}
|
||||
Calendar.setup({ldelim}
|
||||
inputField: "date_from",
|
||||
daFormat: "%d.%m.%Y",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Data do</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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="60%" nowrap="nowrap"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href = 'index.php?module=EcmReports&action=Kartoteka';">
|
||||
<input id="pdf" class="button" name="pdf" value="PDF" onClick="pdfExport();" type="button">
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table id="myTable" class="tablesorter " role="grid" width="50%">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="50%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan początkowy:</th>
|
||||
<th width="50%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$TOTAL_VALUE_OLD|number_format:2:",":"." }</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{assign var="number" value=1}
|
||||
{foreach from=$DATA key="key" item="item" name=loop}
|
||||
{foreach from=$item key="key2" item="item2" name=loop}
|
||||
<tr>
|
||||
<td class="oddListRowS1 alignLeft"><b>{$doc_name.$key2} {if $key==0}(+){else}(-){/if}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:right;" rowspan="{$currow}"><b>{$item2|number_format:2:",":"."}</b></td>
|
||||
</tr>
|
||||
{if $key==0}
|
||||
{assign var=nowa_suma value=$nowa_suma+$item2}
|
||||
{else}
|
||||
{assign var=nowa_suma value=$nowa_suma-$item2}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan końcowy:</th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$nowa_suma+$TOTAL_VALUE_OLD|number_format:2:",":"." }</th>
|
||||
</tr>
|
||||
</table>
|
||||
303
modules/EcmReportsBackUp20151106/tpls/ListDailySales.tpl
Executable file
303
modules/EcmReportsBackUp20151106/tpls/ListDailySales.tpl
Executable file
@@ -0,0 +1,303 @@
|
||||
<!-- 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/ListDailySales.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;
|
||||
}
|
||||
|
||||
/* 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 tfoot th.alignLeft,
|
||||
table.tablesorter tbody td.alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter tfoot th.alignRight,
|
||||
table.tablesorter tbody td.alignRight {
|
||||
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>Rejestr wartościowy </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<ul class="tablist" style="width:100%;">
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchDailyReports" id="searchDailyReports">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ListDailySales" />
|
||||
<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="10%" 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="10%" nowrap="nowrap">Data do</td>
|
||||
<td class="dataField" width="30%" 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>
|
||||
|
||||
{* Search by contractor *}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">{$MOD.LBL_CONTRACTOR}</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<input id="account_name" type="text" title="" value="{$contractorName}" size="" tabindex="" name="account_name">
|
||||
<input id="account_id" type="hidden" value="{$contractorId}" name="account_id">
|
||||
<input class="button" type="button" value="Wybierz" accesskey="T" title="Select [Alt+T]" tabindex="" value="{$contractorName}" name="btn_account_name" onClick="getContractor()">
|
||||
|
||||
{* Open popup window to select contractor *}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function getContractor(){ldelim}
|
||||
open_popup("Accounts", 600, 400, "", true, false,
|
||||
{ldelim}
|
||||
"call_back_function": "set_return", "form_name": "searchDailyReports", "field_to_name_array":
|
||||
{ldelim}"id": "account_id", "name": "account_name"{rdelim}
|
||||
{rdelim}, "single", true);
|
||||
{rdelim}
|
||||
;
|
||||
</script>
|
||||
</td>
|
||||
{if $submit eq "Wykonaj"}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Kategoria dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="category[]" multiple="multiple">
|
||||
{foreach from=$CATEGORY item=c key=k }
|
||||
<option value="{$k}" {if @in_array($k, $category) } selected="true" {/if}>{$c}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Typ dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="type[]" multiple="multiple">
|
||||
<option value="fv" {if $searchByType.fv } selected="true" {/if} >FV</option>
|
||||
<option value="fvk" {if $searchByType.fvk } selected="true" {/if} >FVK</option>
|
||||
<option value="pr" {if $searchByType.pr } selected="true" {/if} >PR</option>
|
||||
<option value="prk" {if $searchByType.prk } selected="true" {/if} >PRK</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Rodzaj dokumentu:</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="pdfType[]" multiple="multiple">
|
||||
<option value="K" {if $pdfType.K} selected="true"{/if}>Kraj</option>
|
||||
<option value="U" {if $pdfType.U} selected="true"{/if}>Unia</option>
|
||||
<option value="E" {if $pdfType.E} selected="true"{/if}>Eksport</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
{else}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Kategoria dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="category[]" multiple="multiple">
|
||||
{foreach from=$CATEGORY item=c key=k }
|
||||
<option value="{$k}" >{$c}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Typ dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="type[]" multiple="multiple">
|
||||
<option value="fv" selected="true">FV</option>
|
||||
<option value="fvk" selected="true" >FVK</option>
|
||||
<option value="pr" selected="true" >PR</option>
|
||||
<option value="prk" selected="true" >PRK</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Rodzaj dokumentu:</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="pdfType[]" multiple="multiple">
|
||||
<option value="K" selected="true">Kraj</option>
|
||||
<option value="U" selected="true">Unia</option>
|
||||
<option value="E" selected="true">Eksport</option>
|
||||
</select>
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit" form="searchDailyReports">
|
||||
<input class="button" name="clear" value="Wyczyść" type="button" onclick="location.href = 'index.php?module=EcmReports&action=ListDailySales';">
|
||||
<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_CONTRACTOR}</th>
|
||||
<th>{$MOD.LBL_INVOICE_NUMBER}</th>
|
||||
<th>{$MOD.LBL_TYPE}</th>
|
||||
<th>{$MOD.LBL_DOCUMENT_DATE}</th>
|
||||
<th>{$MOD.LBL_PDF_TYPE}</th>
|
||||
<th class="nettoValue nettoValueVat sorter-saas">{$MOD.LBL_NET_VALUE}</th>
|
||||
<th class="sorter-saas">{$MOD.LBL_GROSS_VALUE}</th>
|
||||
<th class="nettoValue sorter-saas">{$MOD.LBL_COST}</th>
|
||||
<th class="sorter-saas">{$MOD.LBL_MARGIN}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="5"></th>
|
||||
<th class="alignRight">{$SUM.netto|number_format:2:",":"." }</th>
|
||||
<th class="alignRight">{$SUM.brutto|number_format:2:",":"." }</th>
|
||||
<th class="alignRight">{$SUM.cost|number_format:2:",":"." }</th>
|
||||
<th class="alignRight">{$SUM.margin|number_format:2:",":"." }</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA item=ROW name=loop}
|
||||
|
||||
{if $smarty.foreach.loop.index % 2 == 1}
|
||||
<tr>
|
||||
{else}
|
||||
<tr style="background-color: #e6e6e6;" role="row">
|
||||
{/if}
|
||||
<td class="alignLeft">
|
||||
<a target="new" href="index.php?module=Accounts&return_module=Accounts&action=DetailView&record={$ROW.account.id}">
|
||||
{$ROW.account.name}
|
||||
</a>
|
||||
</td>
|
||||
<td class="alignLeft">
|
||||
<a target="new" href="index.php?module=EcmInvoiceOuts&action=DetailView&record={$ROW.id}">
|
||||
{$ROW.document_no}
|
||||
</a>
|
||||
<td class="alignLeft">{$ROW.showType}</td>
|
||||
<td class="alignLeft">{$ROW.register_date}</td>
|
||||
<td class="alignLeft">{if $ROW.pdf_type == 'U'}
|
||||
{$MOD.LBL_PDF_TYPE_U}
|
||||
{/if}
|
||||
{if $ROW.pdf_type == 'K'}
|
||||
{$MOD.LBL_PDF_TYPE_K}
|
||||
{/if}
|
||||
{if $ROW.pdf_type == 'E'}
|
||||
{$MOD.LBL_PDF_TYPE_E}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="gs alignRight" ">{$ROW.total_netto|number_format:2:",":"." }</td>
|
||||
<td class="alignRight">{$ROW.total_brutto|number_format:2:",":"." }</td>
|
||||
<td class="gc alignRight" >{$ROW.purchase_price|number_format:2:",":"." }</td>
|
||||
<td class="alignRight">{$ROW.margin|number_format:2:",":"." } ({$ROW.marginInPercent|number_format:2:",":"."}%)</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
286
modules/EcmReportsBackUp20151106/tpls/ListDailySalesCopy.tpl
Executable file
286
modules/EcmReportsBackUp20151106/tpls/ListDailySalesCopy.tpl
Executable file
@@ -0,0 +1,286 @@
|
||||
<!-- 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/ListDailySales.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;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
{/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_SUBPANEL_TITLE} </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="ListDailySales" />
|
||||
<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="10%" 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 : "{$dateFormat}",
|
||||
button : "date_from_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
{* Search by date_to *}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Data do</td>
|
||||
<td class="dataField" width="30%" 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 : "{$dateFormat}",
|
||||
button : "date_to_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
|
||||
{* Search by contractor *}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">{$MOD.LBL_CONTRACTOR}</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<input id="account_name" type="text" title="" value="{$contractorName}" size="" tabindex="" name="account_name">
|
||||
<input id="account_id" type="hidden" value="{$contractorId}" name="account_id">
|
||||
<input class="button" type="button" value="Wybierz" accesskey="T" title="Select [Alt+T]" tabindex="" value="{$contractorName}" name="btn_account_name" onClick="getContractor()">
|
||||
|
||||
{* Open popup window to select contractor *}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function getContractor(){ldelim}
|
||||
open_popup("Accounts", 600, 400, "", true, false,
|
||||
{ldelim}
|
||||
"call_back_function":"set_return","form_name":"searchDailyReports","field_to_name_array":
|
||||
{ldelim}"id":"account_id","name":"account_name"{rdelim}
|
||||
{rdelim}, "single", true);
|
||||
{rdelim};
|
||||
</script>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Typ dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="type">
|
||||
<option value="" { if $searchByType==""} selected="true" {/if} >normalny i korekta</option>
|
||||
<option value="normal" { if $searchByType=="normal"} selected {/if} >normalny</option>
|
||||
<option value="correct" { if $searchByType=="correct"} selected {/if} >korekta</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Rodzaj faktury:</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="pdfType[]" multiple="multiple">
|
||||
<option value="K" {if $pdfTypeK} selected="true"{/if}>Kraj</option>
|
||||
<option value="U" {if $pdfTypeU} selected="true"{/if}>Unia</option>
|
||||
<option value="E" {if $pdfTypeE} 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=ListDailySalesCopy';">
|
||||
<input id="showGroupButton" class="button" name="clear" value="{$MOD.BTN_SHOW_GROUP_DIVISION}" type="button">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button">
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
{* Table headers *}
|
||||
<table id="myTable" class="tablesorter-blue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$MOD.LBL_CONTRACTOR}</th>
|
||||
<th>{$MOD.LBL_INVOICE_NUMBER}</th>
|
||||
<th>{$MOD.LBL_TYPE}</th>
|
||||
<th>{$MOD.LBL_REGISTER_DATE}</th>
|
||||
<th>{$MOD.LBL_PDF_TYPE}</th>
|
||||
<th class="nettoValue nettoValueVat sorter-saas">{$MOD.LBL_NET_VALUE}</th>
|
||||
<th class="nettoValueG columnSpectrum sorter-saas">TH1</th>
|
||||
<th class="nettoValueG columnSpectrum sorter-saas">WG1</th>
|
||||
<th class="nettoValueG columnSpectrum sorter-saas">PP1</th>
|
||||
<th class="nettoValueGL columnSpectrum sorter-saas">TR1</th>
|
||||
<th class="sorter-saas">{$MOD.LBL_GROSS_VALUE}</th>
|
||||
<th class="nettoValue sorter-saas">{$MOD.LBL_COST}</th>
|
||||
<th class="nettoValueG columnSpectrum sorter-saas">TH2</th>
|
||||
<th class="nettoValueG columnSpectrum sorter-saas">WG2</th>
|
||||
<th class="nettoValueG columnSpectrum sorter-saas">PP2</th>
|
||||
<th class="nettoValueGL columnSpectrum sorter-saas">TR2</th>
|
||||
<th class="sorter-saas">{$MOD.LBL_MARGIN}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="5"></th>
|
||||
<th>{$SUM.subtotalSum|number_format:2:",":"." }</th>
|
||||
<th class="columnSpectrum">{$SUM.subPriceGroupKS1Sum|number_format:2:",":"." }</th>
|
||||
<th class="columnSpectrum">{$SUM.subPriceGroupKS2Sum|number_format:2:",":"." }</th>
|
||||
<th class="columnSpectrum">{$SUM.subPriceGroupKS3Sum|number_format:2:",":"." }</th>
|
||||
<th class="columnSpectrum">{$SUM.subPriceGroupKS4Sum|number_format:2:",":"." }</th>
|
||||
|
||||
<th>{$SUM.totalSum|number_format:2:",":"." }</th>
|
||||
<th>{$SUM.costSum|number_format:2:",":"." }</th>
|
||||
|
||||
<th class="columnSpectrum">{$SUM.purchasePriceGroupKS1Sum|number_format:2:",":"." }</th>
|
||||
<th class="columnSpectrum">{$SUM.purchasePriceGroupKS2Sum|number_format:2:",":"." }</th>
|
||||
<th class="columnSpectrum">{$SUM.purchasePriceGroupKS3Sum|number_format:2:",":"." }</th>
|
||||
<th class="columnSpectrum">{$SUM.purchasePriceGroupKS4Sum|number_format:2:",":"." }</th>
|
||||
<th>{$SUM.marginSum|number_format:2:",":"." }%</th>
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA item=ROW name=loop}
|
||||
|
||||
{if $smarty.foreach.loop.index % 2 == 1}
|
||||
<tr>
|
||||
{else}
|
||||
<tr style="background-color: #e6e6e6;" role="row">
|
||||
{/if}
|
||||
<td style="text-align:left;">
|
||||
<a target="new" href="index.php?module=Accounts&return_module=Accounts&action=DetailView&record={$ROW.id}">
|
||||
{$ROW.contractorName}
|
||||
</a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<a target="new" href="index.php?module=EcmInvoiceOuts&action=DetailView&record={$ROW.invoiceoutId}">
|
||||
{$ROW.document_no}
|
||||
</a>
|
||||
<td style="text-align:right;">{if $ROW.type == 'normal'}
|
||||
{$MOD.LBL_PDF_TYPE_NORMAL}
|
||||
{else if $ROW.type == 'correct'}
|
||||
{$MOD.LBL_PDF_TYPE_CORRECT}
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
<td style="text-align:right;">{$ROW.register_date}</td>
|
||||
<td style="text-align:right;">{if $ROW.pdf_type == 'U'}
|
||||
{$MOD.LBL_PDF_TYPE_U}
|
||||
{/if}
|
||||
{if $ROW.pdf_type == 'K'}
|
||||
{$MOD.LBL_PDF_TYPE_K}
|
||||
{/if}
|
||||
{if $ROW.pdf_type == 'E'}
|
||||
{$MOD.LBL_PDF_TYPE_E}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="gs" style="text-align:right;">{$ROW.subtotal|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right;border-left: 1px solid #687783;">{$ROW.subPriceGroupKS1|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right;">{$ROW.subPriceGroupKS2|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right; padding-right: 4px;">{$ROW.subPriceGroupKS3|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right; border-right: 1px solid #687783; padding-right: 4px;">{$ROW.subPriceGroupKS4|number_format:2:",":"." }</td>
|
||||
|
||||
<td style="text-align:right;">{$ROW.total|number_format:2:",":"." }</td>
|
||||
<td class="gc" style="text-align:right;">{$ROW.cost|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right;border-left: 1px solid #687783;">{$ROW.purchasePriceGroupKS1|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right;">{$ROW.purchasePriceGroupKS2|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right; padding-right: 4px;">{$ROW.purchasePriceGroupKS3|number_format:2:",":"." }</td>
|
||||
<td class="columnSpectrum" style="text-align:right; border-right: 1px solid #687783; padding-right: 4px;">{$ROW.purchasePriceGroupKS4|number_format:2:",":"." }</td>
|
||||
<td style="text-align:right;">{$ROW.margin|number_format:2:",":"." }%</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
289
modules/EcmReportsBackUp20151106/tpls/PDF/Kartoteka.tpl
Executable file
289
modules/EcmReportsBackUp20151106/tpls/PDF/Kartoteka.tpl
Executable file
@@ -0,0 +1,289 @@
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
body {
|
||||
font-size: 8px;
|
||||
}
|
||||
/* overall */
|
||||
.tablesorter-blue {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
margin: 10px 0 15px;
|
||||
text-align: left;
|
||||
border-spacing: 0;
|
||||
border: #fff 1px solid;
|
||||
border-width: 1px 0 0 1px;
|
||||
}
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue td {
|
||||
border: #fff 1px solid;
|
||||
border-width: 0 1px 1px 0;
|
||||
}
|
||||
|
||||
/* header */
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue thead td {
|
||||
font: bold 10px/18px Arial, Sans-serif;
|
||||
color: #fff;
|
||||
background-color: #252525;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
border-top: 2px solid #ABC3D7;
|
||||
}
|
||||
.tablesorter-blue tbody td,
|
||||
.tablesorter-blue tfoot th,
|
||||
.tablesorter-blue tfoot td {
|
||||
padding: 4px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.tablesorter-blue .header,
|
||||
.tablesorter-blue .tablesorter-header {
|
||||
/* black (unsorted) double arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
||||
/* white (unsorted) double arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-unsorted.gif); */
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
padding: 3px 18px 3px 3px;
|
||||
white-space: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerAsc {
|
||||
background-color: #E7E7E9;
|
||||
/* black asc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
||||
/* white asc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-asc.gif); */
|
||||
}
|
||||
.tablesorter-blue .headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerDesc {
|
||||
background-color: #E7E7E9;
|
||||
/* black desc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
||||
/* white desc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-desc.gif); */
|
||||
}
|
||||
.tablesorter-blue thead .sorter-false {
|
||||
background-image: none;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* tfoot */
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortUp,
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortDown,
|
||||
.tablesorter-blue tfoot .tablesorter-headerAsc,
|
||||
.tablesorter-blue tfoot .tablesorter-headerDesc {
|
||||
/* remove sort arrows from footer */
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* tbody */
|
||||
.tablesorter-blue td {
|
||||
color: #3d3d3d;
|
||||
background-color: #fff;
|
||||
padding: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* hovered row colors
|
||||
you'll need to add additional lines for
|
||||
rows with more than 2 child rows
|
||||
*/
|
||||
.tablesorter-blue tbody > tr:hover > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #d9d9d9;
|
||||
}
|
||||
.tablesorter-blue tbody > tr.odd:hover > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
|
||||
/* table processing indicator */
|
||||
.tablesorter-blue .tablesorter-processing {
|
||||
background-position: center center !important;
|
||||
background-repeat: no-repeat !important;
|
||||
/* background-image: url(../addons/pager/icons/loading.gif) !important; */
|
||||
background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !important;
|
||||
}
|
||||
|
||||
/* Zebra Widget - row alternating colors */
|
||||
.tablesorter-blue tbody tr.odd td {
|
||||
background-color: #ebf2fa;
|
||||
}
|
||||
.tablesorter-blue tbody tr.even td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Column Widget - column sort colors */
|
||||
.tablesorter-blue td.primary,
|
||||
.tablesorter-blue tr.odd td.primary {
|
||||
background-color: #99b3e6;
|
||||
}
|
||||
.tablesorter-blue tr.even td.primary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue td.secondary,
|
||||
.tablesorter-blue tr.odd td.secondary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue tr.even td.secondary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue td.tertiary,
|
||||
.tablesorter-blue tr.odd td.tertiary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue tr.even td.tertiary {
|
||||
background-color: #ebf0fa;
|
||||
}
|
||||
|
||||
/* caption */
|
||||
caption {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* filter widget */
|
||||
.tablesorter-blue .tablesorter-filter-row td {
|
||||
background: #eee;
|
||||
line-height: normal;
|
||||
text-align: center; /* center the input */
|
||||
-webkit-transition: line-height 0.1s ease;
|
||||
-moz-transition: line-height 0.1s ease;
|
||||
-o-transition: line-height 0.1s ease;
|
||||
transition: line-height 0.1s ease;
|
||||
}
|
||||
/* optional disabled input styling */
|
||||
.tablesorter-blue .tablesorter-filter-row .disabled {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
/* hidden filter row */
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme td {
|
||||
/*** *********************************************** ***/
|
||||
/*** change this padding to modify the thickness ***/
|
||||
/*** of the closed filter row (height = padding x 2) ***/
|
||||
padding: 2px;
|
||||
/*** *********************************************** ***/
|
||||
margin: 0;
|
||||
line-height: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter {
|
||||
height: 1px;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
/* don't use visibility: hidden because it disables tabbing */
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
}
|
||||
/* filters */
|
||||
.tablesorter-blue .tablesorter-filter {
|
||||
width: 98%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: #333;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
-webkit-transition: height 0.1s ease;
|
||||
-moz-transition: height 0.1s ease;
|
||||
-o-transition: height 0.1s ease;
|
||||
transition: height 0.1s ease;
|
||||
}
|
||||
|
||||
/* ajax error row */
|
||||
.tablesorter .tablesorter-errorRow td {
|
||||
cursor: pointer;
|
||||
background-color: #e6bf99;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.subcategory {
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.product {
|
||||
padding-left: 55px;
|
||||
}
|
||||
|
||||
#myTable tbody tr.category td {
|
||||
background-color: #96FF7C;
|
||||
}
|
||||
|
||||
#myTable tbody tr.sumAll td{
|
||||
background-color: #242424;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.sumRow {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="50%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan początkowy:</th>
|
||||
<th width="50%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$TOTAL_VALUE_OLD|number_format:2:",":"." }</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{assign var="number" value=1}
|
||||
{foreach from=$DATA key="key" item="item" name=loop}
|
||||
{foreach from=$item key="key2" item="item2" name=loop}
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td class="oddListRowS1 alignLeft"><b>{$doc_name.$key2} { if $key==0}(+){else}(-){/if}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:right;" rowspan="{$currow}"><b>{$item2|number_format:2:",":"."}</b></td>
|
||||
|
||||
</tr>
|
||||
{if $key==0}
|
||||
{assign var=nowa_suma value=$nowa_suma+$item2}
|
||||
{else}
|
||||
{assign var=nowa_suma value=$nowa_suma-$item2}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan końcowy:</th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$nowa_suma+$TOTAL_VALUE_OLD|number_format:2:",":"." }</th>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
343
modules/EcmReportsBackUp20151106/tpls/PDF/ListDailySales.tpl
Executable file
343
modules/EcmReportsBackUp20151106/tpls/PDF/ListDailySales.tpl
Executable file
@@ -0,0 +1,343 @@
|
||||
{literal}
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
@page {
|
||||
size: auto;
|
||||
odd-header-name: html_MyHeader1;
|
||||
odd-footer-name: html_MyFooter1;
|
||||
}
|
||||
@page chapter2 {
|
||||
odd-header-name: html_MyHeader2;
|
||||
odd-footer-name: html_MyFooter2;
|
||||
}
|
||||
@page noheader {
|
||||
odd-header-name: _blank;
|
||||
odd-footer-name: _blank;
|
||||
}
|
||||
div.chapter2 {
|
||||
page-break-before: always;
|
||||
page: chapter2;
|
||||
}
|
||||
div.noheader {
|
||||
page-break-before: always;
|
||||
page: noheader;
|
||||
}
|
||||
body {
|
||||
font-size: 8px;
|
||||
}
|
||||
/* overall */
|
||||
.tablesorter-blue {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
margin: 10px 0 15px;
|
||||
text-align: left;
|
||||
border-spacing: 0;
|
||||
border: #fff 1px solid;
|
||||
border-width: 1px 0 0 1px;
|
||||
}
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue td {
|
||||
border: #fff 1px solid;
|
||||
border-width: 0 1px 1px 0;
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
/* header */
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue thead td {
|
||||
font: bold 10px/18px Arial, Sans-serif;
|
||||
color: #000;
|
||||
background-color: #fff;
|
||||
padding: 4px;
|
||||
border-top: 2px solid red;
|
||||
}
|
||||
.tablesorter-blue tbody td,
|
||||
.tablesorter-blue tfoot th,
|
||||
.tablesorter-blue tfoot td {
|
||||
padding: 4px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.tablesorter-blue .header,
|
||||
.tablesorter-blue .tablesorter-header {
|
||||
/* black (unsorted) double arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
||||
/* white (unsorted) double arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-unsorted.gif); */
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
padding: 3px 18px 3px 3px;
|
||||
white-space: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerAsc {
|
||||
background-color: #E7E7E9;
|
||||
/* black asc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
||||
/* white asc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-asc.gif); */
|
||||
}
|
||||
.tablesorter-blue .headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerDesc {
|
||||
background-color: #E7E7E9;
|
||||
/* black desc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
||||
/* white desc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-desc.gif); */
|
||||
}
|
||||
.tablesorter-blue thead .sorter-false {
|
||||
background-image: none;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* tfoot */
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortUp,
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortDown,
|
||||
.tablesorter-blue tfoot .tablesorter-headerAsc,
|
||||
.tablesorter-blue tfoot .tablesorter-headerDesc {
|
||||
/* remove sort arrows from footer */
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* tbody */
|
||||
.tablesorter-blue td {
|
||||
color: #3d3d3d;
|
||||
background-color: #fff;
|
||||
padding: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* hovered row colors
|
||||
you'll need to add additional lines for
|
||||
rows with more than 2 child rows
|
||||
*/
|
||||
.tablesorter-blue tbody > tr:hover > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #d9d9d9;
|
||||
}
|
||||
.tablesorter-blue tbody > tr.odd:hover > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
|
||||
|
||||
/* Zebra Widget - row alternating colors */
|
||||
.tablesorter-blue tbody tr.odd td {
|
||||
background-color: #ebf2fa;
|
||||
}
|
||||
.tablesorter-blue tbody tr.even td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Column Widget - column sort colors */
|
||||
.tablesorter-blue td.primary,
|
||||
.tablesorter-blue tr.odd td.primary {
|
||||
background-color: #99b3e6;
|
||||
}
|
||||
.tablesorter-blue tr.even td.primary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue td.secondary,
|
||||
.tablesorter-blue tr.odd td.secondary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue tr.even td.secondary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue td.tertiary,
|
||||
.tablesorter-blue tr.odd td.tertiary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue tr.even td.tertiary {
|
||||
background-color: #ebf0fa;
|
||||
}
|
||||
|
||||
/* caption */
|
||||
caption {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* filter widget */
|
||||
.tablesorter-blue .tablesorter-filter-row td {
|
||||
background: #eee;
|
||||
line-height: normal;
|
||||
text-align: center; /* center the input */
|
||||
-webkit-transition: line-height 0.1s ease;
|
||||
-moz-transition: line-height 0.1s ease;
|
||||
-o-transition: line-height 0.1s ease;
|
||||
transition: line-height 0.1s ease;
|
||||
}
|
||||
/* optional disabled input styling */
|
||||
.tablesorter-blue .tablesorter-filter-row .disabled {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
/* hidden filter row */
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme td {
|
||||
/*** *********************************************** ***/
|
||||
/*** change this padding to modify the thickness ***/
|
||||
/*** of the closed filter row (height = padding x 2) ***/
|
||||
padding: 2px;
|
||||
/*** *********************************************** ***/
|
||||
margin: 0;
|
||||
line-height: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter {
|
||||
height: 1px;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
/* don't use visibility: hidden because it disables tabbing */
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
}
|
||||
/* filters */
|
||||
.tablesorter-blue .tablesorter-filter {
|
||||
width: 98%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: #333;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
-webkit-transition: height 0.1s ease;
|
||||
-moz-transition: height 0.1s ease;
|
||||
-o-transition: height 0.1s ease;
|
||||
transition: height 0.1s ease;
|
||||
}
|
||||
|
||||
/* ajax error row */
|
||||
.tablesorter .tablesorter-errorRow td {
|
||||
cursor: pointer;
|
||||
background-color: #e6bf99;
|
||||
}
|
||||
|
||||
#myTable tfoot th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<htmlpageheader name="MyHeader1">
|
||||
{/literal}
|
||||
<div style="text-align: left; border-bottom: 1px solid #000000; font-weight: bold; font-size: 10pt;">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="font-size: 25px; font-weight: bold">Raport wartościowy</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">SAAS-SYSTEMS</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">Data wygenerowania: {$current_date_formatted}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">Rejestr od {$date_from_formatted} do {$date_to_formatted}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{literal}
|
||||
</htmlpageheader>
|
||||
|
||||
|
||||
<htmlpagefooter name="MyFooter1">
|
||||
<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt;
|
||||
color: #000000; font-weight: bold; font-style: italic;"><tr>
|
||||
<td width="33%"><span style="font-weight: bold; font-style: italic;">{DATE j.m.Y}</span></td>
|
||||
<td width="33%" align="center" style="font-weight: bold; font-style: italic;">{PAGENO}/{nbpg}</td>
|
||||
<td width="33%" style="text-align: right; ">Raport wartościowy</td>
|
||||
</tr></table>
|
||||
</htmlpagefooter>
|
||||
|
||||
<htmlpagefooter name="MyFooter2">
|
||||
<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt;
|
||||
color: #000000; font-weight: bold; font-style: italic;"><tr>
|
||||
<td width="33%"><span style="font-weight: bold; font-style: italic;">SAAS-SYSTEMS</span></td>
|
||||
<td width="33%" align="center" style="font-weight: bold; font-style: italic;">{PAGENO}/{nbpg}</td>
|
||||
<td width="33%" style="text-align: right; ">{DATE j-m-Y}</td>
|
||||
</tr></table>
|
||||
</htmlpagefooter>
|
||||
{/literal}
|
||||
<div>
|
||||
|
||||
|
||||
<h1> {$MOD.LBL_SUBPANEL_TITLE} </h1>
|
||||
|
||||
{* Table headers *}
|
||||
<table id="myTable" class="tablesorter-blue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black;">{$MOD.LBL_CONTRACTOR}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_INVOICE_NUMBER}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_TYPE}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_DOCUMENT_DATE}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_PDF_TYPE}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_NET_VALUE}</th>
|
||||
|
||||
<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_GROSS_VALUE}</th>
|
||||
<th class="nettoValue sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_COST}</th>
|
||||
<th class="sorter-saas" style="border-top: 1px solid black; border-right: 1px solid black;">{$MOD.LBL_MARGIN}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="5"></th>
|
||||
<th>{$SUM.netto|number_format:2:",":"." }</th>
|
||||
<th>{$SUM.brutto|number_format:2:",":"." }</th>
|
||||
<th>{$SUM.cost|number_format:2:",":"." }</th>
|
||||
<th>{$SUM.margin|number_format:2:",":"." }</th>
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA item=ROW name=loop}
|
||||
|
||||
<tr>
|
||||
<td style="text-align:left;">{$ROW.account.name}</td>
|
||||
<td style="text-align:right;">{$ROW.document_no}</td>
|
||||
|
||||
<td style="text-align:right;">{$ROW.showType}</td>
|
||||
<td style="text-align:right;">{$ROW.register_date|date_format:"%d.%m.%Y"}</td>
|
||||
<td style="text-align:right;">{if $ROW.pdf_type == 'U'}
|
||||
{$MOD.LBL_PDF_TYPE_U}
|
||||
{/if}
|
||||
{if $ROW.pdf_type == 'K'}
|
||||
{$MOD.LBL_PDF_TYPE_K}
|
||||
{/if}
|
||||
{if $ROW.pdf_type == 'E'}
|
||||
{$MOD.LBL_PDF_TYPE_E}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="gs" style="text-align:right;">{$ROW.total_netto|number_format:2:",":"." }</td>
|
||||
<td style="text-align:right;">{$ROW.total_brutto|number_format:2:",":"." }</td>
|
||||
<td class="gc" style="text-align:right;">{$ROW.purchase_price|number_format:2:",":"." }</td>
|
||||
<td style="text-align:right;">{$ROW.margin|number_format:2:",":"." } ({$ROW.marginInPercent|number_format:2:",":"."}%)</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
408
modules/EcmReportsBackUp20151106/tpls/PDF/ReportBuyesByVat.tpl
Executable file
408
modules/EcmReportsBackUp20151106/tpls/PDF/ReportBuyesByVat.tpl
Executable file
@@ -0,0 +1,408 @@
|
||||
{literal}
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
@page {
|
||||
size: auto;
|
||||
odd-header-name: html_MyHeader1;
|
||||
odd-footer-name: html_MyFooter1;
|
||||
|
||||
}
|
||||
@page chapter2 {
|
||||
odd-header-name: html_MyHeader2;
|
||||
odd-footer-name: html_MyFooter2;
|
||||
}
|
||||
@page noheader {
|
||||
odd-header-name: _blank;
|
||||
odd-footer-name: _blank;
|
||||
}
|
||||
div.chapter2 {
|
||||
page-break-before: always;
|
||||
page: chapter2;
|
||||
}
|
||||
div.noheader {
|
||||
page-break-before: always;
|
||||
page: noheader;
|
||||
|
||||
}
|
||||
#newpage
|
||||
{
|
||||
padding-top: 80px;
|
||||
}
|
||||
body {
|
||||
font-size: 10px;
|
||||
}
|
||||
/* overall */
|
||||
.tablesorter-blue {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
margin: 100px 0 15px;
|
||||
text-align: left;
|
||||
border-spacing: 0;
|
||||
border: #fff 1px solid;
|
||||
border-width: 1px 0 0 1px;
|
||||
}
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue td {
|
||||
border: #fff 1px solid;
|
||||
border-width: 0 1px 1px 0;
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
/* header */
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue thead td {
|
||||
font: bold 10px/18px Arial, Sans-serif;
|
||||
color: #000;
|
||||
background-color: #fff;
|
||||
padding: 4px;
|
||||
border-top: 2px solid red;
|
||||
}
|
||||
.tablesorter-blue tbody td,
|
||||
.tablesorter-blue tfoot th,
|
||||
.tablesorter-blue tfoot td {
|
||||
padding: 4px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.tablesorter-blue .header,
|
||||
.tablesorter-blue .tablesorter-header {
|
||||
/* black (unsorted) double arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
||||
/* white (unsorted) double arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-unsorted.gif); */
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
padding: 3px 18px 3px 3px;
|
||||
white-space: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerAsc {
|
||||
background-color: #E7E7E9;
|
||||
/* black asc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
||||
/* white asc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-asc.gif); */
|
||||
}
|
||||
.tablesorter-blue .headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerDesc {
|
||||
background-color: #E7E7E9;
|
||||
/* black desc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
||||
/* white desc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-desc.gif); */
|
||||
}
|
||||
.tablesorter-blue thead .sorter-false {
|
||||
background-image: none;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* tfoot */
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortUp,
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortDown,
|
||||
.tablesorter-blue tfoot .tablesorter-headerAsc,
|
||||
.tablesorter-blue tfoot .tablesorter-headerDesc {
|
||||
/* remove sort arrows from footer */
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* tbody */
|
||||
.tablesorter-blue td {
|
||||
color: #3d3d3d;
|
||||
background-color: #fff;
|
||||
padding: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* hovered row colors
|
||||
you'll need to add additional lines for
|
||||
rows with more than 2 child rows
|
||||
*/
|
||||
.tablesorter-blue tbody > tr:hover > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #d9d9d9;
|
||||
}
|
||||
.tablesorter-blue tbody > tr.odd:hover > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
|
||||
|
||||
/* Zebra Widget - row alternating colors */
|
||||
.tablesorter-blue tbody tr.odd td {
|
||||
background-color: #ebf2fa;
|
||||
}
|
||||
.tablesorter-blue tbody tr.even td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Column Widget - column sort colors */
|
||||
.tablesorter-blue td.primary,
|
||||
.tablesorter-blue tr.odd td.primary {
|
||||
background-color: #99b3e6;
|
||||
}
|
||||
.tablesorter-blue tr.even td.primary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue td.secondary,
|
||||
.tablesorter-blue tr.odd td.secondary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue tr.even td.secondary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue td.tertiary,
|
||||
.tablesorter-blue tr.odd td.tertiary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue tr.even td.tertiary {
|
||||
background-color: #ebf0fa;
|
||||
}
|
||||
|
||||
/* caption */
|
||||
caption {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* filter widget */
|
||||
.tablesorter-blue .tablesorter-filter-row td {
|
||||
background: #eee;
|
||||
line-height: normal;
|
||||
text-align: center; /* center the input */
|
||||
-webkit-transition: line-height 0.1s ease;
|
||||
-moz-transition: line-height 0.1s ease;
|
||||
-o-transition: line-height 0.1s ease;
|
||||
transition: line-height 0.1s ease;
|
||||
}
|
||||
/* optional disabled input styling */
|
||||
.tablesorter-blue .tablesorter-filter-row .disabled {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
/* hidden filter row */
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme td {
|
||||
/*** *********************************************** ***/
|
||||
/*** change this padding to modify the thickness ***/
|
||||
/*** of the closed filter row (height = padding x 2) ***/
|
||||
padding: 2px;
|
||||
/*** *********************************************** ***/
|
||||
margin: 0;
|
||||
line-height: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter {
|
||||
height: 1px;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
/* don't use visibility: hidden because it disables tabbing */
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
}
|
||||
/* filters */
|
||||
.tablesorter-blue .tablesorter-filter {
|
||||
width: 98%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: #333;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
-webkit-transition: height 0.1s ease;
|
||||
-moz-transition: height 0.1s ease;
|
||||
-o-transition: height 0.1s ease;
|
||||
transition: height 0.1s ease;
|
||||
}
|
||||
|
||||
/* ajax error row */
|
||||
.tablesorter .tablesorter-errorRow td {
|
||||
cursor: pointer;
|
||||
background-color: #e6bf99;
|
||||
}
|
||||
|
||||
#table tfoot th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<htmlpageheader name="MyHeader1">
|
||||
{/literal}
|
||||
<div style="text-align: left; border-bottom: 1px solid #000000; font-weight: bold; font-size: 12pt;">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="font-size: 25px; font-weight: bold">{$MOD.LBL_REPORT_RECEIVE_REGISTER}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">SAAS-SYSTEMS</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">Data wygenerowania: {$current_date_formatted}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">Rejestr od: {$date_from} do: {$date_to}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{literal}
|
||||
</htmlpageheader>
|
||||
|
||||
|
||||
<htmlpagefooter name="MyFooter1">
|
||||
<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt;
|
||||
color: #000000; font-weight: bold; font-style: italic;"><tr>
|
||||
<td width="33%"><span style="font-weight: bold; font-style: italic;">{DATE j.m.Y}</span></td>
|
||||
<td width="33%" align="center" style="font-weight: bold; font-style: italic;">{PAGENO}/{nbpg}</td>
|
||||
<td width="33%" style="text-align: right; ">Rejestr zakupu</td>
|
||||
</tr></table>
|
||||
</htmlpagefooter>
|
||||
|
||||
<htmlpagefooter name="MyFooter2">
|
||||
<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt;
|
||||
color: #000000; font-weight: bold; font-style: italic;"><tr>
|
||||
<td width="33%"><span style="font-weight: bold; font-style: italic;">SAAS-SYSTEMS</span></td>
|
||||
<td width="33%" align="center" style="font-weight: bold; font-style: italic;">{PAGENO}/{nbpg}</td>
|
||||
<td width="33%" style="text-align: right; ">{DATE j-m-Y}</td>
|
||||
</tr></table>
|
||||
</htmlpagefooter>
|
||||
{/literal}
|
||||
<div>
|
||||
|
||||
{foreach from=$dataPart key=klucz item=data name=data}
|
||||
<table id="myTable" class="tablesorter-blue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">Lp</th>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_DOC_NUMBER}</th>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_CREATE_LAB}</th>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_SALE_DATE}</th>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_SALES_NIP}</th>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_LIST_SUBJECT}</th>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_BUYER_VALUE_BRUTTO}</th>
|
||||
{foreach from= $vat_value key= t item= w}
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_BUYER_VALUE_NETTO} {$t}</th>
|
||||
{if $w.sumavat != NULL}
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt;">{$MOD.LBL_VAT} {$t}</th>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black; font-weight: bold; font-size: 12pt; ">{$MOD.LBL_SUM_VAT}</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from= $data key= k item= i}
|
||||
|
||||
<tr>
|
||||
<td>{$k}</td>
|
||||
<td> {$i.document_number}</td>
|
||||
<td>{$i.document_date|date_format:"%d.%m.%Y"}</td>
|
||||
<td>{$i.register_date|date_format:"%d.%m.%Y"}</td>
|
||||
|
||||
<td>{$i.to_vatid}</td>
|
||||
<td>{$i.name}</td>
|
||||
|
||||
<td style = "text-align: right">{$i.value|number_format:2:",":"."}</td>
|
||||
{foreach from=$vat_value key=o item=j}
|
||||
{assign var=prawdafalsz value=false}
|
||||
{foreach from=$i.vaty item = e}
|
||||
{if $o == $e.vat_value}
|
||||
{assign var=prawdafalsz value=true}
|
||||
{assign var=prawdafalszvat value=$e.vat}
|
||||
{assign var=prawdafalsznetto value=$e.netto}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $prawdafalsz == true }
|
||||
<td style = "text-align: right">{$prawdafalsznetto|number_format:2:",":"."}</td>
|
||||
{if $j.sumavat != NULL}
|
||||
<td style = "text-align: right">{$prawdafalszvat|number_format:2:",":"."}</td>
|
||||
{/if}
|
||||
{else}
|
||||
<td style = "text-align: right">0,00</td>
|
||||
{if $j.sumavat != NULL}
|
||||
<td style = "text-align: right">0,00</td>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<td style = "text-align: right">{$i.vatsumapozycja|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;" colspan="6">{$MOD.LBL_PAGE_SUM}</td>
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$pageBruttoVat[$klucz].brutto|number_format:2:",":"."}</td>
|
||||
{foreach from=$pageVatSum[$klucz] key =vatName item=vatValue}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$vatValue.netto|number_format:2:",":"."}</td>
|
||||
{if $vatValue.vat != 'null' || $vatValue.vat=='0'}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$vatValue.vat|number_format:2:",":"."}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt; ">{$pageBruttoVat[$klucz].vat|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;" colspan="6">{$MOD.LBL_TRANSFER_SUM}</td>
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$partialBruttoVat[$klucz].brutto-$pageBruttoVat[$klucz].brutto|number_format:2:",":"."}</td>
|
||||
{if $klucz>0}
|
||||
{assign var='dupa' value=$klucz-1}
|
||||
{foreach from=$partialVatSum[$dupa] key =vatName item=vatValue}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$vatValue.netto|number_format:2:",":"."}</td>
|
||||
{if $vatValue.vat != 'null' || $vatValue.vat=='0'}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$vatValue.vat|number_format:2:",":"."}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
|
||||
{foreach from=$partialVatSum[$klucz] key =vatName item=vatValue}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">0,00</td>
|
||||
{if $vatValue.vat != 'null' || $vatValue.vat=='0'}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">0,00</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt; ">{$partialBruttoVat[$klucz].vat-$pageBruttoVat[$klucz].vat|number_format:2:",":"."}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;" colspan="6">{$MOD.LBL_VALUE}</td>
|
||||
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$partialBruttoVat[$klucz].brutto|number_format:2:",":"."}</td>
|
||||
{foreach from=$partialVatSum[$klucz] key =vatName item=vatValue}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$vatValue.netto|number_format:2:",":"."}</td>
|
||||
{if $vatValue.vat != 'null' || $vatValue.vat=='0'}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt;">{$vatValue.vat|number_format:2:",":"."}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<td style="text-align: right; font-weight: bold; font-size: 12pt; ">{$partialBruttoVat[$klucz].vat|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
{if !$smarty.foreach.data.last}
|
||||
<newpage>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
46
modules/EcmReportsBackUp20151106/tpls/PDF/ReportEcmWorkCards.tpl
Executable file
46
modules/EcmReportsBackUp20151106/tpls/PDF/ReportEcmWorkCards.tpl
Executable file
@@ -0,0 +1,46 @@
|
||||
<link class="theme" rel="stylesheet" href="modules/EcmReports/tpls/PDF/css/style.css">
|
||||
<h1>{$MOD.LBL_REPORT} {$MOD.LBL_REPORT_ECMWORKCARDS}</h1>
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="15%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_WORKER_NAME}</th>
|
||||
<th width="7%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_ACTION_CODE}</th>
|
||||
<th width="30%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_ACTION}</th>
|
||||
<th width="5%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="7%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_PRODUCT_CODE}</th>
|
||||
<th width="40%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_PRODUCTS}</th>
|
||||
<th width="10%" style = "border-bottom: 1px solid black;text-align: right">{$MOD.LBL_SUM_NETTO}</th>
|
||||
<th width="10%" style = "border-bottom: 1px solid black;text-align: right">{$MOD.LBL_SUM_BRUTTO}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$data item=rekord key=kl}
|
||||
<tr id="parent_{$kl}" class="{$rekord.class}">
|
||||
<td style = "border-top: 1px solid black;border-left: 1px solid black;">{$rekord.work_name}</td>
|
||||
<td colspan="5" style = "border-top: 1px solid black;"></td>
|
||||
<td style = "border-top: 1px solid black;text-align: right">{$rekord.netto}</td>
|
||||
<td style = "border-top: 1px solid black;border-right: 1px solid black;text-align: right">{$rekord.brutto}</td>
|
||||
</tr>
|
||||
{foreach from=$rekord.actions item=czynnosc}
|
||||
<tr style="background-color: #e6e6e6;">
|
||||
<td style = "border-left: 1px solid black;text-align: left"></td>
|
||||
<td style = "text-align: left">{$czynnosc.actioncode}</td>
|
||||
<td style = "text-align: left">{$czynnosc.actionname}</td>
|
||||
<td style = "text-align: right">{$czynnosc.quantity}</td>
|
||||
<td style = "text-align: left">{$czynnosc.productcode}</td>
|
||||
<td style = "text-align: left">{$czynnosc.productname}</td>
|
||||
<td style = "text-align: right">{$czynnosc.netto}</td>
|
||||
<td style = "border-right: 1px solid black;text-align: right">{$czynnosc.brutto}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th style="text-align: left;">{$MOD.LBL_SUM}</th>
|
||||
<th colspan="5"></th>
|
||||
<th style="text-align: right">{$suma.netto}</th>
|
||||
<th style="text-align: right">{$suma.brutto}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
49
modules/EcmReportsBackUp20151106/tpls/PDF/ReportEcmWorkCardsEcmProduct.tpl
Executable file
49
modules/EcmReportsBackUp20151106/tpls/PDF/ReportEcmWorkCardsEcmProduct.tpl
Executable file
@@ -0,0 +1,49 @@
|
||||
<link class="theme" rel="stylesheet" href="modules/EcmReports/tpls/PDF/css/style.css">
|
||||
<h1>{$MOD.LBL_REPORT} {$MOD.LBL_REPORT_ECMWORKCARDS_PRODUCTS} </h1>
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="40%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_PRODUCTS}</th>
|
||||
<th width="15%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_WORKER_NAME}</th>
|
||||
<th width="7%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_ACTION_CODE}</th>
|
||||
<th width="30%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_ACTION}</th>
|
||||
<th width="5%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="5%" style = "border-bottom: 1px solid black;text-align: left">{$MOD.LBL_PW_QUANTITY}</th>
|
||||
<th width="11%" style = "border-bottom: 1px solid black;text-align: right">{$MOD.LBL_SUM_NETTO}</th>
|
||||
<th width="11%" style = "border-bottom: 1px solid black;text-align: right">{$MOD.LBL_SUM_BRUTTO}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$data item=rekord key=kl}
|
||||
<tr id="parent_{$rekord.indeks}">
|
||||
<td style = "border-top: 1px solid black;border-left: 1px solid black;">{$rekord.code} {$rekord.name}</td>
|
||||
<td colspan="4" style = "border-top: 1px solid black;"></td>
|
||||
<td style = "border-top: 1px solid black;text-align: right">{$rekord.pw}</td>
|
||||
<td style = "border-top: 1px solid black;text-align: right">{$rekord.netto|number_format:2:",":"."}</td>
|
||||
<td style = "border-top: 1px solid black;border-right: 1px solid black;text-align: right">{$rekord.brutto|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
{foreach from=$rekord.actions key=klucz item=pracownik}
|
||||
{foreach from=$pracownik item=czynnosc}
|
||||
<tr name="child_{$rekord.indeks}" style="background-color: #e6e6e6;" role="row">
|
||||
<td style = "border-left: 1px solid black;text-align: left"></td>
|
||||
<td style = "text-align: left">{$klucz}</td>
|
||||
<td style = "text-align: left">{$czynnosc.actioncode}</td>
|
||||
<td style = "text-align: left">{$czynnosc.actionname}</td>
|
||||
<td style = "text-align: right">{$czynnosc.quantity}</td>
|
||||
<td style = "text-align: right">{$rekord.pw}</td>
|
||||
<td style = "text-align: right">{$czynnosc.netto|number_format:2:",":"."}</td>
|
||||
<td style = "border-right: 1px solid black;text-align: right">{$czynnosc.brutto|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th style="text-align: left;">{$MOD.LBL_SUM}</th>
|
||||
<th colspan="5"></th>
|
||||
<th style="text-align: right;">{$suma.netto|number_format:2:",":"."}</th>
|
||||
<th style="text-align: right;">{$suma.brutto|number_format:2:",":"."}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
113
modules/EcmReportsBackUp20151106/tpls/PDF/ReportStockDocMoves.tpl
Executable file
113
modules/EcmReportsBackUp20151106/tpls/PDF/ReportStockDocMoves.tpl
Executable file
@@ -0,0 +1,113 @@
|
||||
|
||||
{if $viewSelected eq 'documents'}
|
||||
<table id="myTable" style="font-size: 8pt; width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Lp.</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt; width:10%">Numer dokumentu</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt; width:10%">Data</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">
|
||||
|
||||
{if $documentSelected eq 'EcmStockDocInsideOuts' or $documentSelected eq 'EcmStockDocInsideIns' or $documentSelected eq 'EcmStockDocCorrects'}
|
||||
Kartoteka materiałowa
|
||||
{elseif $documentSelected eq 'EcmStockDocMoves'}
|
||||
Magazyn docelowy
|
||||
{elseif $documentSelected eq 'EcmStockDocIns'}
|
||||
Dostawca
|
||||
{elseif $documentSelected eq 'EcmStockDocOuts'}
|
||||
Odbiorca
|
||||
{elseif $documentSelected eq 'EcmInvoiceOuts'}
|
||||
Kontrahent
|
||||
{/if}
|
||||
</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Opis dokumentu</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Wartość</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Magazyn</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
{foreach from=$DATA.doc key="key" item="item" name=loop}
|
||||
<tr>
|
||||
<td>{assign var=pozycja value=$pozycja+1}{$pozycja}</td>
|
||||
<td>
|
||||
{$item.typ} {$item.numer}
|
||||
</td>
|
||||
<td>
|
||||
{$item.data}
|
||||
</td>
|
||||
<td>
|
||||
{if $documentSelected eq 'EcmStockDocInsideOuts' or $documentSelected eq 'EcmStockDocInsideIns' or $documentSelected eq 'EcmStockDocCorrects'}
|
||||
{$item.kartoteka}
|
||||
{elseif $documentSelected eq 'EcmStockDocMoves'}
|
||||
{$item.magazynIn}
|
||||
{elseif $documentSelected eq 'EcmStockDocIns' or $documentSelected eq 'EcmStockDocOuts' or $documentSelected eq 'EcmInvoiceOuts' }
|
||||
{$item.accountNazwa}
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{$item.nazwa}
|
||||
</td>
|
||||
|
||||
<td style="text-align: right">
|
||||
{assign var=suma value=$suma+$item.wartosc}
|
||||
{$item.wartosc|number_format:2:",":"."}
|
||||
</td>
|
||||
<td style="text-align: left">
|
||||
{$item.magazyn}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan='5' style="border-top: 1px solid black;text-align:left;">Suma:</th>
|
||||
<th style="border-top: 1px solid black;text-align:right;">{$suma|number_format:2:",":"." }</th>
|
||||
<th style="border-top: 1px solid black;"></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{elseif $viewSelected eq 'positions'}
|
||||
<table id="myTable" style="font-size: 8pt; width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Lp.</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Indeks</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Nazwa</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Jm</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Ilość</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Wartość</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA.prod key="key" item="item" name=loop}
|
||||
<tr>
|
||||
<td>{assign var=pozycja value=$pozycja+1}{$pozycja}</td>
|
||||
<td>
|
||||
{$item.kod}
|
||||
</td>
|
||||
<td>
|
||||
{$item.nazwa}
|
||||
</td>
|
||||
<td>
|
||||
{$item.jm}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{assign var=sumaIlosci value=$sumaIlosci+$item.ilosc}
|
||||
{$item.ilosc|number_format:2:",":"."}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{assign var=suma value=$suma+$item.wartosc}
|
||||
{$item.wartosc|number_format:2:",":"."}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan='4' style="border-top: 1px solid black;text-align:left;">Suma:</th>
|
||||
<th colspan='1' style="border-top: 1px solid black;text-align:right;">{$sumaIlosci|number_format:2:",":"." }</th>
|
||||
<th colspan='1' style="border-top: 1px solid black;text-align:right;">{$suma|number_format:2:",":"." }</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{/if}
|
||||
300
modules/EcmReportsBackUp20151106/tpls/PDF/ReportStockNewDoc.tpl
Executable file
300
modules/EcmReportsBackUp20151106/tpls/PDF/ReportStockNewDoc.tpl
Executable file
@@ -0,0 +1,300 @@
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
body {
|
||||
font-size: 8px;
|
||||
}
|
||||
/* overall */
|
||||
.tablesorter-blue {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
margin: 10px 0 15px;
|
||||
text-align: left;
|
||||
border-spacing: 0;
|
||||
border: #fff 1px solid;
|
||||
border-width: 1px 0 0 1px;
|
||||
}
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue td {
|
||||
border: #fff 1px solid;
|
||||
border-width: 0 1px 1px 0;
|
||||
}
|
||||
|
||||
/* header */
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue thead td {
|
||||
font: bold 10px/18px Arial, Sans-serif;
|
||||
color: #fff;
|
||||
background-color: #252525;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
border-top: 2px solid #ABC3D7;
|
||||
}
|
||||
.tablesorter-blue tbody td,
|
||||
.tablesorter-blue tfoot th,
|
||||
.tablesorter-blue tfoot td {
|
||||
padding: 4px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.tablesorter-blue .header,
|
||||
.tablesorter-blue .tablesorter-header {
|
||||
/* black (unsorted) double arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
||||
/* white (unsorted) double arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-unsorted.gif); */
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
padding: 3px 18px 3px 3px;
|
||||
white-space: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerAsc {
|
||||
background-color: #E7E7E9;
|
||||
/* black asc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
||||
/* white asc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-asc.gif); */
|
||||
}
|
||||
.tablesorter-blue .headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerDesc {
|
||||
background-color: #E7E7E9;
|
||||
/* black desc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
||||
/* white desc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-desc.gif); */
|
||||
}
|
||||
.tablesorter-blue thead .sorter-false {
|
||||
background-image: none;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* tfoot */
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortUp,
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortDown,
|
||||
.tablesorter-blue tfoot .tablesorter-headerAsc,
|
||||
.tablesorter-blue tfoot .tablesorter-headerDesc {
|
||||
/* remove sort arrows from footer */
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* tbody */
|
||||
.tablesorter-blue td {
|
||||
color: #3d3d3d;
|
||||
background-color: #fff;
|
||||
padding: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* hovered row colors
|
||||
you'll need to add additional lines for
|
||||
rows with more than 2 child rows
|
||||
*/
|
||||
.tablesorter-blue tbody > tr:hover > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #d9d9d9;
|
||||
}
|
||||
.tablesorter-blue tbody > tr.odd:hover > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
|
||||
/* table processing indicator */
|
||||
.tablesorter-blue .tablesorter-processing {
|
||||
background-position: center center !important;
|
||||
background-repeat: no-repeat !important;
|
||||
/* background-image: url(../addons/pager/icons/loading.gif) !important; */
|
||||
background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !important;
|
||||
}
|
||||
|
||||
/* Zebra Widget - row alternating colors */
|
||||
.tablesorter-blue tbody tr.odd td {
|
||||
background-color: #ebf2fa;
|
||||
}
|
||||
.tablesorter-blue tbody tr.even td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Column Widget - column sort colors */
|
||||
.tablesorter-blue td.primary,
|
||||
.tablesorter-blue tr.odd td.primary {
|
||||
background-color: #99b3e6;
|
||||
}
|
||||
.tablesorter-blue tr.even td.primary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue td.secondary,
|
||||
.tablesorter-blue tr.odd td.secondary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue tr.even td.secondary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue td.tertiary,
|
||||
.tablesorter-blue tr.odd td.tertiary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue tr.even td.tertiary {
|
||||
background-color: #ebf0fa;
|
||||
}
|
||||
|
||||
/* caption */
|
||||
caption {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* filter widget */
|
||||
.tablesorter-blue .tablesorter-filter-row td {
|
||||
background: #eee;
|
||||
line-height: normal;
|
||||
text-align: center; /* center the input */
|
||||
-webkit-transition: line-height 0.1s ease;
|
||||
-moz-transition: line-height 0.1s ease;
|
||||
-o-transition: line-height 0.1s ease;
|
||||
transition: line-height 0.1s ease;
|
||||
}
|
||||
/* optional disabled input styling */
|
||||
.tablesorter-blue .tablesorter-filter-row .disabled {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
/* hidden filter row */
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme td {
|
||||
/*** *********************************************** ***/
|
||||
/*** change this padding to modify the thickness ***/
|
||||
/*** of the closed filter row (height = padding x 2) ***/
|
||||
padding: 2px;
|
||||
/*** *********************************************** ***/
|
||||
margin: 0;
|
||||
line-height: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter {
|
||||
height: 1px;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
/* don't use visibility: hidden because it disables tabbing */
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
}
|
||||
/* filters */
|
||||
.tablesorter-blue .tablesorter-filter {
|
||||
width: 98%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: #333;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
-webkit-transition: height 0.1s ease;
|
||||
-moz-transition: height 0.1s ease;
|
||||
-o-transition: height 0.1s ease;
|
||||
transition: height 0.1s ease;
|
||||
}
|
||||
|
||||
/* ajax error row */
|
||||
.tablesorter .tablesorter-errorRow td {
|
||||
cursor: pointer;
|
||||
background-color: #e6bf99;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.subcategory {
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.product {
|
||||
padding-left: 55px;
|
||||
}
|
||||
|
||||
#myTable tbody tr.category td {
|
||||
background-color: #96FF7C;
|
||||
}
|
||||
|
||||
#myTable tbody tr.sumAll td{
|
||||
background-color: #242424;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.sumRow {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="1%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">L.p.</th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_INDEX}/{$MOD.LBL_NAME}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan {$date_from}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Przych<63>d</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Rozch<63>d</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan {$date_to}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{assign var="number" value=1}
|
||||
{foreach from=$DATA key="key" item="item" name=loop}
|
||||
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td class="oddListRowS1 alignLeft" style="border-bottom:1pt solid black;"><b>{$number}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:left;border-bottom:1pt solid black;" rowspan="{$currow}" ><b>{$item.product_code}</b><br><b>{$item.product_name}</b></td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;">{$item.total_quantity_old|number_format:2:",":"." } {$item.unit_id}<br>{$item.total_price_old|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;">{$item.przychod_q|number_format:2:",":"." } {$item.unit_id}<br>{$item.przychod_w|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;">{$item.rozchod_q|number_format:2:",":"." } {$item.unit_id}<br>{$item.rozchod_w|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;">{$item.total_quantity_now|number_format:2:",":"." } {$item.unit_id}<br>{$item.total_price_now|number_format:2:",":"." }</td>
|
||||
{assign var="number" value=$number+1}
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='line'></td>
|
||||
<td class='line'></td>
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tr><td></td><td style="text-align:right;"><b>Razem ilo<EFBFBD><EFBFBD>:</b></td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$TOTAL_QUANTITY_OLD|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$przychod_q|number_format:2:",":"." }</b>
|
||||
</td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$rozchod_q|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$TOTAL_QUANTITY_NOW|number_format:2:",":"." }</b></td></tr>
|
||||
<tr><td></td><td style="text-align:right;"><b>Razem warto<EFBFBD><EFBFBD>:</b></td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$TOTAL_VALUE_OLD|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$przychod_w|number_format:2:",":"." }</b>
|
||||
</td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$rozchod_w|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow" style="text-align:right"><b>{$TOTAL_VALUE_NOW|number_format:2:",":"." }</b></td></tr>
|
||||
</table>
|
||||
308
modules/EcmReportsBackUp20151106/tpls/PDF/ReportStocksDoc.tpl
Executable file
308
modules/EcmReportsBackUp20151106/tpls/PDF/ReportStocksDoc.tpl
Executable file
@@ -0,0 +1,308 @@
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
body {
|
||||
font-size: 8px;
|
||||
}
|
||||
/* overall */
|
||||
.tablesorter-blue {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
margin: 10px 0 15px;
|
||||
text-align: left;
|
||||
border-spacing: 0;
|
||||
border: #fff 1px solid;
|
||||
border-width: 1px 0 0 1px;
|
||||
}
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue td {
|
||||
border: #fff 1px solid;
|
||||
border-width: 0 1px 1px 0;
|
||||
}
|
||||
|
||||
/* header */
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue thead td {
|
||||
font: bold 10px/18px Arial, Sans-serif;
|
||||
color: #fff;
|
||||
background-color: #252525;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
border-top: 2px solid #ABC3D7;
|
||||
}
|
||||
.tablesorter-blue tbody td,
|
||||
.tablesorter-blue tfoot th,
|
||||
.tablesorter-blue tfoot td {
|
||||
padding: 4px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.tablesorter-blue .header,
|
||||
.tablesorter-blue .tablesorter-header {
|
||||
/* black (unsorted) double arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
||||
/* white (unsorted) double arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-unsorted.gif); */
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
padding: 3px 18px 3px 3px;
|
||||
white-space: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerAsc {
|
||||
background-color: #E7E7E9;
|
||||
/* black asc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
||||
/* white asc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-asc.gif); */
|
||||
}
|
||||
.tablesorter-blue .headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerDesc {
|
||||
background-color: #E7E7E9;
|
||||
/* black desc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
||||
/* white desc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-desc.gif); */
|
||||
}
|
||||
.tablesorter-blue thead .sorter-false {
|
||||
background-image: none;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* tfoot */
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortUp,
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortDown,
|
||||
.tablesorter-blue tfoot .tablesorter-headerAsc,
|
||||
.tablesorter-blue tfoot .tablesorter-headerDesc {
|
||||
/* remove sort arrows from footer */
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* tbody */
|
||||
.tablesorter-blue td {
|
||||
color: #3d3d3d;
|
||||
background-color: #fff;
|
||||
padding: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* hovered row colors
|
||||
you'll need to add additional lines for
|
||||
rows with more than 2 child rows
|
||||
*/
|
||||
.tablesorter-blue tbody > tr:hover > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #d9d9d9;
|
||||
}
|
||||
.tablesorter-blue tbody > tr.odd:hover > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
|
||||
/* table processing indicator */
|
||||
.tablesorter-blue .tablesorter-processing {
|
||||
background-position: center center !important;
|
||||
background-repeat: no-repeat !important;
|
||||
/* background-image: url(../addons/pager/icons/loading.gif) !important; */
|
||||
background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !important;
|
||||
}
|
||||
|
||||
/* Zebra Widget - row alternating colors */
|
||||
.tablesorter-blue tbody tr.odd td {
|
||||
background-color: #ebf2fa;
|
||||
}
|
||||
.tablesorter-blue tbody tr.even td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Column Widget - column sort colors */
|
||||
.tablesorter-blue td.primary,
|
||||
.tablesorter-blue tr.odd td.primary {
|
||||
background-color: #99b3e6;
|
||||
}
|
||||
.tablesorter-blue tr.even td.primary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue td.secondary,
|
||||
.tablesorter-blue tr.odd td.secondary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue tr.even td.secondary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue td.tertiary,
|
||||
.tablesorter-blue tr.odd td.tertiary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue tr.even td.tertiary {
|
||||
background-color: #ebf0fa;
|
||||
}
|
||||
|
||||
/* caption */
|
||||
caption {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* filter widget */
|
||||
.tablesorter-blue .tablesorter-filter-row td {
|
||||
background: #eee;
|
||||
line-height: normal;
|
||||
text-align: center; /* center the input */
|
||||
-webkit-transition: line-height 0.1s ease;
|
||||
-moz-transition: line-height 0.1s ease;
|
||||
-o-transition: line-height 0.1s ease;
|
||||
transition: line-height 0.1s ease;
|
||||
}
|
||||
/* optional disabled input styling */
|
||||
.tablesorter-blue .tablesorter-filter-row .disabled {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
/* hidden filter row */
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme td {
|
||||
/*** *********************************************** ***/
|
||||
/*** change this padding to modify the thickness ***/
|
||||
/*** of the closed filter row (height = padding x 2) ***/
|
||||
padding: 2px;
|
||||
/*** *********************************************** ***/
|
||||
margin: 0;
|
||||
line-height: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter {
|
||||
height: 1px;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
/* don't use visibility: hidden because it disables tabbing */
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
}
|
||||
/* filters */
|
||||
.tablesorter-blue .tablesorter-filter {
|
||||
width: 98%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: #333;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
-webkit-transition: height 0.1s ease;
|
||||
-moz-transition: height 0.1s ease;
|
||||
-o-transition: height 0.1s ease;
|
||||
transition: height 0.1s ease;
|
||||
}
|
||||
|
||||
/* ajax error row */
|
||||
.tablesorter .tablesorter-errorRow td {
|
||||
cursor: pointer;
|
||||
background-color: #e6bf99;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.subcategory {
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.product {
|
||||
padding-left: 55px;
|
||||
}
|
||||
|
||||
#myTable tbody tr.category td {
|
||||
background-color: #96FF7C;
|
||||
}
|
||||
|
||||
#myTable tbody tr.sumAll td{
|
||||
background-color: #242424;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.sumRow {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#myTable tbody tr td.alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="8%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_INDEX}</th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_NAME}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_DOC_NUMBER}</th>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_CONSIGNMENTS}</th>
|
||||
{/if}
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_PRICE}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_VALUE}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
{foreach from=$DATA key="key" item="item" name=loop}
|
||||
|
||||
<tr style="border-bottom:1pt solid black;">
|
||||
{if $item.add|@count>1}
|
||||
{assign var="rowspan" value=$item.add|@count}
|
||||
{assign var="rowspanadd" value=1}
|
||||
{assign var="currow" value=$rowspan+$rowspanadd}
|
||||
{else}
|
||||
{assign var="currow" value=1}
|
||||
{/if}
|
||||
<td class="oddListRowS1 alignLeft" rowspan="{$currow}" style="border-bottom:1pt solid black;"><b>{$item.product_code}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:left;" rowspan="{$currow}" style="border-bottom:1pt solid black;text-align:left;"><b>{$item.product_name}</b></td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$item.parent_type} {$item.parent_name}</b></td>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$item.part_no}</b></td>
|
||||
{/if}
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$item.total_quantity|number_format:2:",":"." } {$item.unit_id}</b></td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$item.price|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$item.total_price|number_format:2:",":"." }</b></td>
|
||||
</tr>
|
||||
{if $item.add|@count>1}
|
||||
{foreach from=$item.add key="kis" item="position" name=loop}
|
||||
<tr>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$position.parent_type} {$position.parent_name}</b></td>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$position.part_no}</b></td>
|
||||
{/if}
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$position.quantity|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$position.price|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" style="border-bottom:1pt solid black;"><b>{$position.position_value|number_format:2:",":"." }</b></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tr><td></td><td></td><td class="oddListRowS1 sumRow"><b>Razem:</b></td><td class="oddListRowS1 sumRow"><b>{$TOTAL_QUANTITY|number_format:2:",":"." }</b></td><td></td><td class="oddListRowS1 sumRow"><b>{$TOTAL_VALUE|number_format:2:",":"." }</b></td></tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
411
modules/EcmReportsBackUp20151106/tpls/PDF/VatSalesRegister.tpl
Executable file
411
modules/EcmReportsBackUp20151106/tpls/PDF/VatSalesRegister.tpl
Executable file
@@ -0,0 +1,411 @@
|
||||
{literal}
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
@page {
|
||||
size: auto;
|
||||
odd-header-name: html_MyHeader1;
|
||||
odd-footer-name: html_MyFooter1;
|
||||
}
|
||||
@page chapter2 {
|
||||
odd-header-name: html_MyHeader2;
|
||||
odd-footer-name: html_MyFooter2;
|
||||
}
|
||||
@page noheader {
|
||||
odd-header-name: _blank;
|
||||
odd-footer-name: _blank;
|
||||
}
|
||||
div.chapter2 {
|
||||
page-break-before: always;
|
||||
page: chapter2;
|
||||
}
|
||||
div.noheader {
|
||||
page-break-before: always;
|
||||
page: noheader;
|
||||
}
|
||||
body {
|
||||
font-size: 8px;
|
||||
}
|
||||
/* overall */
|
||||
.tablesorter-blue {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
margin: 10px 0 15px;
|
||||
text-align: left;
|
||||
border-spacing: 0;
|
||||
border: #fff 1px solid;
|
||||
border-width: 1px 0 0 1px;
|
||||
}
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue td {
|
||||
border: #fff 1px solid;
|
||||
border-width: 0 1px 1px 0;
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
/* header */
|
||||
.tablesorter-blue th,
|
||||
.tablesorter-blue thead td {
|
||||
font: bold 10px/18px Arial, Sans-serif;
|
||||
color: #000;
|
||||
background-color: #fff;
|
||||
padding: 4px;
|
||||
border-top: 2px solid red;
|
||||
}
|
||||
.tablesorter-blue tbody td,
|
||||
.tablesorter-blue tfoot th,
|
||||
.tablesorter-blue tfoot td {
|
||||
padding: 4px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.tablesorter-blue .header,
|
||||
.tablesorter-blue .tablesorter-header {
|
||||
/* black (unsorted) double arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
||||
/* white (unsorted) double arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-unsorted.gif); */
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
padding: 3px 18px 3px 3px;
|
||||
white-space: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerSortUp,
|
||||
.tablesorter-blue .tablesorter-headerAsc {
|
||||
background-color: #E7E7E9;
|
||||
/* black asc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
||||
/* white asc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-asc.gif); */
|
||||
}
|
||||
.tablesorter-blue .headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerSortDown,
|
||||
.tablesorter-blue .tablesorter-headerDesc {
|
||||
background-color: #E7E7E9;
|
||||
/* black desc arrow */
|
||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
||||
/* white desc arrow */
|
||||
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
|
||||
/* image */
|
||||
/* background-image: url(images/black-desc.gif); */
|
||||
}
|
||||
.tablesorter-blue thead .sorter-false {
|
||||
background-image: none;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* tfoot */
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortUp,
|
||||
.tablesorter-blue tfoot .tablesorter-headerSortDown,
|
||||
.tablesorter-blue tfoot .tablesorter-headerAsc,
|
||||
.tablesorter-blue tfoot .tablesorter-headerDesc {
|
||||
/* remove sort arrows from footer */
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* tbody */
|
||||
.tablesorter-blue td {
|
||||
color: #3d3d3d;
|
||||
background-color: #fff;
|
||||
padding: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* hovered row colors
|
||||
you'll need to add additional lines for
|
||||
rows with more than 2 child rows
|
||||
*/
|
||||
.tablesorter-blue tbody > tr:hover > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #d9d9d9;
|
||||
}
|
||||
.tablesorter-blue tbody > tr.odd:hover > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
||||
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
|
||||
|
||||
/* Zebra Widget - row alternating colors */
|
||||
.tablesorter-blue tbody tr.odd td {
|
||||
background-color: #ebf2fa;
|
||||
}
|
||||
.tablesorter-blue tbody tr.even td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Column Widget - column sort colors */
|
||||
.tablesorter-blue td.primary,
|
||||
.tablesorter-blue tr.odd td.primary {
|
||||
background-color: #99b3e6;
|
||||
}
|
||||
.tablesorter-blue tr.even td.primary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue td.secondary,
|
||||
.tablesorter-blue tr.odd td.secondary {
|
||||
background-color: #c2d1f0;
|
||||
}
|
||||
.tablesorter-blue tr.even td.secondary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue td.tertiary,
|
||||
.tablesorter-blue tr.odd td.tertiary {
|
||||
background-color: #d6e0f5;
|
||||
}
|
||||
.tablesorter-blue tr.even td.tertiary {
|
||||
background-color: #ebf0fa;
|
||||
}
|
||||
|
||||
/* caption */
|
||||
caption {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* filter widget */
|
||||
.tablesorter-blue .tablesorter-filter-row td {
|
||||
background: #eee;
|
||||
line-height: normal;
|
||||
text-align: center; /* center the input */
|
||||
-webkit-transition: line-height 0.1s ease;
|
||||
-moz-transition: line-height 0.1s ease;
|
||||
-o-transition: line-height 0.1s ease;
|
||||
transition: line-height 0.1s ease;
|
||||
}
|
||||
/* optional disabled input styling */
|
||||
.tablesorter-blue .tablesorter-filter-row .disabled {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
/* hidden filter row */
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme td {
|
||||
/*** *********************************************** ***/
|
||||
/*** change this padding to modify the thickness ***/
|
||||
/*** of the closed filter row (height = padding x 2) ***/
|
||||
padding: 2px;
|
||||
/*** *********************************************** ***/
|
||||
margin: 0;
|
||||
line-height: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter {
|
||||
height: 1px;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
/* don't use visibility: hidden because it disables tabbing */
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
}
|
||||
/* filters */
|
||||
.tablesorter-blue .tablesorter-filter {
|
||||
width: 98%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: #333;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
-webkit-transition: height 0.1s ease;
|
||||
-moz-transition: height 0.1s ease;
|
||||
-o-transition: height 0.1s ease;
|
||||
transition: height 0.1s ease;
|
||||
}
|
||||
|
||||
/* ajax error row */
|
||||
.tablesorter .tablesorter-errorRow td {
|
||||
cursor: pointer;
|
||||
background-color: #e6bf99;
|
||||
}
|
||||
|
||||
#myTable tfoot th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<htmlpageheader name="MyHeader1">
|
||||
{/literal}
|
||||
<div style="text-align: left; border-bottom: 1px solid #000000; font-weight: bold; font-size: 10pt;">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="font-size: 25px; font-weight: bold">Rejestr sprzedaży VAT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">SAAS-SYSTEMS</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">Data wygenerowania: {$current_date_formatted}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">Rejestr od {$date_from_formatted} do {$date_to_formatted}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 12px; font-weight: bold">Typ dokumentu: {$searchByType|upper} </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{literal}
|
||||
</htmlpageheader>
|
||||
|
||||
|
||||
<htmlpagefooter name="MyFooter1">
|
||||
<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt;
|
||||
color: #000000; font-weight: bold; font-style: italic;"><tr>
|
||||
<td width="33%"><span style="font-weight: bold; font-style: italic;">{DATE j.m.Y}</span></td>
|
||||
<td width="33%" align="center" style="font-weight: bold; font-style: italic;">{PAGENO}/{nbpg}</td>
|
||||
<td width="33%" style="text-align: right; ">Rejestr sprzedaży VAT</td>
|
||||
</tr></table>
|
||||
</htmlpagefooter>
|
||||
|
||||
<htmlpagefooter name="MyFooter2">
|
||||
<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt;
|
||||
color: #000000; font-weight: bold; font-style: italic;"><tr>
|
||||
<td width="33%"><span style="font-weight: bold; font-style: italic;">SAAS-SYSTEMS</span></td>
|
||||
<td width="33%" align="center" style="font-weight: bold; font-style: italic;">{PAGENO}/{nbpg}</td>
|
||||
<td width="33%" style="text-align: right; ">{DATE j-m-Y}</td>
|
||||
</tr></table>
|
||||
</htmlpagefooter>
|
||||
{/literal}
|
||||
<div>
|
||||
{assign var=position value=1}
|
||||
{foreach from=$DATA item=PART name=part"}
|
||||
{assign var=dataCount value=$DATA|@count}
|
||||
|
||||
<table id="myTable" class="tablesorter-blue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black;">Lp.</th>
|
||||
<th style="border-left: 1px solid black; border-top: 1px solid black;">{$MOD.LBL_DOC_NUMBER}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_CREATE_LAB}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_SALE_DATE}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_CONTRACTOR_NIP}</th>
|
||||
<th style="border-top: 1px solid black;">{$MOD.LBL_LIST_SUBJECT}</th>
|
||||
<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_ADDRESS}</th>
|
||||
<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_GROSS_SALES}</th>
|
||||
{ if $showNetto7 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_NET_SALES} 7%</th>{/if}
|
||||
{ if $showNetto7 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_VAT} 7%</th>{/if}
|
||||
{ if $showNetto8 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_NET_SALES} 8%</th>{/if}
|
||||
{ if $showNetto8 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_VAT} 8%</th>{/if}
|
||||
{ if $showNetto22 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_NET_SALES} 22%</th>{/if}
|
||||
{ if $showNetto22 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_VAT} 22%</th> {/if}
|
||||
{ if $showNetto23 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_NET_SALES} 23%</th>{/if}
|
||||
{ if $showNetto23 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_VAT} 23%</th>{/if}
|
||||
{ if $showNetto0 }<th class="sorter-saas" style="border-top: 1px solid black;">{$MOD.LBL_NET_SALES} 0%</th> {/if}
|
||||
<th class="sorter-saas" style="border-top: 1px solid black; border-right: 1px solid black;">{$MOD.LBL_SUM_VAT}</th>
|
||||
<!-- <th class="sorter-saas">{$MOD.LBL_COST_OF}</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="7">Suma strony</th>
|
||||
<th style="text-align:right;">{ $PART.partSum.brutto|number_format:2:",":"." }</th>
|
||||
{ if $showNetto7 }<th style="text-align:right;">{ $PART.partSum.netto7|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto7 }<th style="text-align:right;">{ $PART.partSum.vat7|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto8 }<th style="text-align:right;">{ $PART.partSum.netto8|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto8 }<th style="text-align:right;">{ $PART.partSum.vat8|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto22 }<th style="text-align:right;">{ $PART.partSum.netto22|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto22 }<th style="text-align:right;">{ $PART.partSum.vat22|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto23 }<th style="text-align:right;">{ $PART.partSum.netto23|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto23 }<th style="text-align:right;">{ $PART.partSum.vat23|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto0 }<th style="text-align:right;">{ $PART.partSum.netto0|number_format:2:",":"." }</th>{/if}
|
||||
<th class="align-right">{ $PART.partSum.vat|number_format:2:",":"." }</th>
|
||||
<!-- <th class="align-right">{ $PART.partSum.purchase_price|number_format:2:",":"."}</th> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="7">Suma z przeniesienia:</th>
|
||||
<th style="text-align:right;">{ $PART.transferSum.brutto|number_format:2:",":"." }</th>
|
||||
{ if $showNetto7 }<th style="text-align:right;">{ $PART.transferSum.netto7|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto7 }<th style="text-align:right;">{ $PART.transferSum.vat7|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto8 }<th style="text-align:right;">{ $PART.transferSum.netto8|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto8 }<th style="text-align:right;">{ $PART.transferSum.vat8|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto22 }<th style="text-align:right;">{ $PART.transferSum.netto22|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto22 }<th style="text-align:right;">{ $PART.transferSum.vat22|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto23 }<th style="text-align:right;">{ $PART.transferSum.netto23|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto23 }<th style="text-align:right;">{ $PART.transferSum.vat23|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto0 }<th style="text-align:right;">{ $PART.transferSum.netto0|number_format:2:",":"." }</th>{/if}
|
||||
<th class="align-right">{ $PART.transferSum.vat|number_format:2:",":"." }</th>
|
||||
<!-- <th class="align-right">{ $PART.transferSum.purchase_price|number_format:2:",":"."}</th> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="7">Suma razem:</th>
|
||||
<th style="text-align:right;">{ $PART.partSum.brutto+$PART.transferSum.brutto|number_format:2:",":"." }</th>
|
||||
{ if $showNetto7 }<th style="text-align:right;">{ $PART.partSum.netto7+$PART.transferSum.netto7|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto7 }<th style="text-align:right;">{ $PART.partSum.vat7+$PART.transferSum.vat7|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto8 }<th style="text-align:right;">{ $PART.partSum.netto8+$PART.transferSum.netto8|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto8 }<th style="text-align:right;">{ $PART.partSum.vat8+$PART.transferSum.vat8|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto22 }<th style="text-align:right;">{ $PART.partSum.netto22+$PART.transferSum.netto22|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto22 }<th style="text-align:right;">{ $PART.partSum.vat22+$PART.transferSum.vat22|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto23 }<th style="text-align:right;">{ $PART.partSum.netto23+$PART.transferSum.netto23|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto23 }<th style="text-align:right;">{ $PART.partSum.vat23+$PART.transferSum.vat23|number_format:2:",":"." }</th>{/if}
|
||||
{ if $showNetto0 }<th style="text-align:right;">{ $PART.partSum.netto0+$PART.transferSum.netto0|number_format:2:",":"." }</th>{/if}
|
||||
<th class="align-right">{ $PART.partSum.vat+$PART.transferSum.vat|number_format:2:",":"." }</th>
|
||||
<!-- <th class="align-right">{ $PART.partSum.purchase_price+$PART.transferSum.purchase_price|number_format:2:",":"."}</th> -->
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.part.index == $dataCount-1 }
|
||||
<tr>
|
||||
<th colspan="15" style="text-align: left; padding: 5px; background-color: white; border-bottom: 2px solid black; color: #000; font-size: 12px;">Koniec wydruku</th>
|
||||
</tr>
|
||||
{/if}
|
||||
</tfoot>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$PART key=key item=ROW name=loop}
|
||||
{assign var=partCount value=$PART|@count}
|
||||
{if $smarty.foreach.loop.index != $partCount-1 and $smarty.foreach.loop.index != $partCount-2 }
|
||||
<tr>
|
||||
<td>{$position}</td>
|
||||
<td>{$ROW.document_no }</td>
|
||||
<td>{$ROW.register_date}</td>
|
||||
<td>{$ROW.sell_date }</td>
|
||||
<td>{$ROW.account.to_vatid}</td>
|
||||
<td>{$ROW.account.name}</td>
|
||||
<td>{$ROW.account.register_address_postalcode} {$ROW.account.register_address_city}</td>
|
||||
<td style="text-align:right;">{$ROW.total_brutto|number_format:2:",":"."}</td>
|
||||
{ if $showNetto7 }<td style="text-align:right;">{$ROW.netto7|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto7 }<td style="text-align:right;">{$ROW.vat7|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto8 }<td style="text-align:right;">{$ROW.netto8|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto8 }<td style="text-align:right;">{$ROW.vat8|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto22 }<td style="text-align:right;">{$ROW.netto22|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto22 }<td style="text-align:right;">{$ROW.vat22|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto23 }<td style="text-align:right;">{$ROW.netto23|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto23 }<td style="text-align:right;">{$ROW.vat23|number_format:2:",":"."}</td>{/if}
|
||||
{ if $showNetto0 }<td style="text-align:right;">{$ROW.netto0|number_format:2:",":"."}</td>{/if}
|
||||
<td style="text-align:right;">{$ROW.netto23*0.23|number_format:2:",":"."}</td>
|
||||
<!-- <td style="text-align:right;">{$ROW.purchase_price|number_format:2:",":"."}</td> -->
|
||||
</tr>
|
||||
{assign var=position value=$position+1}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{if $smarty.foreach.part.index != $dataCount-1 }
|
||||
<newpage>
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
|
||||
|
||||
97
modules/EcmReportsBackUp20151106/tpls/PDF/kpkwReport.tpl
Executable file
97
modules/EcmReportsBackUp20151106/tpls/PDF/kpkwReport.tpl
Executable file
@@ -0,0 +1,97 @@
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
table.report {
|
||||
|
||||
width: 100%;
|
||||
|
||||
border-spacing: 1px;
|
||||
|
||||
font-family: 'Calibri';
|
||||
font-size: 8pt;
|
||||
}
|
||||
|
||||
table.report thead tr th,
|
||||
table.report tbody tr td {
|
||||
border: 1px solid #CCCCCC;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table.report thead tr th {
|
||||
background: #ebebeb;
|
||||
}
|
||||
|
||||
table.report tbody tr.odd {
|
||||
background: #f6f6f6;
|
||||
}
|
||||
|
||||
table.report tbody tr.even {
|
||||
background: #ffffff;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table class="report" style="padding-top: 0px; margin-top:0px;width:100%;font-size:8pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$MOD.LBL_NUMBER_LP}</th>
|
||||
<th>{$MOD.LBL_DOCUMENT_NO}<br>{$MOD.LBL_CREATE_LAB}</th>
|
||||
<th>{$MOD.LBL_TITLE}</th>
|
||||
<th>{$MOD.LBL_PARENT_NAME}</th>
|
||||
<th>{$MOD.LBL_AMOUNT_PLUS}</th>
|
||||
<th>{$MOD.LBL_AMOUNT_MINUS}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$DATA item=poz key=CATNAME name=loop}
|
||||
{if $poz.type_id!=''}
|
||||
<tr class="{$poz.class}">
|
||||
<td width="5%">{$poz.number}</td>
|
||||
<td width="15%" style="text-align:left;">
|
||||
<table class="report" style="padding-top: 0px; margin-top:0px;">
|
||||
<tr class="{$poz.class}">
|
||||
<td style="text-align:left;">{$poz.document_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left;">{$poz.date_entered|date_format:"%d.%m.%Y"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="22%" style="text-align:left;">{$poz.description}</td>
|
||||
<td width="24%" style="text-align:left;">{$poz.parent_name}</td>
|
||||
<td width="17%" style="text-align:right;">{if $poz.type_id==0} {$poz.amount|number_format:2:",":"."} {else} {/if}</td>
|
||||
<td width="17%" style="text-align:right;">{if $poz.type_id==1} {$poz.amount|number_format:2:",":"."} {else} {/if}
|
||||
</td>
|
||||
</tr>
|
||||
{assign var="i" value=$poz.number}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var="currow" value=$poz.number+1}
|
||||
<tr class="{if $currow%2}even{else}odd{/if}">
|
||||
<td width="45%" style="border: 0px; background: #fff;" colspan="2"> </td>
|
||||
<td width="15%" style="border: 0px; background: #fff;"></td>
|
||||
<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE}</td>
|
||||
<td width="15%" style="text-align:right;">{$DATA.in|number_format:2:",":"."}</td>
|
||||
<td width="20%" style="text-align:right;">{$DATA.out|number_format:2:",":"."}</td>
|
||||
|
||||
</tr>
|
||||
{assign var="currow" value=$currow+1}
|
||||
<tr class="{if $currow%2}even{else}odd{/if}">
|
||||
<td width="45%" style="border: 0px; background: #fff;" colspan="2"> </td>
|
||||
<td width="15%" style="border: 0px; background: #fff;"></td>
|
||||
<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE_BEFORE}:</td>
|
||||
<td width="15%" style="text-align:right;">{$CASH_BEFORE|number_format:2:",":"."}</td>
|
||||
<td width="20%" style="text-align:right;"></td>
|
||||
|
||||
</tr>
|
||||
{assign var="currow" value=$currow+1}
|
||||
<tr class="{if $currow%2}even{else}odd{/if}">
|
||||
<td width="45%" style="border: 0px; background: #fff;" colspan="2"> </td>
|
||||
<td width="15%" style="border: 0px; background: #fff;"></td>
|
||||
<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE_TOTAL}:</td>
|
||||
<td width="15%" style="text-align:right;">{$CASH_NOW|number_format:2:",":"."}</td>
|
||||
<td width="20%" style="text-align:right;"></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
95
modules/EcmReportsBackUp20151106/tpls/QuickCreate.tpl
Executable file
95
modules/EcmReportsBackUp20151106/tpls/QuickCreate.tpl
Executable file
@@ -0,0 +1,95 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<form name="ecmreportsQuickCreate" id="ecmreportsQuickCreate" method="POST" action="index.php">
|
||||
<input type="hidden" name="module" value="EcmReports">
|
||||
<input type="hidden" name="email_id" value="{$REQUEST.email_id}">
|
||||
<input type="hidden" name="account_id" value="{$REQUEST.account_id}">
|
||||
<input type="hidden" name="case_id" value="{$REQUEST.acase_id}">
|
||||
<input type="hidden" name="contact_id" value="{$REQUEST.contact_id}">
|
||||
<input type="hidden" name="return_action" value="{$REQUEST.return_action}">
|
||||
<input type="hidden" name="return_module" value="{$REQUEST.return_module}">
|
||||
<input type="hidden" name="return_id" value="{$REQUEST.return_id}">
|
||||
<input type="hidden" name="action" value='Save'>
|
||||
<input type="hidden" name="duplicate_parent_id" value="{$REQUEST.duplicate_parent_id}">
|
||||
<input type="hidden" name="to_pdf" value='1'>
|
||||
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{$ASSIGNED_USER_ID}" />
|
||||
|
||||
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td align="left" style="padding-bottom: 2px;">
|
||||
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" type="submit" name="button" {$saveOnclick|default:"onclick=\"return check_form('EcmReportsQuickCreate');\""} value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
|
||||
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" type="submit" name="button" {$cancelOnclick|default:"onclick=\"this.form.action.value='$RETURN_ACTION'; this.form.module.value='$RETURN_MODULE'; this.form.record.value='$RETURN_ID'\""} value=" {$APP.LBL_CANCEL_BUTTON_LABEL} ">
|
||||
<input title="{$APP.LBL_FULL_FORM_BUTTON_TITLE}" accessKey="{$APP.LBL_FULL_FORM_BUTTON_KEY}" class="button" type="submit" name="button" onclick="this.form.to_pdf.value='0';this.form.action.value='EditView'; this.form.module.value='EcmReports';" value=" {$APP.LBL_FULL_FORM_BUTTON_LABEL} "></td>
|
||||
<td align="right" nowrap><span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span> {$APP.NTC_REQUIRED}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabForm">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th align="left" class="dataLabel" colspan="4"><h4 class="dataLabel"><slot>{$MOD.LBL_ECMREPORT_INFORMATION}</slot></h4></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabel" width="15%"><slot>{$MOD.LBL_SUBJECT} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
|
||||
<td width="35%"><slot><textarea name='name' cols="40" tabindex='1' rows="1">{$NAME}</textarea></slot></td>
|
||||
<td class="dataLabel" width="15%"><slot>{$MOD.LBL_TYPE}</slot></td>
|
||||
<td width="35%"><slot><select tabindex='2' name='type'>{$TYPE_OPTIONS}</select></slot></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabel" rowspan="2" width="15%"><slot>{$MOD.LBL_DESCRIPTION}</slot></td>
|
||||
<td rowspan="2" width="35%"><slot><textarea name='description' tabindex='1' cols="40" rows="4">{$DESCRIPTION}</textarea></slot></td>
|
||||
<td class="dataLabel" width="15%"><slot>{$MOD.LBL_PRIORITY}</slot></td>
|
||||
<td class="dataField" nowrap width="35%"><slot><select tabindex='2' name='priority'>{$PRIORITY_OPTIONS}</select></slot></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabel" width="15%"><slot>{$MOD.LBL_STATUS}</slot></td>
|
||||
<td width="35%"><slot><select tabindex='2' name='status'>{$STATUS_OPTIONS}</select></slot></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<script>
|
||||
{$additionalScripts}
|
||||
</script>
|
||||
189
modules/EcmReportsBackUp20151106/tpls/ReportAcceptance.tpl
Executable file
189
modules/EcmReportsBackUp20151106/tpls/ReportAcceptance.tpl
Executable file
@@ -0,0 +1,189 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script src="include/jQuery/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportAcceptance.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
/* 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;
|
||||
}
|
||||
.element{
|
||||
position:fixed;
|
||||
bottom: 0%;
|
||||
width: 97%;
|
||||
padding:10px;
|
||||
font-family:Arial;
|
||||
background-color: white;
|
||||
border:1px solid black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="tableMenu" 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_ACCEPTANCE}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportAcceptance" id="searchReportAcceptance">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportAcceptance" />
|
||||
<input type="hidden" name="first_load" value ="{$first_load}"/>
|
||||
<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" nowrap="nowrap"> Data od </td>
|
||||
<td class="dataField" 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 : "{$dateFormat}",
|
||||
button : "date_from_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td nowrap="nowrap" class="dataLabel">Nazwa Dokumentu:</td>
|
||||
<td nowrap="nowrap" class="dataField">
|
||||
<input type="text" value="{$doc_name}" size="60" id="doc_name" name="doc_name">
|
||||
</td>
|
||||
<td class="dataLabel" nowrap="nowrap">Status:</td>
|
||||
<td class="dataField" nowrap="nowrap">
|
||||
{html_options name=status options=$statusy selected=$status}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
{* Search by date_to *}
|
||||
<td class="dataLabel" nowrap="nowrap">Data do</td>
|
||||
<td class="dataField" 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 : "{$dateFormat}",
|
||||
button : "date_to_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" nowrap="nowrap">Kategoria:</td>
|
||||
<td class="dataField" nowrap="nowrap">
|
||||
<select id="category_id" name="category_id">
|
||||
<option value="" label=""> </option
|
||||
{foreach from=$category key=k item=v}
|
||||
<option value="{$k}" label="{$v}"
|
||||
{if $category_selected eq $k}
|
||||
selected="selected"
|
||||
{/if}
|
||||
>{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit" form="searchReportAcceptance">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportAcceptance';">
|
||||
<input class="button" name="print" id="print" value="PDF" type="submit" form="printReportAcceptance">
|
||||
|
||||
<form method="post" name="printReportAcceptance" action="index.php?module=EcmReports&action=printReportAcceptance&to_pdf=1" id="printReportAcceptance">
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="1%" class="header"><input type="checkbox" name="checkAll" id="checkAll"></th>
|
||||
<th width="1%">Opis</th>
|
||||
<th width="20%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_REPORT_ACCEPTANCE_DOCNAME}</th>
|
||||
<th width="1%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_DATE_CREATED}</th>
|
||||
<th width="1%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_REPORT_ACCEPTANCE_DOCDATE}</th>
|
||||
<th width="5%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_REPORT_ACCEPTANCE_CATEGORY}</th>
|
||||
<th width="30%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_REPORT_ACCEPTANCE_DES}</th>
|
||||
<th width="3%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_VALUE}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{foreach from=$DATA item=i}
|
||||
<tr>
|
||||
<td><input type="checkbox" id="box_{$i.docid}" name="box_{$i.docid}" value='{$i.docid}'></td>
|
||||
<td style="text-align: center">
|
||||
{if $i.docreport == 1}
|
||||
<input type="button" onclick="getDes('{$i.docid}')" value="Opis">
|
||||
{else}
|
||||
brak
|
||||
{/if}
|
||||
</td>
|
||||
<td><a href="index.php?module=Documents&action=DetailView&record={$i.docid}">{$i.docname}</a></td>
|
||||
<td>{$i.docdateentered}</td>
|
||||
<td>{$i.docdate}</td>
|
||||
<td>{$i.doccategory}</td>
|
||||
<td>{$i.docdes}</td>
|
||||
<td style="text-align: right;">{$i.docwartosc}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td style="text-align: right;">Suma:</td>
|
||||
<td style="text-align: right;">{$SUMA}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</form>
|
||||
</table>
|
||||
<div class="element" id="raport" style="display: none"></div>
|
||||
198
modules/EcmReportsBackUp20151106/tpls/ReportBuyesByVat.tpl
Executable file
198
modules/EcmReportsBackUp20151106/tpls/ReportBuyesByVat.tpl
Executable file
@@ -0,0 +1,198 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="include/jQuery/tablesorter-master/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportBuyesByVat.js"></script>
|
||||
{*<script type="text/javascript" src="https://www.google.com/jsapi"></script>*}
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
/* 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;
|
||||
}
|
||||
.element{
|
||||
position:fixed;
|
||||
bottom: 0%;
|
||||
width: 97%;
|
||||
padding:10px;
|
||||
font-family:Arial;
|
||||
background-color: white;
|
||||
border:1px solid black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="tableMenu" 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_REPORT_RECEIVE_REGISTER}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">{$MOD.LBL_SEARCH}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form action="index.php" method="get" name="where" id="where">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportBuyesByVat" />
|
||||
<input type="hidden" name="parentTab" value="Raporty"/>
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_FROM}
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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">
|
||||
{* console.log('dupa');*}
|
||||
Calendar.setup({ldelim}
|
||||
inputField: "date_from",
|
||||
daFormat: "{$dateFormat}",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_TO}
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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: "{$dateFormat}",
|
||||
button: "date_to_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Kategoria dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="category[]" multiple="multiple">
|
||||
{foreach from=$category item=c key=k }
|
||||
<option value="{$k}" {if @in_array($k, $category_selected) } selected="true" {/if}>{$c}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<input class="button" value="{$MOD.LBL_EXECUTE}" type="submit" form="where">
|
||||
<input class="button" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href = 'index.php?module=EcmReports&action=ReportBuyesByVat&parentTab=Raporty';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button" onclick="excelExport();">
|
||||
<input id="pdfEksport" class="button" name="importToPDF" value="{$MOD.BTN_PDF_EXPORT}" type="button" >
|
||||
|
||||
<table class="tablesorter tablesorter-blue" role="grid" id='table'>
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="9%" style = "text-align: left">{$MOD.LBL_DOC_NUMBER}</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="6%" style = "text-align: left">{$MOD.LBL_CREATE_LAB}</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="6%" style = "text-align: left">{$MOD.LBL_SALE_DATE}</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="8%" style = "text-align: left">{$MOD.LBL_SALES_NIP}</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="13%" style = "text-align: left">{$MOD.LBL_LIST_SUBJECT}</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="8%" style = "text-align: left">{$MOD.LBL_ADDRESS}</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="5%" style = "text-align: left">{$MOD.LBL_BUYER_VALUE_BRUTTO}</th>
|
||||
{foreach from= $vat_value key= t item= w}
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="7" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="4%" style = "text-align: left">{$MOD.LBL_BUYER_VALUE_NETTO} {$t}</th>
|
||||
{if $w.sumavat != NULL}
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="8" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="4%" style = "text-align: left">{$MOD.LBL_VAT} {$t}</th>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="9" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort width="4%" style = "text-align: left">{$MOD.LBL_SUM_VAT}</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from= $data key= k item= i}
|
||||
|
||||
<tr>
|
||||
|
||||
<td> <a target="new" href="index.php?module=Documents&offset=35&stamp=1429090400048670400&return_module=Documents&action=DetailView&record={$i.document_id}">{$i.document_number}</a></td>
|
||||
<td>{$i.document_date|date_format:"%d.%m.%Y"}</td>
|
||||
<td>{$i.register_date|date_format:"%d.%m.%Y"}</td>
|
||||
|
||||
<td>{$i.to_vatid}</td>
|
||||
<td><a target="new" href="index.php?module=Accounts&return_module=Accounts&action=DetailView&record={$i.id}">{$i.name}</a></td>
|
||||
<td>{$i.register_address_postalcode} {$i.register_address_city}</td>
|
||||
<td style = "text-align: right">{$i.value|number_format:2:",":"."}</td>
|
||||
{foreach from=$vat_value key=o item=j}
|
||||
{assign var=prawdafalsz value=false}
|
||||
{foreach from=$i.vaty item = e}
|
||||
{if $o == $e.vat_value}
|
||||
{assign var=prawdafalsz value=true}
|
||||
{assign var=prawdafalszvat value=$e.vat}
|
||||
{assign var=prawdafalsznetto value=$e.netto}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $prawdafalsz == true }
|
||||
<td style = "text-align: right">{$prawdafalsznetto|number_format:2:",":"."}</td>
|
||||
{if $j.sumavat != NULL}
|
||||
<td style = "text-align: right">{$prawdafalszvat|number_format:2:",":"."}</td>
|
||||
{/if}
|
||||
{else}
|
||||
<td style = "text-align: right">0,00</td>
|
||||
{if $j.sumavat != NULL}
|
||||
<td style = "text-align: right">0,00</td>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<td style = "text-align: right">{$i.vatsumapozycja|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot style="background-color: #E8E8E8;">
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$MOD.LBL_SUM}</td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;" colspan="5"></td>
|
||||
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$SumaBrutto|number_format:2:",":"."}</td>
|
||||
|
||||
{foreach from=$vat_value key =o item=j}
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$j.sumanetto|number_format:2:",":"."}</td>
|
||||
{if $j.sumavat != NULL}
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$j.sumavat|number_format:2:",":"."}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$SumaVat|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
162
modules/EcmReportsBackUp20151106/tpls/ReportEcmProduct_EcmActions.tpl
Executable file
162
modules/EcmReportsBackUp20151106/tpls/ReportEcmProduct_EcmActions.tpl
Executable file
@@ -0,0 +1,162 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="include/jQuery/tablesorter-master/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportEcmWorkCards.js"></script>
|
||||
{*<script type="text/javascript" src="https://www.google.com/jsapi"></script>*}
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
/* 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;
|
||||
}
|
||||
.element{
|
||||
position:fixed;
|
||||
bottom: 0%;
|
||||
width: 97%;
|
||||
padding:10px;
|
||||
font-family:Arial;
|
||||
background-color: white;
|
||||
border:1px solid black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="tableMenu" 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_ECMWORKCARDS}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">{$MOD.LBL_SEARCH}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form action="index.php" method="get" name="where" id="where">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportEcmWorkCards" />
|
||||
<input type="hidden" name="parentTab" value="Raporty"/>
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_FROM}
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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: "{$dateFormat}",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_TO}
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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: "{$dateFormat}",
|
||||
button: "date_to_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<input class="button" value="{$MOD.LBL_EXECUTE}" type="submit" form="where">
|
||||
<input class="button" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href = 'index.php?module=EcmReports&action=ReportEcmWorkCards&parentTab=Raporty';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button" onclick="excelExport();">
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="15%" style = "text-align: left">{$MOD.LBL_WORKER_NAME}</th>
|
||||
<th width="7%" style = "text-align: left">{$MOD.LBL_ACTION_CODE}</th>
|
||||
<th width="30%" style = "text-align: left">{$MOD.LBL_ACTION}</th>
|
||||
<th width="5%" style = "text-align: left">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="7%" style = "text-align: left">{$MOD.LBL_PRODUCT_CODE}</th>
|
||||
<th width="40%" style = "text-align: left">{$MOD.LBL_PRODUCTS}</th>
|
||||
<th width="10%" style = "text-align: right">{$MOD.LBL_SUM_NETTO}</th>
|
||||
<th width="10%" style = "text-align: right">{$MOD.LBL_SUM_BRUTTO}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$data item=rekord key=kl}
|
||||
<tr id="parent_{$kl}" class="{$rekord.class}">
|
||||
<td onclick="showHide({$kl});"><span id="span_{$kl}" class="plusStyle">[+]</span> {$rekord.work_name}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$rekord.netto} </td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$rekord.brutto} </td>
|
||||
</tr>
|
||||
{foreach from=$rekord.actions item=czynnosc}
|
||||
<tr name="child_{$kl}" class="{$czynnosc.class}" style="display: none;">
|
||||
<td onclick="showHide({$kl});" style = "text-align: left"></td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.actioncode}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.actionname}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$czynnosc.quantity}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.productcode}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.productname}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$czynnosc.netto}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$czynnosc.brutto}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot style="background-color: #E8E8E8;">
|
||||
<tr>
|
||||
<td style="text-align: left;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$MOD.LBL_SUM}</td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$suma.netto}</td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$suma.brutto}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
163
modules/EcmReportsBackUp20151106/tpls/ReportEcmWorkCards.tpl
Executable file
163
modules/EcmReportsBackUp20151106/tpls/ReportEcmWorkCards.tpl
Executable file
@@ -0,0 +1,163 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="include/jQuery/tablesorter-master/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportEcmWorkCards.js"></script>
|
||||
{*<script type="text/javascript" src="https://www.google.com/jsapi"></script>*}
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
/* 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;
|
||||
}
|
||||
.element{
|
||||
position:fixed;
|
||||
bottom: 0%;
|
||||
width: 97%;
|
||||
padding:10px;
|
||||
font-family:Arial;
|
||||
background-color: white;
|
||||
border:1px solid black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="tableMenu" 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_ECMWORKCARDS}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">{$MOD.LBL_SEARCH}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form action="index.php" method="get" name="where" id="where">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportEcmWorkCards" />
|
||||
<input type="hidden" name="parentTab" value="Raporty"/>
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_FROM}
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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: "{$dateFormat}",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_TO}
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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: "{$dateFormat}",
|
||||
button: "date_to_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<input class="button" value="{$MOD.LBL_EXECUTE}" type="submit" form="where">
|
||||
<input class="button" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href = 'index.php?module=EcmReports&action=ReportEcmWorkCards&parentTab=Raporty';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button" onclick="excelExport();">
|
||||
<input id="pdfEksport" class="button" name="importToPDF" value="{$MOD.BTN_PDF_EXPORT}" type="button" onclick="pdfExport();">
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="15%" style = "text-align: left">{$MOD.LBL_WORKER_NAME}</th>
|
||||
<th width="7%" style = "text-align: left">{$MOD.LBL_ACTION_CODE}</th>
|
||||
<th width="30%" style = "text-align: left">{$MOD.LBL_ACTION}</th>
|
||||
<th width="5%" style = "text-align: left">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="7%" style = "text-align: left">{$MOD.LBL_PRODUCT_CODE}</th>
|
||||
<th width="40%" style = "text-align: left">{$MOD.LBL_PRODUCTS}</th>
|
||||
<th width="10%" style = "text-align: right">{$MOD.LBL_SUM_NETTO}</th>
|
||||
<th width="10%" style = "text-align: right">{$MOD.LBL_SUM_BRUTTO}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$data item=rekord key=kl}
|
||||
<tr id="parent_{$kl}" class="{$rekord.class}">
|
||||
<td onclick="showHide({$kl});"><span id="span_{$kl}" class="plusStyle">[+]</span> {$rekord.work_name}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$rekord.netto} </td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$rekord.brutto} </td>
|
||||
</tr>
|
||||
{foreach from=$rekord.actions item=czynnosc}
|
||||
<tr name="child_{$kl}" class="{$czynnosc.class}" style="display: none;">
|
||||
<td onclick="showHide({$kl});" style = "text-align: left"></td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.actioncode}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.actionname}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$czynnosc.quantity}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.productcode}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: left">{$czynnosc.productname}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$czynnosc.netto}</td>
|
||||
<td onclick="showHide({$kl});" style = "text-align: right">{$czynnosc.brutto}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot style="background-color: #E8E8E8;">
|
||||
<tr>
|
||||
<td style="text-align: left;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$MOD.LBL_SUM}</td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$suma.netto}</td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$suma.brutto}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
158
modules/EcmReportsBackUp20151106/tpls/ReportEcmWorkCardsEcmProduct.tpl
Executable file
158
modules/EcmReportsBackUp20151106/tpls/ReportEcmWorkCardsEcmProduct.tpl
Executable file
@@ -0,0 +1,158 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="include/jQuery/tablesorter-master/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportEcmWorkCardsEcmProduct.js"></script>
|
||||
{*<script type="text/javascript" src="https://www.google.com/jsapi"></script>*}
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
/* 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;
|
||||
}
|
||||
.element{
|
||||
position:fixed;
|
||||
bottom: 0%;
|
||||
width: 97%;
|
||||
padding:10px;
|
||||
font-family:Arial;
|
||||
background-color: white;
|
||||
border:1px solid black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="tableMenu" 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_ECMWORKCARDS_PRODUCTS}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">{$MOD.LBL_SEARCH}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form action="index.php" method="get" name="where" id="where">
|
||||
<input type="hidden" name="module" value="EcmWorkCards" />
|
||||
<input type="hidden" name="action" value="ReportEcmWorkCardsEcmProduct" />
|
||||
<input type="hidden" name="parentTab" value="Produkcja"/>
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_FROM}
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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: "{$dateFormat}",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td style="white-space: nowrap">{$MOD.LBL_DATE_TO}
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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: "{$dateFormat}",
|
||||
button: "date_to_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<input class="button" value="{$MOD.LBL_EXECUTE}" type="submit" form="where">
|
||||
<input class="button" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href = 'index.php?module=EcmReports&action=ReportEcmWorkCards&parentTab=Raporty';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button" onclick="excelExport();">
|
||||
<input id="pdfEksport" class="button" name="importToPDF" value="{$MOD.BTN_PDF_EXPORT}" type="button" onclick="pdfExport();">
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="40%" style = "text-align: left">{$MOD.LBL_PRODUCTS}</th>
|
||||
<th width="15%" style = "text-align: left">{$MOD.LBL_WORKER_NAME}</th>
|
||||
<th width="7%" style = "text-align: left">{$MOD.LBL_ACTION_CODE}</th>
|
||||
<th width="30%" style = "text-align: left">{$MOD.LBL_ACTION}</th>
|
||||
<th width="5%" style = "text-align: left">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="5%" style = "text-align: left">{$MOD.LBL_PW_QUANTITY}</th>
|
||||
<th width="10%" style = "text-align: right">{$MOD.LBL_SUM_NETTO}</th>
|
||||
<th width="10%" style = "text-align: right">{$MOD.LBL_SUM_BRUTTO}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$data item=rekord key=kl}
|
||||
<tr id="parent_{$rekord.indeks}">
|
||||
<td onclick="showHide({$rekord.indeks});"><span id="span_{$rekord.indeks}" class="plusStyle">[+]</span> {$rekord.code} {$rekord.name}</td>
|
||||
<td colspan="4" onclick="showHide({$rekord.indeks});"></td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: right">{$rekord.pw}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: right">{$rekord.netto|number_format:2:",":"."}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: right">{$rekord.brutto|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
{foreach from=$rekord.actions key=klucz item=pracownik}
|
||||
{foreach from=$pracownik item=czynnosc}
|
||||
<tr name="child_{$rekord.indeks}" style="display: none;">
|
||||
<td onclick="showHide('{$rekord.indeks}');" style = "text-align: left"></td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: left">{$klucz}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: left">{$czynnosc.actioncode}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: left">{$czynnosc.actionname}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: right">{$czynnosc.quantity}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: right">{$rekord.pw}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: right">{$czynnosc.netto|number_format:2:",":"."}</td>
|
||||
<td onclick="showHide({$rekord.indeks});" style = "text-align: right">{$czynnosc.brutto|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot style="background-color: #E8E8E8;">
|
||||
<tr>
|
||||
<td style="text-align: left;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$MOD.LBL_SUM}</td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;" colspan="5"></td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$suma.netto|number_format:2:",":"."}</td>
|
||||
<td style="text-align: right;background-color: #E8E8E8; border: 1px solid #E8E8E8;">{$suma.brutto|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
350
modules/EcmReportsBackUp20151106/tpls/ReportSales.tpl
Executable file
350
modules/EcmReportsBackUp20151106/tpls/ReportSales.tpl
Executable file
@@ -0,0 +1,350 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportSales.js"></script>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.green-text{
|
||||
color:#2E8B57;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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_RAPORT_SALES} </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Podstawowe wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportSales">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportSales" />
|
||||
<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="10%" 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 : "{$dateFormat}",
|
||||
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="10%" 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 : "{$dateFormat}",
|
||||
button : "date_to_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_GORUP_BY}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select name="groupByProducentsOrProducts">
|
||||
<option value="product" { if $searchBy==""} selected="true" {/if} >produkt</option>
|
||||
<option value="contractor" { if $searchBy=="contractor"} selected {/if} >kontrahent</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
{* Open popup window to select contractor *}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function getContractor(){ldelim}
|
||||
open_popup("Accounts", 600, 400, "", true, false,
|
||||
{ldelim}
|
||||
"call_back_function":"set_return","form_name":"searchDailyReports","field_to_name_array":
|
||||
{ldelim}"id":"account_id","name":"account_name"{rdelim}
|
||||
{rdelim}, "single", true);
|
||||
{rdelim};
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">Typ dokumentu</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="type" name="type">
|
||||
<option value="%" { if $searchByType=="%"} selected="true" {/if} >normalny i korekta</option>
|
||||
<option value="normal" { if $searchByType=="normal"} selected {/if} >normalny</option>
|
||||
<option value="correct" { if $searchByType=="correct"} selected {/if} >korekta</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">Handlowiec</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="user" name="selectUser">
|
||||
<option value="" { if $selectUser==""} selected="true" {/if} >wszyscy</option>
|
||||
{foreach from=$USERS item=USER key=count name=loop}
|
||||
<option value="{$USER.id}" { if $selectUser==$USER.id} selected="true" {/if} >{$USER.first} {$USER.last}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">Grupa księgowa</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="group_ks" name="group_ks">
|
||||
{foreach from=$all_groups_ks item=GROUP key=COUNT name=loop}
|
||||
{if $COUNT eq 0}
|
||||
<option value="%" { if $group_ks=="%"} selected="true" {/if} >wszystkie</option>
|
||||
{else}
|
||||
<option value="{$COUNT}" { if $group_ks==$COUNT} selected="true" {/if} >{$GROUP}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="25%" nowrap="nowrap"></td>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportSales';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button">
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_PRODUCTS}</th>
|
||||
{if $searchBy=="product"}
|
||||
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Indeks</th>
|
||||
{/if}
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_SOLD_AMOUNT}</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_VALUE_SALES}</th>
|
||||
{*<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość sprzedaży bez korekt</th>*}
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_AVERAGE_PRICE}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_COST}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="7" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_MARGIN}</th>
|
||||
{if $searchBy=="none"}
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="8" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_STOCK_STATES}</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="9" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_STOCK_VALUE}</th>
|
||||
{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$DATA item=CAT key=CATNAME name=loop}
|
||||
{* Table headers *}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static category">
|
||||
{if $CATNAME != ""}
|
||||
<td class="oddListRowS1 alignLeft "><a class="plusStyle showTables">[+]</a><b> {$CATNAME}</b></td>
|
||||
{/if}
|
||||
{if $searchBy=="product"}
|
||||
<td class="oddListRowS1" ></td>
|
||||
{/if}
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.IloscSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.SoldSum|number_format:2:",":"." }</b></td>
|
||||
{* <td class="oddListRowS1 sumRow" ><b><span class='green-text'>{$DATA.$CATNAME.SoldSumNormal|number_format:2:",":"." }</span></b></td>*}
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.SredniaSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.KosztSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
||||
{if $searchBy=="none"}
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.StanSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.WartoscSum|number_format:2:",":"." }</b></td>
|
||||
{/if}
|
||||
</tr>
|
||||
</tbody>
|
||||
{foreach from=$CAT item=CAT2 key=CAT2NAME name=loop}
|
||||
{if $CAT2NAME!="IloscSum" && $CAT2NAME!="SoldSum" && $CAT2NAME!="SoldSumNormal" && $CAT2NAME!="IloscNormal" && $CAT2NAME!="SredniaSum" && $CAT2NAME!="KosztSum" && $CAT2NAME!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum"}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly tablesShowHide">
|
||||
<tr class="subcategory">
|
||||
<td class="oddListRowS1 alignLeft"><a class="showRows" style="color: cadetblue; text-decoration: none; cursor: pointer;">[+]</a><b> {$CAT2NAME}</b></td>
|
||||
{if $searchBy=="product"}
|
||||
<td class="oddListRowS1" ></td>
|
||||
{/if}
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.IloscSum2|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.SoldSum2|number_format:2:",":"." }</b></td>
|
||||
{*<td class="oddListRowS1 sumRow" ><b><span class='green-text'>{$CAT.$CAT2NAME.SoldSumNormal2|number_format:2:",":"." }</span></b></td>*}
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.SredniaSum2|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.KosztSum2|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.MarzaSum2|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<tbody aria-live="polite" aria-relevant="all" class="rowShowHide">
|
||||
{foreach from=$CAT2 item=ROW name=loop}
|
||||
{if $ROW.name!="IloscSum" && $ROW.name!="SoldSum" && $ROW.name!="SredniaSum" && $ROW.name!="KosztSum" && $ROW.name!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum" && $ROW.name!=""}
|
||||
{if $smarty.foreach.loop.index % 2 == 1}
|
||||
<tr role="row" class="contractor">
|
||||
{else}
|
||||
<tr class="contractor" role="row">
|
||||
{/if}
|
||||
|
||||
{if $searchBy=="contractor"}
|
||||
<td class="oddListRowS1 alignLeft" style="text-align:left;">
|
||||
{if $CAT2NAME!="Reszta"}
|
||||
<img category="{$CATNAME}" subcategory="{$CAT2NAME}" class="showProducts" style="color: graytext; text-decoration: none; cursor: pointer;" src="modules/EcmReports/images/search.gif" />
|
||||
{/if}
|
||||
<a href="index.php?module=Accounts&return_module=Accounts&action=DetailView&record={if $ROW.name != 'Media Saturn Holding'}{$ROW.parent_id}{else}1249{/if}" {if $ROW.name != 'Media Saturn Holding' }contractor="{$ROW.parent_id}"{else} contractor="1249" {/if} target="new">{$ROW.name}</a>
|
||||
</td>
|
||||
|
||||
{else}
|
||||
<td class="oddListRowS1 alignLeft" style="text-align:left;">
|
||||
<img src="modules/EcmReports/images/search.gif" class="showContractors" style="color: graytext; text-decoration: none; cursor: pointer;" data-productid="{$ROW.id}" />
|
||||
<a target="new" href="index.php?module=EcmProducts&action=index&return_module=EcmProducts&action=DetailView&record={$ROW.id}">
|
||||
{$ROW.name}
|
||||
</a>
|
||||
</td>
|
||||
{/if}
|
||||
{if $searchBy=="product"}
|
||||
<td class="oddListRowS1" >{$ROW.code}</td>
|
||||
{/if}
|
||||
<td class="oddListRowS1" >{$ROW.ilosc|number_format:0:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.netto|number_format:2:",":"."}</td>
|
||||
{* <td class="oddListRowS1" ><span class='green-text'>{$ROW.nettoNormal|number_format:2:",":"." }</span></td>*}
|
||||
<td class="oddListRowS1" >{$ROW.srednia|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.koszt|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.marza|number_format:2:",":"."}%</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tbody id="stopRows"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="stopTables"></tbody>
|
||||
{/foreach}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static category sumAll">
|
||||
<td class="oddListRowS1 alignLeft"><b>{$MOD.LBL_SUM}:</b></td>
|
||||
{if $searchBy=="product"}
|
||||
<td class="oddListRowS1" ></td>
|
||||
{/if}
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.IloscSumSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.SoldSumSum|number_format:2:",":"." }</b></td>
|
||||
{* <td class="oddListRowS1 sumRow" ><b><span class='green-text'>{$SUM.SoldSumSumNormal|number_format:2:",":"." }</span></b></td>*}
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.SredniaSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.KosztSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.MarzaSumSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<br/>
|
||||
345
modules/EcmReportsBackUp20151106/tpls/ReportSalesByContractor.tpl
Executable file
345
modules/EcmReportsBackUp20151106/tpls/ReportSalesByContractor.tpl
Executable file
@@ -0,0 +1,345 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportSalesByContractor.js"></script>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .category .alignLeft {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
table.tablesorter .products .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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_SALES_BY_CONTRACTORS} </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportSales">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportSalesByContractor" />
|
||||
<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="10%" 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="10%" nowrap="nowrap">Data do</td>
|
||||
<td class="dataField" width="30%" 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>
|
||||
|
||||
{* Search by contractor *}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">{$MOD.LBL_CONTRACTOR}</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<input id="account_name" type="text" title="" value="{$contractorName}" size="" tabindex="" name="account_name">
|
||||
<input id="account_id" type="hidden" value="{$contractorId}" name="account_id">
|
||||
<input class="button" type="button" value="Wybierz" accesskey="T" title="Select [Alt+T]" tabindex="" value="{$contractorName}" name="btn_account_name" onClick="getContractor()">
|
||||
|
||||
{* Open popup window to select contractor *}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function getContractor(){ldelim}
|
||||
open_popup("Accounts", 600, 400, "", true, false,
|
||||
{ldelim}
|
||||
"call_back_function":"set_return","form_name":"searchDailyReports","field_to_name_array":
|
||||
{ldelim}"id":"account_id","name":"account_name"{rdelim}
|
||||
{rdelim}, "single", true);
|
||||
{rdelim};
|
||||
</script>
|
||||
</td>
|
||||
{if $submit eq "Wykonaj"}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Kategoria dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="category[]" multiple="multiple">
|
||||
{ foreach from=$CATEGORY item=c key=k }
|
||||
<option value="{$k}" {if @in_array($k, $categories) } selected="true" {/if}>{$c}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Typ dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="type[]" multiple="multiple">
|
||||
<option value="fv" { if $searchByType.fv } selected="true" {/if} >FV</option>
|
||||
<option value="fvk" { if $searchByType.fvk } selected="true" {/if} >FVK</option>
|
||||
<option value="pr" { if $searchByType.pr } selected="true" {/if} >PR</option>
|
||||
<option value="prk" { if $searchByType.prk } selected="true" {/if} >PRK</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Rodzaj dokumentu:</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="pdfType[]" multiple="multiple">
|
||||
<option value="K" {if $pdfType.K} selected="true"{/if}>Kraj</option>
|
||||
<option value="U" {if $pdfType.U} selected="true"{/if}>Unia</option>
|
||||
<option value="E" {if $pdfType.E} selected="true"{/if}>Eksport</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
{else}
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Kategoria dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="category[]" multiple="multiple">
|
||||
{ foreach from=$CATEGORY item=c key=k }
|
||||
<option value="{$k}" >{$c}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Typ dokumentu</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="type[]" multiple="multiple">
|
||||
<option value="fv" selected="true">FV</option>
|
||||
<option value="fvk" selected="true" >FVK</option>
|
||||
<option value="pr" selected="true" >PR</option>
|
||||
<option value="prk" selected="true" >PRK</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Rodzaj dokumentu:</td>
|
||||
<td class="dataField" width="30%" nowrap="nowrap">
|
||||
<select name="pdfType[]" multiple="multiple">
|
||||
<option value="K" selected="true">Kraj</option>
|
||||
<option value="U" selected="true">Unia</option>
|
||||
<option value="E" selected="true">Eksport</option>
|
||||
</select>
|
||||
</td>
|
||||
{/if}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportSalesByContractor';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button">
|
||||
|
||||
<table id="myTable" class="ablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_CONTRACTOR}</th>
|
||||
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Indeks</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_SOLD_AMOUNT}</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_VALUE_SALES}</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_AVERAGE_PRICE}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_COST}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_MARGIN}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$ContractorData item=DATA key=CONNAME name=loop}
|
||||
{if $CONNAME!=""}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static contractor">
|
||||
<td class="oddListRowS1 alignLeft"><a class="plusStyle showTablesContractor">[+]</a><b> {$CONNAME}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.IloscSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.SoldSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.SredniaSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.KosztSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{foreach from=$DATA item=CAT key=CATNAME name=loop}
|
||||
{if $CATNAME!="IloscSum" && $CATNAME!="SoldSum" && $CATNAME!="SredniaSum" && $CATNAME!="KosztSum" && $CATNAME!="MarzaSum" && $CATNAME!="StanSum" && $CATNAME!="WartoscSum"}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly categoryShowHide">
|
||||
<tr class="static category">
|
||||
<td class="oddListRowS1 alignLeft "><a class="plusStyle showTables">[+]</a><b> {$CATNAME}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.IloscSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.SoldSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.SredniaSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.KosztSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{foreach from=$CAT item=CAT2 key=CAT2NAME name=loop}
|
||||
{if $CAT2NAME!="IloscSum" && $CAT2NAME!="SoldSum" && $CAT2NAME!="SoldSumNormal" && $CAT2NAME!="IloscNormal" && $CAT2NAME!="SredniaSum" && $CAT2NAME!="KosztSum" && $CAT2NAME!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum"}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly tablesShowHide">
|
||||
<tr class="subcategory">
|
||||
<td class="oddListRowS1 alignLeft"><a class="showRows" style="color: cadetblue; text-decoration: none; cursor: pointer;">[+]</a><b> {$CAT2NAME}</b></td>
|
||||
<td class="oddListRowS1 sumRow"></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.IloscSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.SoldSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.SredniaSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.KosztSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<tbody aria-live="polite" aria-relevant="all" class="rowShowHide">
|
||||
{foreach from=$CAT2 item=ROW name=loop}
|
||||
{if $ROW.name!="IloscSum" && $ROW.name!="SoldSum" && $ROW.name!="SredniaSum" && $ROW.name!="KosztSum" && $ROW.name!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum" && $ROW.name!=""}
|
||||
{if $smarty.foreach.loop.index % 2 == 1}
|
||||
<tr role="row" class="products">
|
||||
{else}
|
||||
<tr class="products" role="row">
|
||||
{/if}
|
||||
<td class="oddListRowS1 alignLeft" style="text-align:left;">
|
||||
<a target="new" href="index.php?module=EcmProducts&action=index&return_module=EcmProducts&action=DetailView&record={$ROW.id}">{$ROW.name}</a>
|
||||
</td>
|
||||
<td class="oddListRowS1" >{$ROW.code}</td>
|
||||
<td class="oddListRowS1" >{$ROW.ilosc|number_format:0:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.netto|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.srednia|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.koszt|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.marza|number_format:2:",":"."}%</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tbody id="stopRows"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="stopTables"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="stopCategory"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static sumAll">
|
||||
<td class="oddListRowS1 alignLeft"><b>{$MOD.LBL_SUM}:</b></td>
|
||||
<td class="oddListRowS1" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.IloscSumSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.SoldSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.SredniaSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.KosztSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.MarzaSumSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
296
modules/EcmReportsBackUp20151106/tpls/ReportSalesByContractorCopy.tpl
Executable file
296
modules/EcmReportsBackUp20151106/tpls/ReportSalesByContractorCopy.tpl
Executable file
@@ -0,0 +1,296 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportSalesByContractor.js"></script>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .category .alignLeft {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
table.tablesorter .products .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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_RAPORT_SALES_BY_CONTRACTOR} </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Podstawowe wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportSales">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportSalesByContractor" />
|
||||
<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="10%" 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 : "{$dateFormat}",
|
||||
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="10%" 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 : "{$dateFormat}",
|
||||
button : "date_to_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">Typ dokumentu</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="type" name="type">
|
||||
<option value="%" { if $searchByType==""} selected="true" {/if} >normalny i korekta</option>
|
||||
<option value="normal" { if $searchByType=="normal"} selected {/if} >normalny</option>
|
||||
<option value="correct" { if $searchByType=="correct"} selected {/if} >korekta</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">Handlowiec</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="user" name="selectUser">
|
||||
<option value="" { if $selectedUser eq '' } selected="selected" {/if} >wszyscy</option>
|
||||
{foreach from=$USERS item=USER key=count name=loop}
|
||||
<option value="{$USER.id}" {if $selectedUser eq $USER.id} selected="selected" {/if}>{$USER.first} {$USER.last}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td class="dataLabel" width="25%" nowrap="nowrap">
|
||||
Grupuj "Media Saturn Holding" <input type="checkbox" value="enabled" name="group_media_saturn_holding" {if $group_media_saturn_holding == 'enabled'}checked{/if}>
|
||||
</td>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportSalesByContractor';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button">
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<table id="myTable" class="ablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_CONTRACTOR}</th>
|
||||
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Indeks</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_SOLD_AMOUNT}</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_VALUE_SALES}</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_AVERAGE_PRICE}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_COST}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_MARGIN}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$ContractorData item=DATA key=CONNAME name=loop}
|
||||
{if $CONNAME!=""}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static contractor">
|
||||
<td class="oddListRowS1 alignLeft"><a class="plusStyle showTablesContractor">[+]</a><b> {$CONNAME}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.IloscSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.SoldSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.SredniaSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.KosztSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$ContractorData.$CONNAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{foreach from=$DATA item=CAT key=CATNAME name=loop}
|
||||
{if $CATNAME!="IloscSum" && $CATNAME!="SoldSum" && $CATNAME!="SredniaSum" && $CATNAME!="KosztSum" && $CATNAME!="MarzaSum" && $CATNAME!="StanSum" && $CATNAME!="WartoscSum"}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly categoryShowHide">
|
||||
<tr class="static category">
|
||||
<td class="oddListRowS1 alignLeft "><a class="plusStyle showTables">[+]</a><b> {$CATNAME}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.IloscSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.SoldSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.SredniaSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.KosztSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{foreach from=$CAT item=CAT2 key=CAT2NAME name=loop}
|
||||
{if $CAT2NAME!="IloscSum" && $CAT2NAME!="SoldSum" && $CAT2NAME!="SoldSumNormal" && $CAT2NAME!="IloscNormal" && $CAT2NAME!="SredniaSum" && $CAT2NAME!="KosztSum" && $CAT2NAME!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum"}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly tablesShowHide">
|
||||
<tr class="subcategory">
|
||||
<td class="oddListRowS1 alignLeft"><a class="showRows" style="color: cadetblue; text-decoration: none; cursor: pointer;">[+]</a><b> {$CAT2NAME}</b></td>
|
||||
<td class="oddListRowS1 sumRow"></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.IloscSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.SoldSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.SredniaSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.KosztSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<tbody aria-live="polite" aria-relevant="all" class="rowShowHide">
|
||||
{foreach from=$CAT2 item=ROW name=loop}
|
||||
{if $ROW.name!="IloscSum" && $ROW.name!="SoldSum" && $ROW.name!="SredniaSum" && $ROW.name!="KosztSum" && $ROW.name!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum" && $ROW.name!=""}
|
||||
{if $smarty.foreach.loop.index % 2 == 1}
|
||||
<tr role="row" class="products">
|
||||
{else}
|
||||
<tr class="products" role="row">
|
||||
{/if}
|
||||
<td class="oddListRowS1 alignLeft" style="text-align:left;">
|
||||
<a target="new" href="index.php?module=EcmProducts&action=index&return_module=EcmProducts&action=DetailView&record={$ROW.id}">{$ROW.name}</a>
|
||||
</td>
|
||||
<td class="oddListRowS1" >{$ROW.code}</td>
|
||||
<td class="oddListRowS1" >{$ROW.ilosc|number_format:0:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.netto|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.srednia|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.koszt|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.marza|number_format:2:",":"."}%</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tbody id="stopRows"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="stopTables"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="stopCategory"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static sumAll">
|
||||
<td class="oddListRowS1 alignLeft"><b>{$MOD.LBL_SUM}:</b></td>
|
||||
<td class="oddListRowS1" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.IloscSumSum|number_format:0:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.SoldSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.SredniaSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.KosztSumSum|number_format:2:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.MarzaSumSum|number_format:2:",":"." }%</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<br/>
|
||||
242
modules/EcmReportsBackUp20151106/tpls/ReportStockByStockIndexes.tpl
Executable file
242
modules/EcmReportsBackUp20151106/tpls/ReportStockByStockIndexes.tpl
Executable file
@@ -0,0 +1,242 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportStocks.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
||||
function pdfExport() {
|
||||
var url = $(location).attr('href');
|
||||
url = url + "&toPDF=1&to_pdf=1";
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;;
|
||||
}
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.alt-row:hover td {
|
||||
background: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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>Ruch magazynowy z podziałem na kartoteki materiałowe</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportStocks">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportStockByStockIndexes" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_STOCK}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="stock" name="selectStock">
|
||||
<option value="" { if $selectStock==""} selected="true" {/if} >{$MOD.LBL_ALL_STOCKS}</option>
|
||||
{foreach from=$STOCKS item=STOCK key=count name=loop}
|
||||
<option value="{$STOCK.id}" { if $selectStock==$STOCK.id} selected="true" {/if} >{$STOCK.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">Rodzaj dokumentu</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="stock" name="selectDocType">
|
||||
<option value="" { if $selectDocType==""} selected="true" {/if} >Wybierz typ dokumentu</option>
|
||||
{foreach from=$DOCTYPES item=DOC key=count name=loop}
|
||||
<option value="{$count}" { if $selectDocType==$count} selected="true" {/if} >{$DOC}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Data od</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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">
|
||||
{* console.log('dupa');*}
|
||||
Calendar.setup({ldelim}
|
||||
inputField: "date_from",
|
||||
daFormat: "%d.%m.%Y",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Data do</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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="60%" nowrap="nowrap"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportStockByStockIndexes';">
|
||||
<input id="pdf" class="button" name="pdf" value="PDF" onClick="pdfExport();" type="button">
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table id="myTable" class="tablesorter " role="grid" width="50%">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="50%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan początkowy:</th>
|
||||
<th width="50%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$TOTAL_VALUE_OLD|number_format:2:",":"." }</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{assign var="number" value=1}
|
||||
{foreach from=$DATA key="key" item="item" name=loop}
|
||||
{foreach from=$item key="key2" item="item2" name=loop}
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td class="oddListRowS1 alignLeft"><b>{$doc_name.$key2} { if $key==0}(+){else}(-){/if}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:right;" rowspan="{$currow}"><b>{$item2|number_format:2:",":"."}</b></td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan końcowy:</th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$TOTAL_VALUE_NOW|number_format:2:",":"." }</th>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
333
modules/EcmReportsBackUp20151106/tpls/ReportStockDocMoves.tpl
Executable file
333
modules/EcmReportsBackUp20151106/tpls/ReportStockDocMoves.tpl
Executable file
@@ -0,0 +1,333 @@
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
{*<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script> *}
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportStockDocMoves.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;;
|
||||
}
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.alt-row:hover td {
|
||||
background: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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>Obroty wg dokumentów</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="ReportStockDocMoves">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportStockDocMoves" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<span id="stockSelectedspan">{$MOD.LBL_STOCK}</span>
|
||||
<select multiple="multiple" name="stockSelected[]">
|
||||
{foreach from=$stocksList key="key" item="item"}
|
||||
<option value="{$key}" {if @in_array($key, $stockSelected) } selected="true" {/if}>{$item}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
Dokument
|
||||
{html_options name=documentsSelected options=$documentList selected=$documentSelected}
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
Widok:
|
||||
{html_options name=viewSelected options=$viewList selected=$viewSelected}
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<span class="changebox kartotekamaterialowa">
|
||||
Kartoteka materiałowa
|
||||
<select multiple name="stockIndexSelected[]">
|
||||
<option value="NULL" {if @in_array('NULL', $stockIndexSelected) } selected="true" {/if}></option>
|
||||
{foreach from=$stockIndexList key="key" item="item"}
|
||||
<option value="{$key}" {if @in_array($key, $stockIndexSelected) } selected="true" {/if}>{$item}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</span>
|
||||
<span class="changebox magazyndocelowy">
|
||||
Do magazynu
|
||||
<select multiple="multiple" name="mmSelected[]">
|
||||
{foreach from=$stocksList key="key" item="item"}
|
||||
<option value="{$key}" {if @in_array($key, $mmSelected) } selected="true" {/if}>{$item}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</span>
|
||||
<span class="changebox kontrahent">
|
||||
{$MOD.LBL_CONTRACTOR}
|
||||
<input type="text" id="accountName" name="accountName" value="{$accountName}">
|
||||
<input type="hidden" id="accountId" name="accountId" value="{$accountId}">
|
||||
<button
|
||||
type="button"
|
||||
id="selectAccount"
|
||||
value="{$APP.LBL_ADD_BUTTON}"
|
||||
title="Wybierz kontrahenta">
|
||||
<img src="{sugar_getimagepath file="id-ff-select.png"}">
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="clear"
|
||||
value="Wyczyść"
|
||||
title="Wyczyść">
|
||||
<img src="{sugar_getimagepath file="id-ff-clear.png"}">
|
||||
</button>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">
|
||||
Data od
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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 class="dataLabel" width="10%" nowrap="nowrap">
|
||||
Data do
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="submit" value="{$MOD.LBL_EXECUTE}">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href = 'index.php?module=EcmReports&action=ReportStockDocMoves';">
|
||||
<input id="pdf" class="button" name="pdf" value="PDF" onClick="pdfExport();" type="button">
|
||||
</form>
|
||||
<br>
|
||||
<div class="content" style="text-align:center">
|
||||
{if $viewSelected eq 'documents'}
|
||||
<table id="myTable">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left; width:6%" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Numer dokumentu</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left; width:6%" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Data</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">
|
||||
{if $documentSelected eq 'EcmStockDocInsideOuts' or $documentSelected eq 'EcmStockDocInsideIns' or $documentSelected eq 'EcmStockDocCorrects'}
|
||||
Kartoteka materiałowa
|
||||
{elseif $documentSelected eq 'EcmStockDocMoves'}
|
||||
Magazyn docelowy
|
||||
{elseif $documentSelected eq 'EcmStockDocIns'}
|
||||
Dostawca
|
||||
{elseif $documentSelected eq 'EcmStockDocOuts'}
|
||||
Odbiorca
|
||||
{elseif $documentSelected eq 'EcmInvoiceOuts'}
|
||||
Kontrahent
|
||||
{/if}
|
||||
</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Opis dokumentu</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left; width:18%" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Magazyn</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA.doc key="key" item="item" name=loop}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="index.php?module={$documentSelected}&action=DetailView&record={$item.id}">{$item.typ} {$item.numer}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$item.data}
|
||||
</td>
|
||||
<td>
|
||||
{if $documentSelected eq 'EcmStockDocInsideOuts' or $documentSelected eq 'EcmStockDocInsideIns' or $documentSelected eq 'EcmStockDocCorrects'}
|
||||
{$item.kartoteka}
|
||||
{elseif $documentSelected eq 'EcmStockDocMoves'}
|
||||
{$item.magazynIn}
|
||||
{elseif $documentSelected eq 'EcmStockDocIns' or $documentSelected eq 'EcmStockDocOuts' or $documentSelected eq 'EcmInvoiceOuts' }
|
||||
<a href="index.php?module=Accounts&action=DetailView&record={$item.accountId}">{$item.accountNazwa}</a>
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
{$item.nazwa}
|
||||
</td>
|
||||
|
||||
<td style="text-align: right">
|
||||
{assign var=suma value=$suma+$item.wartosc}
|
||||
{$item.wartosc|number_format:2:",":"."}
|
||||
</td>
|
||||
<td style="text-align: left">
|
||||
{$item.magazyn}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan='4' style="text-align:left;">Suma:</th>
|
||||
<th style="text-align:right;">{$suma|number_format:2:",":"." }</th>
|
||||
<th ></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{elseif $viewSelected eq 'positions'}
|
||||
<table id="myTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Indeks</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Nazwa</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:left;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Jm</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Ilość</th>
|
||||
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;text-align:right;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA.prod key="key" item="item" name=loop}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="index.php?module=EcmProducts&action=DetailView&record={$item.id}">{$item.kod} </a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="index.php?module=EcmProducts&action=DetailView&record={$item.id}">{$item.nazwa} </a>
|
||||
</td>
|
||||
<td>
|
||||
{$item.jm}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{assign var=sumaIlosci value=$sumaIlosci+$item.ilosc}
|
||||
{$item.ilosc|number_format:2:",":"."}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{assign var=suma value=$suma+$item.wartosc}
|
||||
{$item.wartosc|number_format:2:",":"."}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan='3' style="text-align:left;">Suma:</th>
|
||||
<th colspan='1' style="text-align:right;">{$sumaIlosci|number_format:2:",":"." }</th>
|
||||
<th colspan='1' style="text-align:right;">{$suma|number_format:2:",":"." }</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{/if}
|
||||
<span id="info">Strona w budowie :)</span>
|
||||
</div>
|
||||
261
modules/EcmReportsBackUp20151106/tpls/ReportStockNewDoc.tpl
Executable file
261
modules/EcmReportsBackUp20151106/tpls/ReportStockNewDoc.tpl
Executable file
@@ -0,0 +1,261 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportStocks.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
||||
function pdfExport() {
|
||||
var url = $(location).attr('href');
|
||||
url = url + "&toPDF=1&to_pdf=1";
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;;
|
||||
}
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.alt-row:hover td {
|
||||
background: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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_STOCKS} za okres</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportStocks">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportStockNew" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_STOCK}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="stock" name="selectStock">
|
||||
<option value="" { if $selectStock==""} selected="true" {/if} >{$MOD.LBL_ALL_STOCKS}</option>
|
||||
{foreach from=$STOCKS item=STOCK key=count name=loop}
|
||||
<option value="{$STOCK.id}" { if $selectStock==$STOCK.id} selected="true" {/if} >{$STOCK.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_PRODUCT_ACTIVE}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="productActive" name="selectProductActive">
|
||||
<option value="" { if $selectProductActive==""} selected="true" {/if} >{$MOD.LBL_YES}/{$MOD.LBL_NO}</option>
|
||||
<option value="1" { if $selectProductActive=="1"} selected="true" {/if} >{$MOD.LBL_YES}</option>
|
||||
<option value="0" { if $selectProductActive=="0"} selected="true" {/if} >{$MOD.LBL_NO}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Data od</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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">
|
||||
{* console.log('dupa');*}
|
||||
Calendar.setup({ldelim}
|
||||
inputField: "date_from",
|
||||
daFormat: "%d.%m.%Y",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">Data do</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap">
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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="60%" nowrap="nowrap"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportStockNew';">
|
||||
<input id="pdf" class="button" name="pdf" value="PDF" onClick="pdfExport();" type="button">
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="1%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">L.p.</th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_INDEX}/{$MOD.LBL_NAME}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan {$date_from}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Przychód</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Rozchód</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Stan {$date_to}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{assign var="number" value=1}
|
||||
{foreach from=$DATA key="key" item="item" name=loop}
|
||||
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td class="oddListRowS1 alignLeft"><b>{$number}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:left;" rowspan="{$currow}"><b>{$item.product_code}</b><br><b>{$item.product_name}</b></td>
|
||||
<td class="oddListRowS1 sumRow" >{$item.total_quantity_old|number_format:2:",":"." } {$item.unit_id}<br>{$item.total_price_old|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" >{$item.przychod_q|number_format:2:",":"." } {$item.unit_id}<br>{$item.przychod_w|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" >{$item.rozchod_q|number_format:2:",":"." } {$item.unit_id}<br>{$item.rozchod_w|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" >{$item.total_quantity_now|number_format:2:",":"." } {$item.unit_id}<br>{$item.total_price_now|number_format:2:",":"." }</td>
|
||||
{assign var="number" value=$number+1}
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='line'></td>
|
||||
<td class='line'></td>
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tr><td></td><td style="text-align:right;"><b>Razem ilość:</b></td><td class="oddListRowS1 sumRow"><b>{$TOTAL_QUANTITY_OLD|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow"><b>{$przychod_q|number_format:2:",":"." }</b>
|
||||
</td><td class="oddListRowS1 sumRow"><b>{$rozchod_q|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow"><b>{$TOTAL_QUANTITY_NOW|number_format:2:",":"." }</b></td></tr>
|
||||
<tr><td></td><td style="text-align:right;"><b>Razem wartość:</b></td><td class="oddListRowS1 sumRow"><b>{$TOTAL_VALUE_OLD|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow"><b>{$przychod_w|number_format:2:",":"." }</b>
|
||||
</td><td class="oddListRowS1 sumRow"><b>{$rozchod_w|number_format:2:",":"." }</b></td><td class="oddListRowS1 sumRow"><b>{$TOTAL_VALUE_NOW|number_format:2:",":"." }</b></td></tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
231
modules/EcmReportsBackUp20151106/tpls/ReportStocks.tpl
Executable file
231
modules/EcmReportsBackUp20151106/tpls/ReportStocks.tpl
Executable file
@@ -0,0 +1,231 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportStocks.js"></script>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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_STOCKS} </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
<form action="index.php" method="get" name="searchReportStocks">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportStocks" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_STOCK}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="stock" name="selectStock">
|
||||
<option value="" { if $selectStock==""} selected="true" {/if} >{$MOD.LBL_ALL_STOCKS}</option>
|
||||
{foreach from=$STOCKS item=STOCK key=count name=loop}
|
||||
<option value="{$STOCK.id}" { if $selectStock==$STOCK.id} selected="true" {/if} >{$STOCK.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="25%" nowrap="nowrap"></td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_PRODUCT_ACTIVE}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="productActive" name="selectProductActive">
|
||||
<option value="" { if $selectProductActive==""} selected="true" {/if} >{$MOD.LBL_YES}/{$MOD.LBL_NO}</option>
|
||||
<option value="1" { if $selectProductActive=="1"} selected="true" {/if} >{$MOD.LBL_YES}</option>
|
||||
<option value="0" { if $selectProductActive=="0"} selected="true" {/if} >{$MOD.LBL_NO}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="25%" nowrap="nowrap"></td>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">End of line</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="productEol" name="selectProductEol">
|
||||
<option value="" { if $selectProductEol==""} selected="true" {/if} >{$MOD.LBL_YES}/{$MOD.LBL_NO}</option>
|
||||
<option value="1" { if $selectProductEol=="1"} selected="true" {/if} >{$MOD.LBL_YES}</option>
|
||||
<option value="0" { if $selectProductEol=="0"} selected="true" {/if} >{$MOD.LBL_NO}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="25%" nowrap="nowrap"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportSales';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="{$MOD.BTN_EXCEL_EXPORT}" type="button">
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_PRODUCTS}</th>
|
||||
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_INDEX}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_VALUE}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$DATA item=CAT key=CATNAME name=loop}
|
||||
{* Table headers *}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static category">
|
||||
{if $CATNAME != ""}
|
||||
<td class="oddListRowS1 alignLeft "><a class="plusStyle showTables">[+]</a><b> {$CATNAME}</b></td>
|
||||
{/if}
|
||||
<td class="oddListRowS1" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.QuantitySum|number_format:4:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$DATA.$CATNAME.PriceSum|number_format:2:",":"." }</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{foreach from=$CAT item=CAT2 key=CAT2NAME name=loop}
|
||||
{if $CAT2NAME!="QuantitySum" && $CAT2NAME!="PriceSum"}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly tablesShowHide">
|
||||
<tr class="subcategory">
|
||||
<td class="oddListRowS1 alignLeft"><a class="showRows" style="color: cadetblue; text-decoration: none; cursor: pointer;">[+]</a><b> {$CAT2NAME}</b></td>
|
||||
<td class="oddListRowS1" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.QuantitySum2|number_format:4:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$CAT.$CAT2NAME.PriceSum2|number_format:2:",":"." }</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<tbody aria-live="polite" aria-relevant="all" class="rowShowHide">
|
||||
{foreach from=$CAT2 item=ROW name=loop}
|
||||
{if $CAT2NAME!="AvgPriceSum" && $CAT2NAME!="QuantitySum" && $ROW.name!=""}
|
||||
{if $smarty.foreach.loop.index % 2 == 1}
|
||||
<tr role="row" class="contractor">
|
||||
{else}
|
||||
<tr class="contractor" role="row">
|
||||
{/if}
|
||||
|
||||
<td class="oddListRowS1 alignLeft" style="text-align:left;">
|
||||
<a target="new" href="index.php?module=EcmProducts&action=index&return_module=EcmProducts&action=DetailView&record={$ROW.id}">
|
||||
{$ROW.name}
|
||||
</a>
|
||||
</td>
|
||||
<td class="oddListRowS1" >{$ROW.code}</td>
|
||||
<td class="oddListRowS1" >{$ROW.quantity|number_format:4:",":"."}</td>
|
||||
<td class="oddListRowS1" >{$ROW.price|number_format:2:",":"."}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tbody id="stopRows"></tbody>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tbody id="stopTables"></tbody>
|
||||
{/foreach}
|
||||
<tbody id="functions-core" class="tablesorter-infoOnly">
|
||||
<tr class="static category sumAll">
|
||||
<td class="oddListRowS1 alignLeft"><b>{$MOD.LBL_SUM}:</b></td>
|
||||
<td class="oddListRowS1" ></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.QuantitySumSum|number_format:4:",":"." }</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><b>{$SUM.PriceSumSum|number_format:2:",":"." }</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br/>
|
||||
256
modules/EcmReportsBackUp20151106/tpls/ReportStocksDoc.tpl
Executable file
256
modules/EcmReportsBackUp20151106/tpls/ReportStocksDoc.tpl
Executable file
@@ -0,0 +1,256 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportStocks.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
||||
function pdfExport() {
|
||||
var url = $(location).attr('href');
|
||||
url = url + "&toPDF=1&to_pdf=1";
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
.additionalColumn {
|
||||
background-color: #87CCED;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;;
|
||||
}
|
||||
.groupActive {
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
border-left: 1px solid black;
|
||||
background-color: #87CCED;
|
||||
}
|
||||
|
||||
.sumRow {
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
.sumAll td{
|
||||
background-color: #BDC7B5;
|
||||
}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
|
||||
/* 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: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.alt-row:hover td {
|
||||
background: #B8E8E8;
|
||||
color: #343432;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll td {
|
||||
background: #EBEBED;
|
||||
color: black;
|
||||
}
|
||||
table.tablesorter tbody tr.sumAll:hover td {
|
||||
background: #E0E0E2;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tablesorter .sumRow, .oddListRowS1 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.tablesorter .alignLeft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.tablesorter .subcategory .alignLeft {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table.tablesorter .contractor .alignLeft {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.plusStyle {
|
||||
color: #abc3d7;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
|
||||
<table id="tableMenu" 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_STOCKS} </h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form action="index.php" method="get" name="searchReportStocks">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportStocksDoc" />
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_STOCK}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="stock" name="selectStock">
|
||||
<option value="" { if $selectStock==""} selected="true" {/if} >{$MOD.LBL_ALL_STOCKS}</option>
|
||||
{foreach from=$STOCKS item=STOCK key=count name=loop}
|
||||
<option value="{$STOCK.id}" { if $selectStock==$STOCK.id} selected="true" {/if} >{$STOCK.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">{$MOD.LBL_PRODUCT_ACTIVE}</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select id="productActive" name="selectProductActive">
|
||||
<option value="" { if $selectProductActive==""} selected="true" {/if} >{$MOD.LBL_YES}/{$MOD.LBL_NO}</option>
|
||||
<option value="1" { if $selectProductActive=="1"} selected="true" {/if} >{$MOD.LBL_YES}</option>
|
||||
<option value="0" { if $selectProductActive=="0"} selected="true" {/if} >{$MOD.LBL_NO}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="10%" nowrap="nowrap"></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input class="button" name="submit" value="{$MOD.LBL_EXECUTE}" type="submit">
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportStocksDoc';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="Excel" type="button">
|
||||
<input id="pdf" class="button" name="pdf" value="PDF" onClick="pdfExport();" type="button">
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
|
||||
<th width="8%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_INDEX}</th>
|
||||
<th width="15%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_NAME}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_DOC_NUMBER}</th>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_CONSIGNMENTS}</th>
|
||||
{/if}
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_QUANTITY}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_PRICE}</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">{$MOD.LBL_VALUE}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA key="key" item="item" name=loop}
|
||||
|
||||
<tr>
|
||||
{if $item.add|@count>1}
|
||||
{assign var="rowspan" value=$item.add|@count}
|
||||
{assign var="rowspanadd" value=1}
|
||||
{assign var="currow" value=$rowspan*2+$rowspanadd}
|
||||
{else}
|
||||
{assign var="currow" value=1}
|
||||
{/if}
|
||||
<td class="oddListRowS1 alignLeft" rowspan="{$currow}"><b>{$item.product_code}</b></td>
|
||||
<td class="oddListRowS1" style="text-align:left;" rowspan="{$currow}"><b>{$item.product_name}</b></td>
|
||||
<td class="oddListRowS1 sumRow" ><a href="index.php?module={$item.parent_type2}&action=DetailView&record={$item.parent_id}">{$item.parent_type} {$item.parent_name}</a> {$item.date_entered|date_format:"%d.%m.%Y"}</td>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<td class="oddListRowS1 sumRow" >{$item.part_no}</td>
|
||||
{/if}
|
||||
<td class="oddListRowS1 sumRow" >{$item.total_quantity|number_format:2:",":"." } {$item.unit_id}</td>
|
||||
<td class="oddListRowS1 sumRow" >{$item.price|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" >{$item.total_price|number_format:2:",":"." }</td>
|
||||
</tr>
|
||||
{if $item.add|@count>1}
|
||||
{foreach from=$item.add key="kis" item="position" name=loop}
|
||||
<tr>
|
||||
<td class="oddListRowS1 sumRow" ><a href="index.php?module={$position.parent_type2}&action=DetailView&record={$position.parent_id}">{$position.parent_type} {$position.parent_name}</a> {$position.date_entered|date_format:"%d.%m.%Y"}</td>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<td class="oddListRowS1 sumRow" >{$position.part_no}</td>
|
||||
{/if}
|
||||
<td class="oddListRowS1 sumRow" >{$position.quantity|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" >{$position.price|number_format:2:",":"." }</td>
|
||||
<td class="oddListRowS1 sumRow" >{$position.position_value|number_format:2:",":"." }</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='line'></td>
|
||||
<td class='line'></td>
|
||||
<td class='line'></td>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<td class='line'></td>
|
||||
{/if}
|
||||
<td class='line'></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{/if}
|
||||
<tr>
|
||||
<td class='line'></td>
|
||||
<td class='line'></td>
|
||||
{if $CONSIGNMENTS==TRUE}
|
||||
<td class='line'></td>
|
||||
{/if}
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
<td class='line'></td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tr><td></td><td></td><td class="oddListRowS1 sumRow"><b>Razem:</b></td>{if $CONSIGNMENTS==TRUE}<td></td>{/if}<td class="oddListRowS1 sumRow"><b>{$TOTAL_QUANTITY|number_format:2:",":"." }</b></td><td></td><td class="oddListRowS1 sumRow"><b>{$TOTAL_VALUE|number_format:2:",":"." }</b></td></tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
168
modules/EcmReportsBackUp20151106/tpls/ReportValue.tpl
Executable file
168
modules/EcmReportsBackUp20151106/tpls/ReportValue.tpl
Executable file
@@ -0,0 +1,168 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="modules/EcmReports/TableSorter/css/theme.blue2.css"/>
|
||||
<!-- Tablesorter -->
|
||||
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.staticrow.min.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/TableSorter/js/jquery.tablesorter.widgets.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/jquery.blockUI.js"></script>
|
||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
||||
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/ReportValue.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
thead, tfoot {font-weight: bold;}
|
||||
|
||||
table.tablesorter tbody tr:hover td {
|
||||
background: #E8E8E8;
|
||||
color: #343432;
|
||||
}
|
||||
/* 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;
|
||||
}
|
||||
.element{
|
||||
position:fixed;
|
||||
bottom: 0%;
|
||||
width: 97%;
|
||||
padding:10px;
|
||||
font-family:Arial;
|
||||
background-color: white;
|
||||
border:1px solid black;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
|
||||
<table id="tableMenu" 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_VALUE_NAME}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<ul class="tablist" style="width:100%;">
|
||||
<li>
|
||||
<a class="current" href="#">Wyszukiwanie</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form action="index.php" method="get" name="where" id="where">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="ReportValue" />
|
||||
<input type="hidden" name="parentTab" value="Raporty"/>
|
||||
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="white-space: nowrap">Data od:
|
||||
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="Data od" 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 : "{$dateFormat}",
|
||||
button : "date_from_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td style="white-space: nowrap">Data do:
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="Data do" 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 : "{$dateFormat}",
|
||||
button : "date_to_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
</form>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend>{$MOD.LBL_COLUMNS_SHOW}</legend>
|
||||
{foreach from=$category key=k item=v}
|
||||
{if in_array($k,$selectedColumns)}
|
||||
<input type="checkbox" name="selectedColumns[]" value="{$k}" checked="true" > {$v} </input>
|
||||
{else}
|
||||
<input type="checkbox" name="selectedColumns[]" value="{$k}"> {$v} </input>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<input class="button" value="{$MOD.LBL_EXECUTE}" type="submit" form="where">
|
||||
<input class="button" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=ReportValue&parentTab=Raporty';">
|
||||
|
||||
|
||||
|
||||
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="10%">{$MOD.LBL_YEAR_MONTH}</th>
|
||||
{foreach from=$category key=k item=v}
|
||||
{if in_array($k,$selectedColumns)}
|
||||
<th value="{$k}">{$v}</th>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<th width="10%">{$MOD.LBL_SUM}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$data key=rok item=miesiac}
|
||||
{foreach from=$miesiac key=nazwa item=rekord}
|
||||
<tr>
|
||||
<td>{$rok} {$nazwa}</td>
|
||||
{foreach from=$rekord key=kategoria item=wartosc}
|
||||
<td style="text-align: right;">{$wartosc}</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>{$MOD.LBL_SUM}</td>
|
||||
{foreach from=$suma item=summa}
|
||||
<td style="text-align: right;">{$summa}</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<div id="testujemy"></div>
|
||||
|
||||
<div id="chart_div" style="width: 100%; height: 500px;"></div>
|
||||
259
modules/EcmReportsBackUp20151106/tpls/VatSalesRegister/index.tpl
Executable file
259
modules/EcmReportsBackUp20151106/tpls/VatSalesRegister/index.tpl
Executable file
@@ -0,0 +1,259 @@
|
||||
<!-- 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>
|
||||
|
||||
30
modules/EcmReportsBackUp20151106/tpls/detailContractors.tpl
Executable file
30
modules/EcmReportsBackUp20151106/tpls/detailContractors.tpl
Executable file
@@ -0,0 +1,30 @@
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/detailProducts.js"></script>
|
||||
<table class="productsTable" class="tablesorter tablesorter-blue2" role="grid" >
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Kontrahent</th>
|
||||
<th width="9%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Sprzedana ilość</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość sprzedaży</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Średnia cena</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Koszt</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Marża</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$data item=ROW name=loop}
|
||||
<tr style="background-color: #e6e6e6;" role="row">
|
||||
<td class="oddListRowS1" style="text-align:left;">
|
||||
<a target="new" href="index.php?module=Accounts&return_module=Accounts&action=DetailView&record={$ROW.id}">
|
||||
{$ROW.name}
|
||||
</a>
|
||||
</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.ilosc|number_format:0:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.netto|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.srednia|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.koszt|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.marza|number_format:2:",":"."}%</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
32
modules/EcmReportsBackUp20151106/tpls/detailProducts.tpl
Executable file
32
modules/EcmReportsBackUp20151106/tpls/detailProducts.tpl
Executable file
@@ -0,0 +1,32 @@
|
||||
<script type="text/javascript" src="modules/EcmReports/javascript/detailProducts.js"></script>
|
||||
<table class="productsTable" class="tablesorter tablesorter-blue2" role="grid" >
|
||||
<thead>
|
||||
<tr class="tablesorter-headerRow" role="row">
|
||||
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Produkty</th>
|
||||
<th width="8%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="1" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Indeks</th>
|
||||
<th width="9%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Sprzedana ilość</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość sprzedaży</th>
|
||||
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Średnia cena</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Koszt</th>
|
||||
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Marża</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$data item=ROW name=loop}
|
||||
<tr style="background-color: #e6e6e6;" role="row">
|
||||
<td class="oddListRowS1" style="text-align:left;">
|
||||
<a target="new" href="index.php?module=EcmProducts&action=index&return_module=EcmProducts&action=DetailView&record={$ROW.id}">
|
||||
{$ROW.name}
|
||||
</a>
|
||||
</td>
|
||||
<td class="oddListRowS1" >{$ROW.code}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.ilosc|number_format:0:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.netto|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.srednia|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.koszt|number_format:2:",":"."}</td>
|
||||
<td class="oddListRowS1" style="text-align:right;">{$ROW.marza|number_format:2:",":"."}%</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
209
modules/EcmReportsBackUp20151106/tpls/kpkwReport.tpl
Executable file
209
modules/EcmReportsBackUp20151106/tpls/kpkwReport.tpl
Executable file
@@ -0,0 +1,209 @@
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
table.report {
|
||||
margin: 15px 0;
|
||||
width: 100%;
|
||||
|
||||
border-spacing: 1px;
|
||||
|
||||
font-family: 'Calibri';
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
table.report thead tr th,
|
||||
table.report tbody tr td {
|
||||
padding: 2px 5px;
|
||||
border: 1px solid #CCCCCC;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table.report thead tr th {
|
||||
background: #ebebeb;
|
||||
}
|
||||
|
||||
table.report tbody tr.odd {
|
||||
background: #f6f6f6;
|
||||
}
|
||||
|
||||
table.report tbody tr.even {
|
||||
background: #ffffff;
|
||||
}
|
||||
{/literal}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
function pdfExport() {
|
||||
var url = $(location).attr('href');
|
||||
url = url + "&toPDF=1&to_pdf=1";
|
||||
|
||||
window.open(url);
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<h2>{$MOD.LBL_RAPORT_TITLE}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<ul class="tablist">
|
||||
<li>
|
||||
<a class="current" href="#">Opcje</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form action="index.php" method="get" name="search_reports">
|
||||
<input type="hidden" name="module" value="EcmReports" />
|
||||
<input type="hidden" name="action" value="kpkwReport" />
|
||||
|
||||
<table style="border-top: 0px none; margin-bottom: 4px; width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">
|
||||
{$MOD.LBL_DATE_START}
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<input autocomplete="off" name="date_from" id="date_from" value="{$currentFrom}" title="" tabindex="" size="11" maxlength="10" type="text">
|
||||
<img src="themes/default/images/jscalendar.gif" alt="Enter Date" id="date_from_trigger" align="absmiddle" border="0">
|
||||
<script type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "date_from",
|
||||
daFormat : "{$dateFormat}",
|
||||
button : "date_from_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">
|
||||
{$MOD.LBL_DATE_END}
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<input autocomplete="off" name="date_to" id="date_to" value="{$currentTo}" 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 type="text/javascript">
|
||||
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "date_to",
|
||||
daFormat : "{$dateFormat}",
|
||||
button : "date_to_trigger",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">
|
||||
{$MOD.LBL_CASH2}
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<input autocomplete="off" name="ecmcash_id" id="ecmcash_id" type="hidden" value="{$PARAMS.ecmcash_id}" title="" tabindex="" size="11" maxlength="10" type="text">
|
||||
<input autocomplete="off" name="id_currency" id="id_currency" type="hidden" value="{$PARAMS.id_currency}" title="" tabindex="" size="11" maxlength="10" type="text">
|
||||
<input autocomplete="off" name="cash_name" id="cash_name" value="{$PARAMS.cash_name}" title="" tabindex="" size="11" maxlength="10" type="text">
|
||||
<input title="Wybierz [Alt+T]" accesskey="T" type="button" class="button" value="{$MOD.LBL_SELECT}" name="btn1" onclick='{literal}open_popup("EcmCashs", 600, 400, "", true, false,
|
||||
{"call_back_function":"set_return","form_name":"search_reports","field_to_name_array":
|
||||
{"id":"ecmcash_id","name":"cash_name","currency_id":"id_currency"}}, "single", true); {/literal}'></span>
|
||||
</td>
|
||||
<td class="dataLabel" width="5%" nowrap="nowrap">
|
||||
{$MOD.LBL_CASH_USER2}
|
||||
</td>
|
||||
<td class="dataField" width="10%" nowrap="nowrap">
|
||||
<select name="kasjer" id="kasjer">
|
||||
<option value="">Wszyscy</option>
|
||||
{foreach from=$USERS item=USER key=count name=loop}
|
||||
<option value="{$USER.id}" { if $PARAMS.kasjer==$USER.id} selected="true" {/if} >{$USER.first_name} {$USER.last_name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td class="dataLabel" width="70%" nowrap="nowrap"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input class="button" value="{$MOD.LBL_SUBMIT}" type="submit"/>
|
||||
<input class="button" name="clear" value="{$MOD.LBL_CLEAR}" type="button" onclick="location.href='index.php?module=EcmReports&action=kpkwReport';">
|
||||
<input id="excelEksport" class="button" name="importToExcel" value="Excel" type="button">
|
||||
<input id="pdf" class="button" name="pdf" value="PDF" onClick="pdfExport();" type="button">
|
||||
</form>
|
||||
|
||||
|
||||
<center><h1>{$MOD.LBL_RAPORT_LABEL} <br>{$MOD.LBL_TIME} {$currentFrom} - {$currentTo}<BR>
|
||||
{if $PARAMS.cash_name!=''} {$MOD.LBL_CASH}: {$PARAMS.cash_name}, {$MOD.LBL_CURRENCY_PDF}: {$PARAMS.id_currency}{/if}
|
||||
{if $PARAMS.kasjer!=''}
|
||||
<br>{$MOD.LBL_CASH_USER} {$USER_NAME}
|
||||
{/if}
|
||||
</h1></center><br>
|
||||
<table class="report" style="padding-top: 0px; margin-top:0px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$MOD.LBL_NUMBER_LP}</th>
|
||||
<th>{$MOD.LBL_DOCUMENT_NO}<br>{$MOD.LBL_CREATE_LAB}</th>
|
||||
<th>{$MOD.LBL_TITLE}</th>
|
||||
<th>{$MOD.LBL_PARENT_NAME}</th>
|
||||
<th>{$MOD.LBL_AMOUNT_PLUS}</th>
|
||||
<th>{$MOD.LBL_AMOUNT_MINUS}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$DATA item=poz key=CATNAME name=loop}
|
||||
{if $poz.type_id!=''}
|
||||
<tr class="{$poz.class}">
|
||||
<td width="5%">{$poz.number}</td>
|
||||
<td width="15%" style="text-align:left;">
|
||||
<table class="report" style="padding-top: 0px; margin-top:0px;">
|
||||
<tr class="{$poz.class}">
|
||||
<td style="text-align:left;">{$poz.document_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left;">{$poz.date_entered|date_format:"%d.%m.%Y"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="22%" style="text-align:left;">{$poz.description}</td>
|
||||
<td width="22%" style="text-align:left;">{$poz.parent_name}</td>
|
||||
<td width="17%" style="text-align:right;">{if $poz.type_id==0} {$poz.amount|number_format:2:",":"."} {else} {/if}</td>
|
||||
<td width="17%" style="text-align:right;">{if $poz.type_id==1} {$poz.amount|number_format:2:",":"."} {else} {/if}
|
||||
</td>
|
||||
</tr>
|
||||
{assign var="i" value=$poz.number}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var="currow" value=$poz.number+1}
|
||||
<tr class="{if $currow%2}even{else}odd{/if}">
|
||||
<td width="45%" style="border: 0px; background: #fff;" colspan="2"> </td>
|
||||
<td width="15%" style="border: 0px; background: #fff;"></td>
|
||||
<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE}</td>
|
||||
<td width="15%" style="text-align:right;">{$DATA.in|number_format:2:",":"."}</td>
|
||||
<td width="20%" style="text-align:right;">{$DATA.out|number_format:2:",":"."}</td>
|
||||
<td width="20%" style="border: 0px;background: #fff;">
|
||||
</td>
|
||||
</tr>
|
||||
{assign var="currow" value=$currow+1}
|
||||
<tr class="{if $currow%2}even{else}odd{/if}">
|
||||
<td width="45%" style="border: 0px; background: #fff;" colspan="2"> </td>
|
||||
<td width="15%" style="border: 0px; background: #fff;"></td>
|
||||
<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE_BEFORE}:</td>
|
||||
<td width="15%" style="text-align:right;">{$CASH_BEFORE|number_format:2:",":"."}</td>
|
||||
<td width="20%" style="text-align:right;"></td>
|
||||
<td width="20%" style="border: 0px;background: #fff;">
|
||||
</td>
|
||||
</tr>
|
||||
{assign var="currow" value=$currow+1}
|
||||
<tr class="{if $currow%2}even{else}odd{/if}">
|
||||
<td width="45%" style="border: 0px; background: #fff;" colspan="2"> </td>
|
||||
<td width="15%" style="border: 0px; background: #fff;"></td>
|
||||
<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE_TOTAL}:</td>
|
||||
<td width="15%" style="text-align:right;">{$CASH_NOW|number_format:2:",":"."}</td>
|
||||
<td width="20%" style="text-align:right;"></td>
|
||||
<td width="20%" style="border: 0px;background: #fff;">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user