Einkaufsrechnungen: Abteilungs- & Projektauswahl nicht über Multibox
[kivitendo-erp.git] / SL / DB / Invoice.pm
index fab4974..0ef8d61 100644 (file)
@@ -577,6 +577,12 @@ sub link {
   return $html;
 }
 
+sub mark_as_paid {
+  my ($self) = @_;
+
+  $self->update_attributes(paid => $self->amount);
+}
+
 1;
 
 __END__
@@ -760,6 +766,10 @@ Mandatory params are
 
 =back
 
+=item C<mark_as_paid>
+
+Marks the invoice as paid by setting its C<paid> member to the value of C<amount>.
+
 =back
 
 =head1 TODO