]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ir.pl
Codeduplikation vermeiden.
[mfinanz.git] / bin / mozilla / ir.pl
index f5fd32f58d5f55033cf48f7adc2fc9a348495813..04ca53ee46202a369c7ded891a1ef612a52ebc2e 100644 (file)
@@ -32,6 +32,7 @@
 #======================================================================
 
 use SL::IR;
+use SL::IS;
 use SL::PE;
 
 require "$form->{path}/io.pl";
@@ -972,7 +973,7 @@ sub storno {
     $form->error($locale->text('Cannot storno storno invoice!'));
   }
 
-  if (IR->has_storno(\%myconfig, $form)) {
+  if (IS->has_storno(\%myconfig, $form, "ap")) {
     $form->error($locale->text("Invoice has already been storno'd!"));
   }