From: Thomas Heck Date: Thu, 30 Aug 2012 08:44:29 +0000 (+0200) Subject: Statusmeldung beim Buchen einer Gutschrift geändert. X-Git-Tag: release-3.0.0beta1~266 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d3d239c9b3d7c6d54e806d1a63464236125f181e;p=kivitendo-erp.git Statusmeldung beim Buchen einer Gutschrift geändert. fixt #1814 --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 66aa4b8f2..aefa54522 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -729,7 +729,7 @@ sub post { ($form->{AR_paid}) = split /--/, $form->{AR_paid}; $form->{storno} ||= 0; - $form->{label} = $locale->text('Invoice'); + $form->{label} = $form->{type} eq 'credit_note' ? $locale->text('Credit Note') : $locale->text('Invoice'); $form->{id} = 0 if $form->{postasnew}; @@ -748,7 +748,7 @@ sub post { remove_draft() if $form->{remove_draft}; if(!exists $form->{addition}) { - $form->{snumbers} = qq|invnumber_| . $form->{invnumber}; + $form->{snumbers} = 'invnumber' .'_'. $form->{invnumber}; # ($form->{type} eq 'credit_note' ? 'cnnumber' : 'invnumber') .'_'. $form->{invnumber}; $form->{addition} = $form->{print_and_post} ? "PRINTED AND POSTED" : $form->{storno} ? "STORNO" : "POSTED"; @@ -985,7 +985,7 @@ sub yes { if (IS->delete_invoice(\%myconfig, \%$form)) { # saving the history if(!exists $form->{addition}) { - $form->{snumbers} = qq|invnumber_| . $form->{invnumber}; + $form->{snumbers} = 'invnumber' .'_'. $form->{invnumber}; # ($form->{type} eq 'credit_note' ? 'cnnumber' : 'invnumber') .'_'. $form->{invnumber}; $form->{addition} = "DELETED"; $form->save_history; }