Nein, Jan. Eben nicht so implementieren, sondern klarer
und hoffentlich wartungsärmer.
TEMPLATES_GL => $use_vendor_filter && @{ $templates_ap } ? undef : $templates_gl,
TEMPLATES_AP => $templates_ap,
vendor_name => $use_vendor_filter && @{ $templates_ap } ? $vendor_of_transaction->name : undef,
- BT_ID => $::form->{bt_id},
);
}
}
sub load_gl_record_template_url {
- my ($self, $template, $bt_id) = @_;
+ my ($self, $template) = @_;
return $self->url_for(
controller => 'gl.pl',
<tbody>
[% FOREACH template = TEMPLATES_GL %]
<tr class="listrow">
- <td>[% P.link_tag(SELF.load_gl_record_template_url(template, BT_ID), template.template_name) %]</td>
+ <td>[% P.link_tag(SELF.load_gl_record_template_url(template), template.template_name) %]</td>
<td>[% HTML.escape(template.reference) %]</td>
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td>
<td>[% HTML.escape(template.itime_as_date) %]</td>