Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4e16c39f

Von Martin Helmling martin.helmling@octosoft.eu vor fast 8 Jahren hinzugefügt

  • ID 4e16c39fb285cd926ac86fd7d6b4e1afda131898
  • Vorgänger 084c45b1

"Mandatory_departments" auch in Aufträgen und Lieferscheinen

Analog zu is.pl ir.pl gl.pl ap.pl ar.pl nun auch in do.pl und oe.pl

Unterschiede anzeigen:

bin/mozilla/do.pl
732 732

  
733 733
    IS->get_customer(\%myconfig, $form) if $vc eq 'customer';
734 734
    IR->get_vendor(\%myconfig, $form)   if $vc eq 'vendor';
735
    update();
736
    $::dispatcher->end_request;
737
  }
735 738

  
739
  if ($myconfig{mandatory_departments} && !$form->{department_id}) {
740
    $form->{saved_message} = '<span class="redrow1">'.$::locale->text('You have to specify a department.').'</span>';
736 741
    update();
737 742
    $::dispatcher->end_request;
738 743
  }
bin/mozilla/oe.pl
1174 1174
    $::dispatcher->end_request;
1175 1175
  }
1176 1176

  
1177
  if ($::myconfig{mandatory_departments} && !$form->{department_id}) {
1178
    $form->{saved_message} = '<span class="redrow1">'.$::locale->text('You have to specify a department.').'</span>';
1179
    update();
1180
    $::dispatcher->end_request;
1181
  }
1182

  
1177 1183
  $form->{id} = 0 if $form->{saveasnew};
1178 1184

  
1179 1185
  my ($numberfld, $ordnumber, $err);
......
1279 1285
    $::dispatcher->end_request;
1280 1286
  }
1281 1287

  
1288
  if ($myconfig{mandatory_departments} && !$form->{department_id}) {
1289
    $form->{saved_message} = '<span class="redrow1">'.$::locale->text('You have to specify a department.').'</span>';
1290
    update();
1291
    $::dispatcher->end_request;
1292
  }
1293

  
1282 1294
  $form->{id} = 0 if $form->{saveasnew};
1283 1295

  
1284 1296
  my ($numberfld, $ordnumber, $err);
templates/webpages/do/form_header.html
3 3
[%- USE LxERP %]
4 4
[%- USE L %][%- USE P -%]
5 5
<h1>[% title %]</h1>
6
<p>[% saved_message %]</p>
7

  
6 8

  
7 9
 <script type="text/javascript" src="js/show_form_details.js"></script>
8 10
 <script type="text/javascript" src="js/show_history.js"></script>
templates/webpages/oe/form_header.html
25 25
    <input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
26 26

  
27 27
    <h1>[% title %]</h1>
28
<p>[% saved_message %]</p>
28 29

  
29 30
[%- INCLUDE 'common/flash.html' %]
30 31
[%- INCLUDE 'generic/set_longdescription.html' %]

Auch abrufbar als: Unified diff