Files
crm.e5.pl/modules/EcmInvoiceOuts/tpls/multiDiscountCorrectInvoice.tpl
2024-04-27 09:23:34 +02:00

80 lines
3.8 KiB
Smarty

<script type="text/javascript" src="modules/EcmInvoiceOuts/javascript/multiDiscountCorrectInvoice.js"></script>
<ul class="tablist" style="width:100%;">
<li>
<a class="current" href="#">Podstawowe wyszukiwanie</a>
</li>
</ul>
<form action="index.php" method="get" name="searchInvoices">
<input type="hidden" name="module" value="EcmInvoiceOuts" />
<input type="hidden" name="action" value="multiDiscountCorrectInvoice" />
<input type="hidden" name="process" value="1" />
<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="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="{literal}open_popup( 'Accounts', 600, 400, '', true, false, {'call_back_function':'set_return','form_name':'searchInvoices','field_to_name_array':{'id':'account_id','name':'account_name'}}, 'single', true );{/literal}">
</td>
</tr>
</tbody>
</table>
<input class="button" name="submit" value="Szukaj" type="submit">
<input class="button" name="clear" value="Wyczyść" type="button" onclick="location.href='index.php?module=EcmInvoiceOuts&action=multiDiscountCorrectInvoice';">
</form>
{if $PROCESS=='1'}
<table class="list view" id="invTable">
<tbody>
<tr><th><input type="checkbox" id="invSelectAll"/></th><th>Numer faktury</th><th>Data rejestracji</th><th>Wartość netto</th></tr>
{foreach from=$INVOICES item=I}
<tr class="oddListRowS1">
<td><input type="checkbox" class="invcheckbox" name="inv[]" value="{$I.id}" style="text-align: center;"></td>
<td><a href="index.php?module=EcmInvoiceOuts&action=DetailView&record={$I.id}" target="new">{$I.document_no}</a></td>
<td>{$I.register_date}</td>
<td class="netto">{$I.total_netto}</td>
</tr>
{/foreach}
</tbody>
</table>
<br>
Obniż cenę jednostkową netto o:&nbsp<input value="0" id="discount" name="discount"/>&nbsp%.<br>
Przybliżona wartość korekty <p style="display:inline" id="total_info">0</p> zł.<br>
<input type="button" class="button" onClick="prepareData();" value="Przejdź do korekty"/>
{/if}