Revision 049677eb
Von Jan Büren vor fast 7 Jahren hinzugefügt
templates/webpages/bank_transactions/create_invoice.html | ||
---|---|---|
25 | 25 |
|
26 | 26 |
|
27 | 27 |
<br> |
28 |
[% LxERP.t8('Vendor filter for AP transaction templates') %]: |
|
29 | 28 |
|
30 |
<form method="post" action="javascript:kivi.BankTransaction.filter_templates()"> |
|
29 |
<form method="post" action="javascript:kivi.BankTransaction.filter_templates()" id="create_invoice_window_form">
|
|
31 | 30 |
[% L.hidden_tag("bt_id", SELF.transaction.id) %] |
32 | 31 |
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %] |
33 | 32 |
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %] |
34 | 33 |
[% L.hidden_tag("filter.todate", FORM.filter.todate) %] |
35 | 34 |
<table> |
35 |
<tr> |
|
36 |
<th align="right">[%- LxERP.t8("Template Description") %]</th> |
|
37 |
<td>[% P.input_tag("template", template_name, style="width: 250px") %]</td> |
|
38 |
</tr> |
|
36 | 39 |
<tr> |
37 | 40 |
<th align="right">[%- LxERP.t8("Vendor") %]</th> |
38 |
<td>[% P.input_tag("vendor", vendor_name, class="initial_focus", style="width: 250px") %]</td> |
|
41 |
<td>[% P.input_tag("vendor", vendor_name, style="width: 250px") %]</td> |
|
42 |
</tr> |
|
43 |
<tr> |
|
44 |
<th align="right">[%- LxERP.t8("Reference") %]</th> |
|
45 |
<td>[% P.input_tag("reference", reference_name, style="width: 250px") %]</td> |
|
39 | 46 |
</tr> |
40 | 47 |
</table> |
41 |
</form> |
|
42 |
|
|
43 | 48 |
<p> |
44 |
[% P.button_tag("kivi.BankTransaction.filter_templates()", LxERP.t8("Filter vendors")) %] |
|
49 |
[% P.submit_tag('', LxERP.t8("Filter")) %] |
|
50 |
[% P.button_tag('$("#create_invoice_window_form").resetForm()', LxERP.t8('Reset')) %] |
|
45 | 51 |
<a href="#" onclick="$('#create_invoice_window').dialog('close');">[% LxERP.t8("Cancel") %]</a> |
46 | 52 |
</p> |
47 |
|
|
53 |
</form> |
|
48 | 54 |
<hr> |
49 | 55 |
<div id="templates"> |
50 | 56 |
[% PROCESS "bank_transactions/_template_list.html" %] |
51 | 57 |
</div> |
58 |
|
|
59 |
<script type="text/javascript"> |
|
60 |
<!-- |
|
61 |
$(function() { |
|
62 |
$('#template').focus(); |
|
63 |
}); |
|
64 |
|
|
65 |
//--> |
|
66 |
</script> |
Auch abrufbar als: Unified diff
Kontoauszug verbuchen -> Buchung erstellen erweitert
a) Filter erweitert, um nach Vorlagenname zu suchen
b) Filter korrekt in <form> gepackt, um submit und reset form
wie gewohnt zu unterstützen
c) Buchungsmöglichkeit um gl_transactions (Dialogbuchungsvorlagen)
erweitert, dass heißt in der Auswahlliste der Vorlagen werden
jetzt Dialogbuchungsvorlagen angezeigt, falls ein Buchungskonto
mit dem aktuellem Bankkonto übereinstimmt:
(bank_accounts.chart_id == record_template_items.chart_id)
d) Filter erweitert, um nach Referenz (nur in gl_transactions)
zu suchen
e) gl.pl erweitert, sodass die Metadaten der Vorlage geladen werden
und mit den sinnvollen Vorgaben aus bank_transactions gefüllt werden