Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 62bb3c51

Von Moritz Bunkus vor fast 14 Jahren hinzugefügt

  • ID 62bb3c51ddf8a8b0ea4888a695c87637a4b8f633
  • Vorgänger 6834acd9
  • Nachfolger 02c95ae1

Dokumentation

Conflicts:

SL/DB/Order.pm

Unterschiede anzeigen:

SL/DB/Order.pm
142 142

  
143 143
Rreturns true if the order is of the given type.
144 144

  
145
=item C<convert_to_invoice %params>
146

  
147
Creates a new invoice with C<$self> as the basis by calling
148
L<SL::DB::Invoice::new_from>. That invoice is posted, and C<$self> is
149
linked to the new invoice via L<SL::DB::RecordLink>. C<$self>'s
150
C<closed> attribute is set to C<true>, and C<$self> is saved.
151

  
152
The arguments in C<%params> are passed to
153
L<SL::DB::Invoice::post>. One parameter of note is
154
C<$paras{ar_id}>. If set it must be the ID of the accounts receivables
155
chart to post to. If it is not set then the first chart configured for
156
accounts receivables is used.
157

  
158
Returns the new invoice instance on success and C<undef> on failure.
159

  
160
At the moment only sales quotations and sales orders can be converted.
161

  
162
=back
163

  
145 164
=head1 BUGS
146 165

  
147 166
Nothing here yet.

Auch abrufbar als: Unified diff