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/ap.pl
748 748
<input class=submit type=submit name=action value="|
749 749
        . $locale->text('Use As Template') . qq|">
750 750
|;
751
 
751
      print qq|
752
<input class=submit type=submit name=action value="|
753
        . $locale->text('Post Payment') . qq|">
754
|;
752 755
  } else {
753 756
    if (($transdate > $closedto) && !$form->{id}) {
754 757
      print qq|<input class=submit type=submit name=action value="|
......
875 878
  $lxdebug->leave_sub();
876 879
}
877 880

  
881

  
882
sub post_payment {
883
  $lxdebug->enter_sub();
884
  for $i (1 .. $form->{paidaccounts}) {
885
    if ($form->{"paid_$i"}) {
886
      $datepaid = $form->datetonum($form->{"datepaid_$i"}, \%myconfig);
887

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

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

  
893
      if ($form->{currency} ne $form->{defaultcurrency}) {
894
        $form->{"exchangerate_$i"} = $form->{exchangerate}
895
          if ($invdate == $datepaid);
896
        $form->isblank("exchangerate_$i",
897
                       $locale->text('Exchangerate for payment missing!'));
898
      }
899
    }
900
  }
901

  
902
  ($form->{AP})      = split /--/, $form->{AP};
903
  ($form->{AP_paid}) = split /--/, $form->{AP_paid};
904
  $form->redirect($locale->text(' Payment posted!'))
905
      if (AP->post_payment(\%myconfig, \%$form));
906
    $form->error($locale->text('Cannot post payment!'));
907

  
908

  
909
  $lxdebug->leave_sub();
910
}
911

  
912

  
878 913
sub post {
879 914
  $lxdebug->enter_sub();
880 915

  

Auch abrufbar als: Unified diff