Revision 049677eb
Von Jan Büren vor fast 7 Jahren hinzugefügt
templates/webpages/bank_transactions/_template_list.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE P -%][% IF TEMPLATES.size %] |
|
2 |
[% LxERP.t8('Template suggestions') %]: |
|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE P -%] |
|
2 |
|
|
3 |
[% IF TEMPLATES_AP.size %] |
|
4 |
[% LxERP.t8('AP template suggestions') %]: |
|
3 | 5 |
<table> |
4 | 6 |
<thead> |
5 | 7 |
<tr> |
... | ... | |
11 | 13 |
</thead> |
12 | 14 |
|
13 | 15 |
<tbody> |
14 |
[% FOREACH template = TEMPLATES %] |
|
16 |
[% FOREACH template = TEMPLATES_AP %]
|
|
15 | 17 |
<tr class="listrow"> |
16 | 18 |
<td>[% P.link(SELF.load_ap_record_template_url(template), template.template_name) %]</td> |
17 | 19 |
<td>[% HTML.escape(template.vendor.name) %]</td> |
... | ... | |
22 | 24 |
</tbody> |
23 | 25 |
</table> |
24 | 26 |
[% ELSE %] |
25 |
<p class="message_hint">[% LxERP.t8('No template was found.') %]</p> |
|
27 |
<p class="message_hint">[% LxERP.t8('No AP template was found.') %]</p> |
|
28 |
[% END %] |
|
29 |
|
|
30 |
[% IF TEMPLATES_GL.size %] |
|
31 |
[% LxERP.t8('GL template suggestions') %]: |
|
32 |
<table> |
|
33 |
<thead> |
|
34 |
<tr> |
|
35 |
<th class="listheading">[% LxERP.t8('Description') %]</th> |
|
36 |
<th class="listheading">[% LxERP.t8('Reference') %]</th> |
|
37 |
<th class="listheading">[% LxERP.t8('Employee') %]</th> |
|
38 |
<th class="listheading">[% LxERP.t8('Template date') %]</th> |
|
39 |
</tr> |
|
40 |
</thead> |
|
41 |
|
|
42 |
<tbody> |
|
43 |
[% FOREACH template = TEMPLATES_GL %] |
|
44 |
<tr class="listrow"> |
|
45 |
<td>[% P.link(SELF.load_gl_record_template_url(template), template.template_name) %]</td> |
|
46 |
<td>[% HTML.escape(template.reference) %]</td> |
|
47 |
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td> |
|
48 |
<td>[% HTML.escape(template.itime_as_date) %]</td> |
|
49 |
</tr> |
|
50 |
[% END %] |
|
51 |
</tbody> |
|
52 |
</table> |
|
53 |
[% ELSE %] |
|
54 |
<p class="message_hint">[% LxERP.t8('No GL template was found.') %]</p> |
|
26 | 55 |
[% END %] |
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