Revision 2fc8536b
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
844 | 844 |
|
845 | 845 |
} |
846 | 846 |
|
847 |
sub _get_radieren { |
|
848 |
return ($::instance_conf->get_gl_changeable == 2) ? ($::form->current_date(\%::myconfig) eq $::form->{gldate}) : ($::instance_conf->get_gl_changeable == 1); |
|
849 |
} |
|
850 |
|
|
847 | 851 |
sub form_header { |
848 | 852 |
$::lxdebug->enter_sub; |
849 | 853 |
$::auth->assert('general_ledger'); |
... | ... | |
886 | 890 |
$::form->header; |
887 | 891 |
print $::form->parse_html_template('gl/form_header', { |
888 | 892 |
hide_title => $title, |
893 |
readonly => $::form->{id} && ($::form->{locked} || !_get_radieren()), |
|
889 | 894 |
}); |
890 | 895 |
|
891 | 896 |
$::lxdebug->leave_sub; |
... | ... | |
903 | 908 |
$follow_ups_due = sum map { $_->{due} * 1 } @{ $follow_ups || [] }; |
904 | 909 |
} |
905 | 910 |
|
906 |
my $radieren = ($::instance_conf->get_gl_changeable == 2) |
|
907 |
? ($::form->current_date(\%::myconfig) eq $::form->{gldate}) |
|
908 |
: ($::instance_conf->get_gl_changeable == 1); |
|
909 |
|
|
910 | 911 |
print $::form->parse_html_template('gl/form_footer', { |
911 |
radieren => $radieren,
|
|
912 |
radieren => _get_radieren(),
|
|
912 | 913 |
follow_ups => $follow_ups, |
913 | 914 |
follow_ups_due => $follow_ups_due, |
914 | 915 |
}); |
templates/webpages/gl/form_header.html | ||
---|---|---|
62 | 62 |
</tr> |
63 | 63 |
<tr> |
64 | 64 |
<th align=right>[% 'Reference' | $T8 %]</th> |
65 |
<td>[% L.input_tag('reference', reference, size=20, readonly=id) %]</td>
|
|
65 |
<td>[% L.input_tag('reference', reference, size=20, readonly=readonly) %]</td>
|
|
66 | 66 |
<td align=left> |
67 | 67 |
<table> |
68 | 68 |
<tr> |
69 | 69 |
<th align=right width=50% nowrap>[% 'Date' | $T8 %]</th> |
70 |
<td>[% L.date_tag('transdate', transdate, readonly=id) %]</td>
|
|
70 |
<td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
|
|
71 | 71 |
</tr> |
72 | 72 |
</table> |
73 | 73 |
</td> |
... | ... | |
75 | 75 |
[%- IF id %] |
76 | 76 |
<tr> |
77 | 77 |
<th align=right>[% 'Belegnummer' | $T8 %]</th> |
78 |
<td>[% L.input_tag('id', id, size=20, readonly=id) %]</td>
|
|
78 |
<td>[% L.input_tag('id', id, size=20, readonly=readonly) %]</td>
|
|
79 | 79 |
<td align=left> |
80 | 80 |
<table> |
81 | 81 |
<tr> |
82 | 82 |
<th align=right width=50%>[% 'Buchungsdatum' | $T8 %]</th> |
83 |
<td align=left>[% L.date_tag('gldate', gldate, readonly=id) %]</td>
|
|
83 |
<td align=left>[% L.date_tag('gldate', gldate, readonly=1) %]</td>
|
|
84 | 84 |
</tr> |
85 | 85 |
</table> |
86 | 86 |
</td> |
... | ... | |
97 | 97 |
|
98 | 98 |
<tr> |
99 | 99 |
<th align=right width=1%>[% 'Description' | $T8 %]</th> |
100 |
<td width=1%>[% L.areainput_tag('description', description, cols=50, readonly=id) %]</td>
|
|
100 |
<td width=1%>[% L.areainput_tag('description', description, cols=50, readonly=readonly) %]</td>
|
|
101 | 101 |
<td> |
102 | 102 |
<table> |
103 | 103 |
<tr> |
... | ... | |
111 | 111 |
<table width=100%> |
112 | 112 |
<tr> |
113 | 113 |
<th align=right width=50%>[% 'Mitarbeiter' | $T8 %]</th> |
114 |
<td align=left>[% L.input_tag('employee', employee, size=20, readonly=id) %]</td>
|
|
114 |
<td align=left>[% L.input_tag('employee', employee, size=20, readonly=readonly) %]</td>
|
|
115 | 115 |
</tr> |
116 | 116 |
</table> |
117 | 117 |
</td> |
Auch abrufbar als: Unified diff
Dialogbuchungen am selben Tag komplett bearbeiten können
Natürlich nur, sofern es in der Konfiguration auch an ist. Macht die
Felder bearbeitbar, wenn die Buttons zum Löschen/Buchen angezeigt
werden; damit wird die Maske wieder konsistent.
Fixt #1942.