Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9e06d0e4

Von Philip Reetz vor mehr als 16 Jahren hinzugefügt

  • ID 9e06d0e40cb328336d6e7604ec06387a0e3b1ea7
  • Vorgänger 1d089d50
  • Nachfolger 57eb1337

Ueberarbeitete Buecherkontrolle

Unterschiede anzeigen:

bin/mozilla/ar.pl
1009 1009

  
1010 1010
      $form->isblank("datepaid_$i", $locale->text('Payment date missing!'));
1011 1011

  
1012
#      $form->error($locale->text('Cannot post payment for a closed period!')) if ($datepaid <= $closedto);
1012
      $form->error($locale->text('Cannot post payment for a closed period!')) if ($form->date_closed($form->{"datepaid_$i"}, \%myconfig));
1013 1013

  
1014 1014
      if ($form->{currency} ne $form->{defaultcurrency}) {
1015 1015
#        $form->{"exchangerate_$i"} = $form->{exchangerate} if ($invdate == $datepaid);
......
1050 1050

  
1051 1051
  my $closedto  = $form->datetonum($form->{closedto},  \%myconfig);
1052 1052
  my $transdate = $form->datetonum($form->{transdate}, \%myconfig);
1053
  $form->error($locale->text('Cannot post transaction for a closed period!')) if ($transdate <= $closedto);
1053
  $form->error($locale->text('Cannot post transaction for a closed period!')) if ($form->date_closed($form->{"transdate"}, \%myconfig));
1054 1054

  
1055 1055
  $form->error($locale->text('Zero amount posting!')) 
1056 1056
    unless grep $_*1, map $form->parse_amount(\%myconfig, $form->{"amount_$_"}), 1..$form->{rowcount};
......
1067 1067
      $form->isblank("datepaid_$i", $locale->text('Payment date missing!'));
1068 1068

  
1069 1069
      $form->error($locale->text('Cannot post payment for a closed period!'))
1070
        if ($datepaid <= $closedto);
1070
        if ($form->date_closed($form->{"datepaid_$i"}, \%myconfig));
1071 1071

  
1072 1072
      if ($form->{currency} ne $form->{defaultcurrency}) {
1073 1073
        $form->{"exchangerate_$i"} = $form->{exchangerate} if ($transdate == $datepaid);

Auch abrufbar als: Unified diff