Revision 05174f19
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
1154 | 1154 |
<table width=100%> |
1155 | 1155 |
<tr> |
1156 | 1156 |
<th class=listtop>$form->{title}</th> |
1157 |
</tr> |
|
1157 |
</tr>| . |
|
1158 |
|
|
1159 |
($form->{saved_message} ? qq| |
|
1160 |
<tr> |
|
1161 |
<td>$form->{saved_message}</th> |
|
1162 |
</tr>| : '') . |
|
1163 |
|
|
1164 |
qq| |
|
1158 | 1165 |
<tr height="5"></tr> |
1159 | 1166 |
<tr> |
1160 | 1167 |
<td> |
... | ... | |
1602 | 1609 |
my $form = $main::form; |
1603 | 1610 |
my $locale = $main::locale; |
1604 | 1611 |
|
1612 |
if ($::myconfig{mandatory_departments} && !$form->{department}) { |
|
1613 |
$form->{saved_message} = $::locale->text('You have to specify a department.'); |
|
1614 |
update(); |
|
1615 |
exit; |
|
1616 |
} |
|
1617 |
|
|
1605 | 1618 |
$form->{title} = $locale->text("$form->{title} General Ledger Transaction"); |
1606 | 1619 |
$form->{storno} = 0; |
1607 | 1620 |
|
Auch abrufbar als: Unified diff
Abteilungen in Belegen sind nun Pflichtfelder, wenn der Benutzer das Flag "mandatory_departments" hat.