Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bdaa8c2f

Von Philip Reetz vor fast 18 Jahren hinzugefügt

  • ID bdaa8c2f669c9ddcc2f0c8989fed52559d59be43
  • Vorgänger 01b3feeb
  • Nachfolger cb0d3042

Bei Kreditoren- und Debitorenbuchungen eine Funktion zum spaeteren Buchen eines Zahlungseingangs
hinzugefuegt

Unterschiede anzeigen:

bin/mozilla/ar.pl
771 771
          . $locale->text('Use As Template') . qq|">
772 772
  |;
773 773
      }
774
        print qq|
775
  <input class=submit type=submit name=action value="|
776
          . $locale->text('Post Payment') . qq|">
777
  |;
774 778
    
775 779
  } else {
776 780
    if ($transdate > $closedto) {
......
900 904
  $lxdebug->leave_sub();
901 905
}
902 906

  
907
sub post_payment {
908
  $lxdebug->enter_sub();
909
  for $i (1 .. $form->{paidaccounts}) {
910
    if ($form->{"paid_$i"}) {
911
      $datepaid = $form->datetonum($form->{"datepaid_$i"}, \%myconfig);
912

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

  
915
      $form->error($locale->text('Cannot post payment for a closed period!'))
916
        if ($datepaid <= $closedto);
917

  
918
      if ($form->{currency} ne $form->{defaultcurrency}) {
919
        $form->{"exchangerate_$i"} = $form->{exchangerate}
920
          if ($invdate == $datepaid);
921
        $form->isblank("exchangerate_$i",
922
                       $locale->text('Exchangerate for payment missing!'));
923
      }
924
    }
925
  }
926

  
927
  ($form->{AR})      = split /--/, $form->{AR};
928
  ($form->{AR_paid}) = split /--/, $form->{AR_paid};
929
  $form->redirect($locale->text(' Payment posted!'))
930
      if (AR->post_payment(\%myconfig, \%$form));
931
    $form->error($locale->text('Cannot post payment!'));
932

  
933

  
934
  $lxdebug->leave_sub();
935
}
936

  
903 937
sub post {
904 938
  $lxdebug->enter_sub();
905 939

  

Auch abrufbar als: Unified diff