Revision 2d228125
Von Jan Büren vor mehr als 6 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
293 | 293 |
TEMPLATES_GL => $use_vendor_filter && @{ $templates_ap } ? undef : $templates_gl, |
294 | 294 |
TEMPLATES_AP => $templates_ap, |
295 | 295 |
vendor_name => $use_vendor_filter && @{ $templates_ap } ? $vendor_of_transaction->name : undef, |
296 |
BT_ID => $::form->{bt_id}, |
|
297 | 296 |
); |
298 | 297 |
} |
299 | 298 |
|
... | ... | |
881 | 880 |
} |
882 | 881 |
|
883 | 882 |
sub load_gl_record_template_url { |
884 |
my ($self, $template, $bt_id) = @_;
|
|
883 |
my ($self, $template) = @_; |
|
885 | 884 |
|
886 | 885 |
return $self->url_for( |
887 | 886 |
controller => 'gl.pl', |
templates/webpages/bank_transactions/_template_list.html | ||
---|---|---|
42 | 42 |
<tbody> |
43 | 43 |
[% FOREACH template = TEMPLATES_GL %] |
44 | 44 |
<tr class="listrow"> |
45 |
<td>[% P.link_tag(SELF.load_gl_record_template_url(template, BT_ID), template.template_name) %]</td>
|
|
45 |
<td>[% P.link_tag(SELF.load_gl_record_template_url(template), template.template_name) %]</td> |
|
46 | 46 |
<td>[% HTML.escape(template.reference) %]</td> |
47 | 47 |
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td> |
48 | 48 |
<td>[% HTML.escape(template.itime_as_date) %]</td> |
Auch abrufbar als: Unified diff
Bullshit von meinem commit 81ce5300bddff980 rausgeworfen
Nein, Jan. Eben nicht so implementieren, sondern klarer
und hoffentlich wartungsärmer.