2025-05-12 15:46:37 +00:00
|
|
|
<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>
|
2025-09-29 17:18:32 +00:00
|
|
|
{$ROW.total_netto} <br>
|
|
|
|
|
{$ROW.sum_by_products}
|
|
|
|
|
{math equation="abs(x-y)" x=$ROW.total_netto y=$ROW.sum_by_products assign="price_difference"}
|
|
|
|
|
{if $price_difference > 0.02}
|
2025-10-04 10:40:28 +00:00
|
|
|
<span style="color: red; font-weight: bold; cursor: pointer" onclick="openDetails('{$ROW.order_no}', '{$ROW.origin}')">!!!</span>
|
2025-09-29 17:18:32 +00:00
|
|
|
{/if}
|
2025-05-12 15:46:37 +00:00
|
|
|
</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>
|