X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/58b97f84fdd297b2a5aa14e408fdb1a154663d72..b186a8eb0ff43ca1d67e7416f1eef2d11bf4501a:/SL/DB/Invoice.pm 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