Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d3d239c9

Von Thomas Heck vor etwa 12 Jahren hinzugefügt

  • ID d3d239c9b3d7c6d54e806d1a63464236125f181e
  • Vorgänger a0cd7d69
  • Nachfolger 6abbd83d

Statusmeldung beim Buchen einer Gutschrift geändert.

fixt #1814

Unterschiede anzeigen:

bin/mozilla/is.pl
729 729
  ($form->{AR_paid})   = split /--/, $form->{AR_paid};
730 730
  $form->{storno}    ||= 0;
731 731

  
732
  $form->{label} = $locale->text('Invoice');
732
  $form->{label} = $form->{type} eq 'credit_note' ? $locale->text('Credit Note') : $locale->text('Invoice');
733 733

  
734 734
  $form->{id} = 0 if $form->{postasnew};
735 735

  
......
748 748
  remove_draft() if $form->{remove_draft};
749 749

  
750 750
  if(!exists $form->{addition}) {
751
    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
751
    $form->{snumbers} =  'invnumber' .'_'. $form->{invnumber}; # ($form->{type} eq 'credit_note' ? 'cnnumber' : 'invnumber') .'_'. $form->{invnumber};
752 752
    $form->{addition} = $form->{print_and_post} ? "PRINTED AND POSTED" :
753 753
                        $form->{storno}         ? "STORNO"             :
754 754
                                                  "POSTED";
......
985 985
  if (IS->delete_invoice(\%myconfig, \%$form)) {
986 986
    # saving the history
987 987
    if(!exists $form->{addition}) {
988
    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
988
      $form->{snumbers} = 'invnumber' .'_'. $form->{invnumber}; # ($form->{type} eq 'credit_note' ? 'cnnumber' : 'invnumber') .'_'. $form->{invnumber};
989 989
      $form->{addition} = "DELETED";
990 990
      $form->save_history;
991 991
    }

Auch abrufbar als: Unified diff