Add TPL files
This commit is contained in:
@@ -0,0 +1,190 @@
|
||||
<script type="text/javascript" src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/jquery.js"></script>
|
||||
<link rel="stylesheet"
|
||||
href="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/tablesorter-2.31.3/dist/css/theme.blue.min.css">
|
||||
<script type="text/javascript"
|
||||
src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/tablesorter-2.31.3/dist/js/jquery.tablesorter.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/tablesorter-2.31.3/dist/js/jquery.tablesorter.widgets.js">
|
||||
</script>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/3.4.6/select2.min.css" rel="stylesheet">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/3.4.6/select2.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/tablesorter-2.31.3/dist/js/widgets/widget-filter-formatter-select2.min.js">
|
||||
</script>
|
||||
<script type="text/javascript" src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/jquery.blockUI.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/ecommerceInvoicesListView.js">
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/encoding-indexes.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/lib/encoding.js"></script>
|
||||
<!-- HEADER -->
|
||||
<table id="tableMenu" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="themes/Sugar5/images/CaseReports.gif" style="margin-top: 3px; margin-right: 3px;" width="16"
|
||||
height="16">
|
||||
</td>
|
||||
<td>
|
||||
<h2>Faktury E-Commerce</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- FILTERS -->
|
||||
<form action="index.php" method="get">
|
||||
<input type="hidden" name="module" value="EcmInvoiceOuts">
|
||||
<input type="hidden" name="action" value="ecommerce">
|
||||
<table class="tabForm" cellspacing="0" cellpadding="0" style="border-top: 0px none; margin-bottom: 4px;width:100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="5%">Źródło:</td>
|
||||
<td width="10%">
|
||||
<select id="source" name="source">
|
||||
<option value="">Wszystkie</option>
|
||||
{foreach from=$sources item=ROW name=loop}
|
||||
<option value="{$ROW}" {if $source == $ROW}selected{/if}>
|
||||
{$ROW|capitalize}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td width="5%">Okres:</td>
|
||||
<td width="10%">
|
||||
<select id="date" name="date">
|
||||
<option value="">Wszystkie</option>
|
||||
{foreach from=$dates item=ROW name=loop}
|
||||
<option value="{$ROW}" {if $date == $ROW}selected{/if}>
|
||||
{$ROW}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td>Typ:</td>
|
||||
<td>
|
||||
<select id="type" name="type">
|
||||
<option value="">Wszystkie</option>
|
||||
<option value="normal" {if $type == 'normal'}selected{/if}>Faktura</option>
|
||||
<option value="correcting" {if $type == 'correcting'}selected{/if}>Korekta faktury</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="submit" class="button" value="Filtruj">
|
||||
|
||||
<input type="button" class="button" value="Eksport Rewizor"
|
||||
onclick="exportToRewizor('{$source}', '{$date}', '{$type}')">
|
||||
</form>
|
||||
|
||||
<!-- DATA -->
|
||||
<table id="allTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Numer faktury</th>
|
||||
<th>Numer WZ</th>
|
||||
<th>Data rejestracji</th>
|
||||
<th>Data sprzedaży</th>
|
||||
<th>Rodzaj</th>
|
||||
<th>Numer zamówienia</th>
|
||||
<th>Kontrahent</th>
|
||||
<th>Waluta</th>
|
||||
<th>Wartość netto</th>
|
||||
<th>Wartość brutto</th>
|
||||
<th>Wartość VAT</th>
|
||||
<th>Produkty</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<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>
|
||||
{$ROW.id}
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.document_no}
|
||||
{if $ROW.origin == 'amazon'}
|
||||
<img src="modules/EcmSales/images/pdf.gif" onclick="copyToClipboard('{$ROW.url}')"
|
||||
style="cursor:pointer;"></a>
|
||||
{/if}
|
||||
{if $ROW.origin == 'allegro'}
|
||||
<img src="modules/EcmSales/images/pdf.gif"
|
||||
onclick="window.open('https://panel-g.baselinker.com/printouts/printout_invoices.php?id={$ROW.id}')"
|
||||
style="cursor:pointer;" {/if} </td>
|
||||
<td>
|
||||
<a target="_blank"
|
||||
href="index.php?module=EcmStockDocOuts&action=DetailView&record={$ROW.wz_id}">{$ROW.wz_document_no}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.register_date}
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.sell_date}
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.origin}
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.order_no}
|
||||
</td>
|
||||
<td>
|
||||
{if $ROW.parent_name != 'AmazonCustomer'}
|
||||
{$ROW.parent_name} <br>
|
||||
{if $ROW.parent_nip|strlen > 0} {$ROW.parent_nip} <br>{/if}
|
||||
{$ROW.parent_address_street} <br>
|
||||
{$ROW.parent_address_postalcode} {$ROW.parent_address_city}, {$ROW.parent_address_country_code}
|
||||
{/if}
|
||||
{if $ROW.parent_name == 'AmazonCustomer'}
|
||||
AmazonCustomer <br>
|
||||
{if $ROW.parent_nip|strlen > 0} {$ROW.parent_nip} <br>{/if}
|
||||
{$ROW.parent_address_postalcode} {$ROW.parent_address_city}, {$ROW.parent_address_country_code}
|
||||
{/if}
|
||||
<br><br>
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.currency}
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.total_netto}
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.total_brutto}
|
||||
</td>
|
||||
<td>
|
||||
{$ROW.total_vat}
|
||||
</td>
|
||||
<td>
|
||||
{foreach from=$ROW.products item=p name=productsLoop}
|
||||
<a target="_blank"
|
||||
href="index.php?module=EcmProducts&action=DetailView&record={$p.id}">{$p.code}</a>
|
||||
{if $p.code != $p.ecommerce_code && $p.id != '165f364e-9301-25ac-5906-58e38f1de4ca'}
|
||||
({$p.ecommerce_code})
|
||||
{/if}
|
||||
{$p.name} <br>
|
||||
Ilość: {$p.quantity} Cena netto: {$p.price_netto} Cena brutto: {$p.price_brutto} VAT: {$p.vat_value}%
|
||||
<br><br>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{$totalNetto}</td>
|
||||
<td>{$totalBrutto}</td>
|
||||
<td>{$totalVat}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
19
modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/rewizor.tpl
Normal file
19
modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/rewizor.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
[INFO]
|
||||
"1.05.4",0,1250,"Subiekt GT","GT","SubTest","Firma przykładowa systemu InsERT GT","Wrocław","54-445","Bławatkowa 25/3","111-111-11-11","MAG","Główny","Magazyn główny",,1,20170101000000,20170331000000,"Kowalski Jan",20170804155934,"Polska","PL",,0
|
||||
|
||||
{foreach from=$data item=i name=loop}
|
||||
[NAGLOWEK]
|
||||
"FS",1,0,0,"{$i.document_no}","FS","{$i.document_no}",,,"{$i.order_no}",,"{$i.parent_hash}","{$i.parent_short_name}","{$i.parent_name}","{$i.parent_address_city}","{$i.parent_address_postalcode}","{$i.parent_address_street}","{$i.parent_nip}","Sprzedaż",,"Obrowo","{$i.register_date}","{$i.sell_date}","{$i.register_date}",1,0,,{$i.total_netto},{$i.total_vat},{$i.total_brutto},0,,,,"{$i.sell_date}",{$i.total_brutto},{$i.total_brutto},0,0,0,0,"",,,,,"PLN",,"",,,,0,,0,,,,,"",,
|
||||
|
||||
[ZAWARTOSC]
|
||||
"23",23,{$i.total_netto},{$i.total_vat},{$i.total_brutto},0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
|
||||
{/foreach}
|
||||
|
||||
[NAGLOWEK]
|
||||
"KONTRAHENCI"
|
||||
|
||||
[ZAWARTOSC]
|
||||
{foreach from=$data item=i name=loop}
|
||||
0,"{$i.parent_hash}","{$i.parent_name}","{$i.parent_name}","{$i.parent_address_city}","{$i.parent_address_postalcode}","{$i.parent_address_street}","{$parent_nip}",,,,,,,,,,,,,,,,,,,,,0
|
||||
{/foreach}
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
[INFO]
|
||||
"1.05.4",0,1250,"Subiekt GT","GT","SubTest","Firma przykładowa systemu InsERT GT","Wrocław","54-445","Bławatkowa 25/3","111-111-11-11","MAG","Główny","Magazyn główny",,1,20170101000000,20170331000000,"Kowalski Jan",20170804155934,"Polska","PL",,0
|
||||
|
||||
{foreach from=$data item=i name=loop}
|
||||
[NAGLOWEK]
|
||||
"KFS",1,0,0,"{$i.document_no}","FS","{$i.document_no}","{$i.corrected_document_no}","{$i.corrected_register_date}","{$i.order_no}",,"{$i.parent_hash}","{$i.parent_short_name}","{$i.parent_name}","{$i.parent_address_city}","{$i.parent_address_postalcode}","{$i.parent_address_street}","{$i.parent_nip}","Sprzedaż",,"Obrowo","{$i.register_date}","{$i.sell_date}","{$i.register_date}",1,0,,{$i.total_netto},{$i.total_vat},{$i.total_brutto},0,,,,"{$i.sell_date}",{$i.total_brutto},{$i.total_brutto},0,0,0,0,"",,,,,"PLN",,"",,,,0,,0,,,,,"",,
|
||||
|
||||
[ZAWARTOSC]
|
||||
"23",23,{$i.total_netto},{$i.total_vat},{$i.total_brutto},0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
|
||||
{/foreach}
|
||||
|
||||
[NAGLOWEK]
|
||||
"KONTRAHENCI"
|
||||
|
||||
[ZAWARTOSC]
|
||||
{foreach from=$data item=i name=loop}
|
||||
0,"{$i.parent_hash}","{$i.parent_name}","{$i.parent_name}","{$i.parent_address_city}","{$i.parent_address_postalcode}","{$i.parent_address_street}","{$parent_nip}",,,,,,,,,,,,,,,,,,,,,0
|
||||
{/foreach}
|
||||
Reference in New Issue
Block a user