From 62bb3c51ddf8a8b0ea4888a695c87637a4b8f633 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 12 Jan 2011 16:27:24 +0100 Subject: [PATCH] Dokumentation Conflicts: SL/DB/Order.pm --- SL/DB/Order.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 1be7b22bf..25c37880f 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -142,6 +142,25 @@ Returns one of the following string types: Rreturns true if the order is of the given type. +=item C + +Creates a new invoice with C<$self> as the basis by calling +L. That invoice is posted, and C<$self> is +linked to the new invoice via L. C<$self>'s +C attribute is set to C, and C<$self> is saved. + +The arguments in C<%params> are passed to +L. One parameter of note is +C<$paras{ar_id}>. If set it must be the ID of the accounts receivables +chart to post to. If it is not set then the first chart configured for +accounts receivables is used. + +Returns the new invoice instance on success and C on failure. + +At the moment only sales quotations and sales orders can be converted. + +=back + =head1 BUGS Nothing here yet. -- 2.20.1