From: Moritz Bunkus Date: Thu, 11 Nov 2010 21:33:07 +0000 (+0100) Subject: Dokumentation X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~50 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=78600d89c89dbdbb0ff0ef31e04feacedb1b5589;p=kivitendo-erp.git Dokumentation --- diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 6e0cf60a1..e9c04ed92 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -273,7 +273,10 @@ Lx-Office is not configured to use Einnahmenüberschussrechnungen =back -Returns C<$self> on success and C on failure. +Returns C<$self> on success and C on failure. The whole process +is run inside a transaction. If it fails then nothing is saved to or +changed in the database. A new transaction is only started if none is +active. =item C diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 25c37880f..74f713ca0 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -155,10 +155,22 @@ 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. +Returns the new invoice instance on success and C on +failure. The whole process is run inside a transaction. On failure +nothing is created or changed in the database. At the moment only sales quotations and sales orders can be converted. +=item C + +Creates and saves a new sales process. Can only be called for sales +orders. + +The newly created process will be linked bidirectionally to both +C<$self> and to all sales quotations that are linked to C<$self>. + +Returns the newly created process instance. + =back =head1 BUGS