Revision 05174f19
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
1017 | 1017 |
$form->isblank("duedate", $locale->text("Due Date missing!")); |
1018 | 1018 |
$form->isblank("vendor", $locale->text('Vendor missing!')); |
1019 | 1019 |
|
1020 |
if ($myconfig{mandatory_departments} && !$form->{department}) { |
|
1021 |
$form->{saved_message} = $::locale->text('You have to specify a department.'); |
|
1022 |
update(); |
|
1023 |
exit; |
|
1024 |
} |
|
1025 |
|
|
1020 | 1026 |
my $closedto = $form->datetonum($form->{closedto}, \%myconfig); |
1021 | 1027 |
my $transdate = $form->datetonum($form->{transdate}, \%myconfig); |
1022 | 1028 |
$form->error($locale->text('Cannot post transaction for a closed period!')) if ($form->date_closed($form->{"transdate"}, \%myconfig)); |
Auch abrufbar als: Unified diff
Abteilungen in Belegen sind nun Pflichtfelder, wenn der Benutzer das Flag "mandatory_departments" hat.