Revision ca0bbe2c
Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt
templates/webpages/ir/_payments.html | ||
---|---|---|
<tr>
|
||
<td>
|
||
<table width="100%">
|
||
<tr class="listheading">
|
||
<th colspan="6" class="listheading">[% 'Payments' | $T8 %]</th>
|
||
</tr>
|
||
<tr>
|
||
[% USE T8 %]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% USE HTML %]
|
||
|
||
|
||
<table class="tbl-list wi-moderate">
|
||
<caption>
|
||
[% 'Payments' | $T8 %]
|
||
</caption>
|
||
|
||
<thead>
|
||
<tr>
|
||
<th>[% 'Date' | $T8 %]</th>
|
||
<th>[% 'Source' | $T8 %]</th>
|
||
<th>[% 'Memo' | $T8 %]</th>
|
||
<th>[% 'Amount' | $T8 %]</th>
|
||
<th></th>
|
||
[% IF show_exchangerate %]
|
||
[% IF show_exchangerate %]
|
||
<th>[% 'Exch' | $T8 %]</th>
|
||
[% END %]
|
||
[% END %]
|
||
<th>[% 'Account' | $T8 %]</th>
|
||
</tr>
|
||
|
||
</tr>
|
||
</thead>
|
||
|
||
[% FOREACH i = paid_indices %]
|
||
[% SET changeable = 'changeable_' _ i %]
|
||
[% SET acc_trans_id = 'acc_trans_id_' _ i %]
|
||
[% SET p_gldate = 'gldate_' _ i %]
|
||
[% SET datepaid = 'datepaid_' _ i %]
|
||
[% SET source = 'source_' _ i %]
|
||
[% SET memo = 'memo_' _ i %]
|
||
[% SET paid = 'paid_' _ i %]
|
||
[% SET AP_paid = 'AP_paid_' _ i %]
|
||
[% SET selectAP_paid_ref = 'selectAP_paid_' _ i %]
|
||
|
||
<input type=hidden name="acc_trans_id_[% i %]" value=[% $acc_trans_id %]>
|
||
<input type=hidden name="gldate_[% i %]" value=[% $p_gldate %]>
|
||
|
||
<tr>
|
||
<tbody>
|
||
[% FOREACH i = paid_indices %]
|
||
[% SET changeable = 'changeable_' _ i %]
|
||
[% SET acc_trans_id = 'acc_trans_id_' _ i %]
|
||
[% SET p_gldate = 'gldate_' _ i %]
|
||
[% SET datepaid = 'datepaid_' _ i %]
|
||
[% SET source = 'source_' _ i %]
|
||
[% SET memo = 'memo_' _ i %]
|
||
[% SET paid = 'paid_' _ i %]
|
||
[% SET AP_paid = 'AP_paid_' _ i %]
|
||
[% SET selectAP_paid_ref = 'selectAP_paid_' _ i %]
|
||
<tr>
|
||
|
||
<td align="center">
|
||
[% IF $changeable %]
|
||
[% IF $datepaid %]
|
||
[% L.date_tag('datepaid_'_ i, $datepaid) %]
|
||
<td>
|
||
<input type=hidden name="acc_trans_id_[% i %]" value=[% $acc_trans_id %]>
|
||
<input type=hidden name="gldate_[% i %]" value=[% $p_gldate %]>
|
||
[% IF $changeable %]
|
||
[% IF $datepaid %]
|
||
[% L.date_tag('datepaid_'_ i, $datepaid) %]
|
||
[% ELSE %]
|
||
[% L.date_tag('datepaid_'_ i, today) %]
|
||
[% END %]
|
||
[% ELSE %]
|
||
[% L.date_tag('datepaid_'_ i, today) %]
|
||
<input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]">[% $datepaid %]
|
||
[% END %]
|
||
[% ELSE %]
|
||
<input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]">[% $datepaid %]
|
||
[% END %]
|
||
</td>
|
||
<td align=center>
|
||
[% IF $changeable %]
|
||
<input name="source_[% i %]" size="11" value="[% $source %]">
|
||
[% ELSE %]
|
||
</td>
|
||
<td>
|
||
[% IF $changeable %]
|
||
<input type="text" name="source_[% i %]" size="11" value="[% $source %]">
|
||
[% ELSE %]
|
||
<input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %]
|
||
[% END %]
|
||
</td>
|
||
<td align="center">
|
||
[% IF $changeable %]
|
||
<input name="memo_[% i %]" size="11" value="[% $memo %]">
|
||
[% ELSE %]
|
||
<input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %]
|
||
[% END %]
|
||
</td>
|
||
<td align="center">
|
||
[% IF $changeable %]
|
||
<input name="paid_[% i %]" size="11" value="[% LxERP.format_amount($paid, 2, 1) %]">
|
||
[% ELSE %]
|
||
<input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
|
||
[% LxERP.format_amount($paid, 2, 1) %]
|
||
[% END %]
|
||
</td>
|
||
<td>
|
||
[% IF $changeable && loop.last && paid_missing > 0 %]
|
||
<input type='button' id='is_set_to_paid_missing' value='[% 'Set to paid missing' | $T8 %]'>
|
||
[% END %]
|
||
</td>
|
||
[% END %]
|
||
</td>
|
||
<td>
|
||
[% IF $changeable %]
|
||
<input type="text" name="memo_[% i %]" size="11" value="[% $memo %]">
|
||
[% ELSE %]
|
||
<input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %]
|
||
[% END %]
|
||
</td>
|
||
<td>
|
||
[% IF $changeable %]
|
||
<input type="text" name="paid_[% i %]" size="11" value="[% LxERP.format_amount($paid, 2, 1) %]">
|
||
[% ELSE %]
|
||
<input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
|
||
[% LxERP.format_amount($paid, 2, 1) %]
|
||
[% END %]
|
||
</td>
|
||
<td>
|
||
[% IF $changeable && loop.last && paid_missing > 0 %]
|
||
<input type='button' id='is_set_to_paid_missing' value='[% 'Set to paid missing' | $T8 %]'>
|
||
[% END %]
|
||
</td>
|
||
|
||
[% IF show_exchangerate %]
|
||
<td align="center">
|
||
[% SET forex = 'forex_' _ i %]
|
||
[% SET exchangerate = 'exchangerate_' _ i %]
|
||
[% IF $forex %]
|
||
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]">
|
||
[% LxERP.format_amount($forex, 5) %]
|
||
[% ELSE %]
|
||
[% IF $changeable %]
|
||
<input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
|
||
[% ELSE %]
|
||
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
|
||
[% LxERP.format_amount($exchangerate, 5, 1) %]
|
||
[% END %]
|
||
[% END %]
|
||
[% IF show_exchangerate %]
|
||
<td>
|
||
[% SET forex = 'forex_' _ i %]
|
||
[% SET exchangerate = 'exchangerate_' _ i %]
|
||
[% IF $forex %]
|
||
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5) %]">
|
||
[% LxERP.format_amount($forex, 5) %]
|
||
[% ELSE %]
|
||
[% IF $changeable %]
|
||
<input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
|
||
[% ELSE %]
|
||
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 5, 1) %]">
|
||
[% LxERP.format_amount($exchangerate, 5, 1) %]
|
||
[% END %]
|
||
[% END %]
|
||
<input type="hidden" name="forex_[% i %]" value="[% $forex %]">
|
||
</td>
|
||
[% END %]
|
||
|
||
<td align="center">
|
||
[% IF $changeable %]
|
||
<select name="AP_paid_[% i %]">[% $selectAP_paid_ref %]</select>
|
||
[% ELSE %]
|
||
<input type="hidden" name="AP_paid_[% i %]" value="[% $AP_paid %]">[% $AP_paid %]
|
||
[% END %]
|
||
</td>
|
||
</td>
|
||
[% END %]
|
||
|
||
</tr>
|
||
<td>
|
||
[% IF $changeable %]
|
||
<select name="AP_paid_[% i %]">[% $selectAP_paid_ref %]</select>
|
||
[% ELSE %]
|
||
<input type="hidden" name="AP_paid_[% i %]" value="[% $AP_paid %]">[% $AP_paid %]
|
||
[% END %]
|
||
</td>
|
||
|
||
[% END # foreach %]
|
||
</tr>
|
||
[% END # foreach %]
|
||
</tbody>
|
||
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td align="center">[% 'Total' | $T8 %]</td>
|
||
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td align="center">[% 'Missing amount' | $T8 %]</td>
|
||
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
|
||
</tr>
|
||
<tfoot>
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td>[% 'Total' | $T8 %]</td>
|
||
<td>[% LxERP.format_amount(totalpaid, 2) | html %]</td>
|
||
<td colspan="2"></td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td>[% 'Missing amount' | $T8 %]</td>
|
||
<td>[% LxERP.format_amount(paid_missing, 2) | html %]</td>
|
||
<td colspan="2"></td>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
|
||
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
|
||
<input type="hidden" name="selectAP_paid" value="[% selectAP_paid %]">
|
||
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
|
||
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
|
||
<input type="hidden" name="selectAP_paid" value="[% selectAP_paid %]">
|
||
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
|
||
<input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
|
||
|
||
<input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
|
||
</table>
|
||
|
||
</td>
|
||
</tr>
|
||
<script type='text/javascript'>
|
||
$('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
|
||
</script>
|
||
<script type='text/javascript'>
|
||
$('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
|
||
</script>
|
templates/webpages/ir/form_footer.html | ||
---|---|---|
<tr>
|
||
<td>
|
||
<table width="100%">
|
||
<tr valign="bottom">
|
||
<td>
|
||
<table>
|
||
<tr>
|
||
<th align="left">[% 'Notes' | $T8 %]</th>
|
||
<th align="left">[% 'Internal Notes' | $T8 %]</th>
|
||
<th align="right">[% 'Payment / Delivery Options' | $T8 %]</th>
|
||
</tr>
|
||
<tr valign="top">
|
||
<td>
|
||
[% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
|
||
</td>
|
||
<td>
|
||
[% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]
|
||
</td>
|
||
<td>
|
||
<table>
|
||
<tr>
|
||
<th align="right">[% 'Payment Terms' | $T8 %]</th>
|
||
<td>[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]
|
||
<script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Delivery Terms' | $T8 %] </th>
|
||
<td>
|
||
[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'direct debit' | $T8 %]</th>
|
||
<td>
|
||
[%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
[%- IF id && follow_ups.size %]
|
||
<tr>
|
||
<td colspan="2">
|
||
[%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
|
||
<td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
</td>
|
||
[%- IF show_weight %]
|
||
<td>
|
||
<table>
|
||
<tr>
|
||
<th align=left>[% 'Total weight' | $T8 %]</th>
|
||
<td>
|
||
[% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
[%- END %]
|
||
<td align="right">
|
||
[%- IF taxaccounts %]
|
||
<input name="taxincluded" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
|
||
<b>[% 'Tax Included' | $T8 %]</b>
|
||
<br>
|
||
<br>
|
||
[%- END %]
|
||
<table>
|
||
|
||
[%- UNLESS taxincluded %]
|
||
<tr>
|
||
<th align="right">[% 'Subtotal' | $T8 %]</th>
|
||
<td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
|
||
[%# tax %]
|
||
[% FOREACH item = taxaccounts_array %]
|
||
[% SET description_ref = item _ '_description' %]
|
||
[% SET rate_ref = item _ '_rate' %]
|
||
[% SET total_ref = item _ '_total' %]
|
||
[% SET netto_ref = item _ '_netto' %]
|
||
<tr>
|
||
<th align="right">[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]%</th>
|
||
<td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
|
||
</tr>
|
||
[%- IF taxincluded %]
|
||
<tr>
|
||
<th align="right">[% 'Net amount' | $T8 %]</th>
|
||
<td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
[%- END %]
|
||
|
||
<tr>
|
||
<th align="right">[% 'Total' | $T8 %]</th>
|
||
<td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
... | ... | |
[% USE P %]
|
||
|
||
|
||
<div class="list-total">
|
||
|
||
<table class="tbl-list footer-only right">
|
||
<colgroup> <col class="wi-small"><col class="wi-small"><col class="wi-small"><col class="wi-small"><col class="wi-small"> </colgroup>
|
||
<tfoot>
|
||
[% UNLESS taxincluded %]
|
||
<tr>
|
||
<th colspan="3"></th>
|
||
<th>[% 'Subtotal' | $T8 %]</th>
|
||
<td class="numeric">[% LxERP.format_amount(invsubtotal, 2) %]</td>
|
||
</tr>
|
||
[% END %][% # tax %]
|
||
|
||
[% FOREACH item = taxaccounts_array %]
|
||
[% SET description_ref = item _ '_description' %]
|
||
[% SET rate_ref = item _ '_rate' %]
|
||
[% SET total_ref = item _ '_total' %]
|
||
[% SET netto_ref = item _ '_netto' %]
|
||
<tr>
|
||
<th colspan="3"></th>
|
||
<th>[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]%</th>
|
||
<td class="numeric">[% LxERP.format_amount($total_ref, 2) %]</td>
|
||
</tr>
|
||
[% IF taxincluded %]
|
||
<tr>
|
||
<th colspan="3"></th>
|
||
<th>[% 'Net amount' | $T8 %]</th>
|
||
<td class="numeric">[% LxERP.format_amount($netto_ref, 2) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
[% END %]
|
||
|
||
<tr>
|
||
[% IF show_weight %]
|
||
<th>[% 'Total weight' | $T8 %]</th>
|
||
<td class="numeric">[% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]</td>
|
||
<th></th>
|
||
[% ELSE %]
|
||
<th colspan="3"></th>
|
||
[% END %]
|
||
<th>[% 'Total' | $T8 %]</th>
|
||
<td class="numeric">[% LxERP.format_amount(invtotal, 2) %]</td>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
|
||
[% IF taxaccounts %]
|
||
<div class="after-item"><input name="taxincluded" type="checkbox"[% IF taxincluded %] checked[% END %]> [% 'Tax Included' | $T8 %]</div>
|
||
[% END %]
|
||
|
||
</div><!-- /.list-total -->
|
||
</div><!-- /.list-table-with-separate-total-table -->
|
||
|
||
|
||
|
||
[% PROCESS 'ir/_payments.html' %]
|
||
|
||
</table>
|
||
</div>
|
||
|
||
[% PROCESS 'webdav/_list.html' %]
|
||
<div id="ui-tabs-1">
|
||
[%- LxERP.t8("Loading...") %]
|
||
[% LxERP.t8("Loading...") %]
|
||
</div>
|
||
</div>
|
||
|
||
<hr size="3" noshade>
|
||
|
||
|
||
<p>[% print_options %]</p>
|
||
|
templates/webpages/ir/form_header.html | ||
---|---|---|
|
||
<p>[% saved_message %]</p>
|
||
|
||
[%- FOREACH key = HIDDENS %]
|
||
[% FOREACH key = HIDDENS %]
|
||
<input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]">
|
||
[%- END %]
|
||
[% END %]
|
||
<input type="hidden" name="follow_up_trans_id_1" value="[% id %]">
|
||
<input type="hidden" name="follow_up_trans_type_1" value="purchase_invoice">
|
||
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
|
||
<input type="hidden" name="follow_up_rowcount" value="1">
|
||
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
|
||
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
[%- INCLUDE 'generic/set_longdescription.html' %]
|
||
[% INCLUDE 'common/flash.html' %]
|
||
[% INCLUDE 'generic/set_longdescription.html' %]
|
||
|
||
<div id="ir_tabs" class="tabwidget">
|
||
<ul>
|
||
|
||
<ul>
|
||
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
|
||
[%- IF INSTANCE_CONF.get_webdav %]
|
||
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
||
[%- END %]
|
||
[%- IF id %]
|
||
[%- IF INSTANCE_CONF.get_doc_storage %]
|
||
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
||
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
|
||
[%- END %]
|
||
[%- IF AUTH.assert('record_links', 1) %]
|
||
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=PurchaseInvoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
|
||
[%- END %]
|
||
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li>
|
||
[%- END %]
|
||
</ul>
|
||
|
||
<div id="ui-tabs-basic-data">
|
||
<table width="100%">
|
||
<tr>
|
||
<td valign="top">
|
||
<table>
|
||
<tr>
|
||
<th align="right">[% 'Vendor' | $T8 %]</th>
|
||
<td>
|
||
[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 250px", class="initial_focus", onchange="\$('#update_button').click()") %]
|
||
[% P.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %]
|
||
[% P.hidden_tag("previous_vendor_id", vendor_id) %]
|
||
</td>
|
||
</tr>
|
||
[%- IF ALL_CONTACTS.size %]
|
||
<tr>
|
||
<th align="right">[% 'Contact Person' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, style = 'width: 250px') %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<td align="right">[% 'Credit Limit' | $T8 %]</td>
|
||
<td>
|
||
[% LxERP.format_amount(creditlimit, 0, '0') %]; [% 'Remaining' | $T8 %]
|
||
<span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
|
||
</td>
|
||
</tr>
|
||
[%- IF invoice_obj.sepa_exports.as_list.size %]
|
||
<tr>
|
||
<th align="right">[% LxERP.t8("SEPA exports") %]</th>
|
||
<td>
|
||
[% FOREACH export = invoice_obj.sepa_exports.as_list %]
|
||
<a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a>
|
||
[% UNLESS loop.last %], [% END %]
|
||
[% END %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
[%- IF business %]
|
||
<tr>
|
||
<th align="right">[% 'Vendor type' | $T8 %]</th>
|
||
<td>[% business %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %] %</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Record in' | $T8 %]</th>
|
||
<td colspan="3"><select name="AP" style="width:250px;">[% selectAP %]</select></td>
|
||
<input type="hidden" name="selectAP" value="[% selectAP %]">
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Steuersatz' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES) , default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), style='width: 250px', onchange = "document.getElementById('update_button').click();") %]
|
||
[%- IF id %]
|
||
<input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
|
||
[%- END %]
|
||
</td>
|
||
[%- IF id %]
|
||
[% IF INSTANCE_CONF.get_webdav %]
|
||
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
||
[% END %]
|
||
[% IF id %]
|
||
[% IF INSTANCE_CONF.get_doc_storage %]
|
||
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
||
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
|
||
[% END %]
|
||
[% IF AUTH.assert('record_links', 1) %]
|
||
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=PurchaseInvoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
|
||
[% END %]
|
||
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li>
|
||
[% END %]
|
||
</ul>
|
||
|
||
<div id="ui-tabs-basic-data">
|
||
|
||
<div class="wrapper" id="wrapper-1">
|
||
[% INCLUDE 'generic/toggle_wrapper.html' %]
|
||
|
||
<table class="tbl-horizontal col">
|
||
<caption>[% 'Vendor & Transaction' | $T8 %]</caption>
|
||
<colgroup> <col class="wi-small"><col class="wi-wide"> </colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<th>[% 'Vendor' | $T8 %]</th>
|
||
<td class="wi-wide">[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", class="wi-wide", class="initial_focus", onchange="\$('#update_button').click()") %][% P.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)'), class='wi-tiny neutral') %] [% P.hidden_tag("previous_vendor_id", vendor_id) %]</td>
|
||
</tr>
|
||
[% IF ALL_CONTACTS.size %]
|
||
<tr>
|
||
<th>[% 'Contact Person' | $T8 %]</th>
|
||
<td>[% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, class='wi-wide') %]</td>
|
||
</tr>
|
||
[% END %]
|
||
[% IF business %]
|
||
<tr>
|
||
<th>[% 'Vendor type' | $T8 %]</th>
|
||
<td>[% business %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %] %</td>
|
||
</tr>
|
||
[% END %]
|
||
[% IF ALL_DEPARTMENTS.as_list.size %]
|
||
<tr>
|
||
<th>[% 'Department' | $T8 %]</th>
|
||
<td>[% P.select_tag("department_id", ALL_DEPARTMENTS, with_empty=1, default=department_id, title_key="description", class="wi-wide") %]</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Credit Limit' | $T8 %]</th>
|
||
<td>
|
||
<span class="data wi-wide">
|
||
[% LxERP.format_amount(creditlimit, 0, '0') %]; [% 'Remaining' | $T8 %]
|
||
<span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
[% IF invoice_obj.sepa_exports.as_list.size %]
|
||
<tr>
|
||
<th>[% LxERP.t8("SEPA exports") %]</th>
|
||
<td>
|
||
[% FOREACH export = invoice_obj.sepa_exports.as_list %]
|
||
<a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a>
|
||
[% UNLESS loop.last %], [% END %] [% END %]
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Record in' | $T8 %]</th>
|
||
<td>
|
||
<select name="AP" class="wi-wide strict">
|
||
[% selectAP %]
|
||
</select>
|
||
<input type="hidden" name="selectAP" value="[% selectAP %]">
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Steuersatz' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('taxzone_id',
|
||
( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES) ,
|
||
default = taxzone_id,
|
||
title_key = 'description',
|
||
disabled = (id ? 1 : 0),
|
||
class='wi-wide',
|
||
onchange = "document.getElementById('update_button').click();"
|
||
) %]
|
||
[% IF id %]
|
||
<input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
|
||
[%- END %]
|
||
</tr>
|
||
[%- IF ALL_DEPARTMENTS.as_list.size %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
|
||
<td colspan="3">[% P.select_tag("department_id", ALL_DEPARTMENTS, with_empty=1, default=department_id, title_key="description", style="width: 250px") %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
[%- IF currencies %]
|
||
<tr>
|
||
<th align="right">[% 'Currency' | $T8 %]</th>
|
||
<td>[% currencies %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
|
||
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
|
||
[%- IF show_exchangerate %]
|
||
<tr>
|
||
<th align="right">[% 'Exchangerate' | $T8 %]</th>
|
||
<td>
|
||
[%- IF forex %]
|
||
[% LxERP.format_amount(exchangerate, 5) %]
|
||
[%- ELSE %]
|
||
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
|
||
[%- END %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
</td>
|
||
<td align="right" valign="top">
|
||
<table>
|
||
<tr>
|
||
<th align="right">[% 'Employee' | $T8 %]</th>
|
||
<td>[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
|
||
<td colspan="3">[% L.input_tag("invnumber", invnumber, size="11") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Invoice Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('invdate', invdate, onChange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Due Date' | $T8 %]</th>
|
||
<td>
|
||
<span id="duedate_container"[% IF payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% L.date_tag('duedate', duedate) %]</span>
|
||
<span id="duedate_fixed"[% IF !payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% HTML.escape(duedate) %]</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Delivery Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('deliverydate', deliverydate) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
|
||
<td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
|
||
</tr>
|
||
[% END %]
|
||
</td>
|
||
</tr>
|
||
[% IF currencies %]
|
||
<tr>
|
||
<th>[% 'Currency' | $T8 %]</th>
|
||
<td class="wi-small">[% currencies %]</td>
|
||
</tr>
|
||
[% END %]
|
||
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
|
||
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
|
||
[% IF show_exchangerate %]
|
||
<tr>
|
||
<th>[% 'Exchangerate' | $T8 %]</th>
|
||
<td class="wi-small">
|
||
[% IF forex %]
|
||
<span class="data wi-small">[% LxERP.format_amount(exchangerate, 5) %]</span>
|
||
[% ELSE %]
|
||
<input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
|
||
[% END %]
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
<table class="tbl-horizontal col">
|
||
<caption>[% 'Payment / Delivery Options' | $T8 %]</caption>
|
||
<colgroup><col class="wi-wider"> </colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<span class="label-above">[% 'Payment Terms' | $T8 %]</span>
|
||
[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]
|
||
<script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<span class="label-above">[% 'Delivery Terms' | $T8 %]</span>
|
||
[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default=delivery_term_id, with_empty=1, title_key='description', class='wi-wider') %]
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>[% L.checkbox_tag('direct_debit', 'checked', direct_debit) %] <label for="direct_debit">[% 'direct debit' | $T8 %]</label></td>
|
||
</tr>
|
||
<tr>
|
||
<th class="caption">[% 'Notes' | $T8 %]</th>
|
||
</tr>
|
||
<tr>
|
||
<td class="wi-wider">[% L.textarea_tag("notes", notes, wrap="soft", style="height:150px", class="texteditor wi-wider") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<span class="label-above">[% 'Internal Notes' | $T8 %]</span>
|
||
[% L.textarea_tag("intnotes", intnotes, wrap="soft", class="wi-wider", style="width: 350px; height: 150px") %]
|
||
</td>
|
||
</tr>
|
||
[% IF id && follow_ups.size %]
|
||
<tr>
|
||
<td>[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
<table class="tbl-horizontal col">
|
||
<caption>[% 'Handling, Numbers & Dates' | $T8 %]</caption>
|
||
<colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<th>[% 'Employee' | $T8 %]</th>
|
||
<td>[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name', class='wi-wide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Order Number' | $T8 %]</th>
|
||
<td><input type="text" class="wi-mediumsmall" name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
|
||
</tr>
|
||
[% IF is_type_credit_note %]
|
||
<tr>
|
||
<th>[% 'Credit Note Number' | $T8 %]</th>
|
||
<td><input type="text" class="wi-mediumsmall" name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
|
||
</tr>
|
||
[% ELSE %]
|
||
<tr>
|
||
<th>[% 'Invoice Number' | $T8 %]</th>
|
||
<td>[% L.input_tag('invnumber', invnumber, class='wi-mediumsmall') %]</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Project Number' | $T8 %]</th>
|
||
<td>[% P.project.picker('globalproject_id', globalproject_id, class='wi-mediumsmall') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Quotation Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('quodate', quodate, class='wi-small') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Order Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('orddate', orddate, class='wi-small') %]</td>
|
||
</tr>
|
||
[% IF is_type_credit_note %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Order Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('orddate', orddate) %]</td>
|
||
<th>[% 'Credit Note Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('invdate', invdate, class='wi-small') %]</td>
|
||
</tr>
|
||
[% ELSE %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('quodate', quodate) %]</td>
|
||
<th>[% 'Invoice Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('invdate', invdate, onChange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")', class='wi-small') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Project Number' | $T8 %]</th>
|
||
<td>[%- L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = '1', onChange = "document.getElementById('update_button').click();") %]</td>
|
||
<th>[% 'Due Date' | $T8 %]</th>
|
||
<td><span id="duedate_container"[% IF payment_terms_obj.auto_calculation %] style="display:none"[% END %] class="condensed">[% L.date_tag('duedate', duedate, class='wi-small') %]</span> <span id="duedate_fixed" [% IF !payment_terms_obj.auto_calculation %] style="display:none" [% END %]>[% HTML.escape(duedate) %]</span> </td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
</td>
|
||
</tr>
|
||
<script type="text/javascript" src="js/show_form_details.js"></script>
|
||
<script type="text/javascript" src="js/show_vc_details.js"></script>
|
||
<script type="text/javascript" src="js/show_history.js"></script>
|
||
<script type="text/javascript">
|
||
<!--
|
||
$('document').ready(function(){
|
||
[% IF creditwarning != '' %]
|
||
alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
|
||
[% ELSE %]
|
||
[% END %]
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Delivery Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('deliverydate', deliverydate) %]</td>
|
||
</tr>
|
||
|
||
|
||
</tbody>
|
||
</table>
|
||
|
||
</div><!-- /.wrapper -->
|
||
|
||
<script type="text/javascript" src="js/show_form_details.js"></script>
|
||
<script type="text/javascript" src="js/show_vc_details.js"></script>
|
||
<script type="text/javascript" src="js/show_history.js"></script>
|
||
<script type="text/javascript"><!--
|
||
$('document').ready(function(){
|
||
[% IF creditwarning != '' %]
|
||
alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
|
||
[% ELSE %]
|
||
[% END %]
|
||
});
|
||
//-->
|
||
</script>
|
||
<input type="hidden" name="webdav" value="[% webdav | html %]">
|
||
//--></script>
|
||
|
||
<input type="hidden" name="webdav" value="[% webdav | html %]">
|
||
|
||
<div class="list-table-with-separate-total-table">
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/ir/