X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0b84f51fd598e4b5a1cb139aa582297d089b1602..c954dea7c1b814d66b8c31d04fa70a1bbbcce71e:/SL/DB/Invoice.pm?ds=inline diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index fab4974f3..0ef8d614e 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -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 + +Marks the invoice as paid by setting its C member to the value of C. + =back =head1 TODO