]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/IS.pm
Rechnungsfunktionen gehören natürlich nach IS und nicht nach IC.
[kivitendo-erp.git] / SL / IS.pm
index 6b69bb24909367cfdb9fde72ad9aa7a25be21e74..e5d61193d0b12ec6450e330f77b0ce9e3b0317e2 100644 (file)
--- a/SL/IS.pm
+++ b/SL/IS.pm
@@ -2223,5 +2223,24 @@ sub get_pricegroups_for_parts {
   $main::lxdebug->leave_sub();
 }
 
+sub has_storno {
+  $main::lxdebug->enter_sub();
+
+  my ($self, $myconfig, $form) = @_;
+
+  $main::lxdebug->leave_sub() and return 0 unless ($form->{id});
+
+  my $dbh = $form->dbconnect($myconfig);
+
+  my $query = qq|SELECT storno FROM ar WHERE id = ?|;
+  my ($result) = selectrow_query($form, $dbh, $query, $form->{id});
+
+  $dbh->disconnect();
+
+  $main::lxdebug->leave_sub();
+
+  return $result;
+}
+
 1;