X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FInvoice.pm;h=0ef8d614e842f68c3d7927c94ea8890e17ba916e;hb=da413cb1223e7cb62fdffee70bdd2845d9b30d66;hp=fab4974f3490acfba58a044a4b92472c5fb93f88;hpb=0b84f51fd598e4b5a1cb139aa582297d089b1602;p=kivitendo-erp.git 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