Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 654da527

Von Cem Aydin vor etwa 1 Jahr hinzugefügt

  • ID 654da527589b6a9f52fc915268d1d7a75d0b8491
  • Vorgänger 71beea57
  • Nachfolger 6ed96afe

Kunden/Lieferanten Presenter: POD zum picker ergänzt

Unterschiede anzeigen:

SL/Presenter/CustomerVendor.pm
173 173

  
174 174
=back
175 175

  
176
=over 4
177

  
178
=item C<customer_vendor_picker $name, $value, %params>
179

  
180
Renders a customer/vendor picker. The name will be both id and name
181
of the resulting hidden C<id> input field (but the ID can be
182
overwritten with C<$params{id}>).
183

  
184
An additional dummy input field is rendered that will contain the
185
customer/vendor's name.
186

  
187
C<$value> can be a customer/vendor ID or a C<Rose::DB:Object> instance.
188
If it is an instance then the type will be determined automatically.
189

  
190
However the type, C<customer> or C<vendor>, can also be specified using
191
C<$type>.
192

  
193
On top of that there are wrapper functions C<customer_picker> and
194
C<vendor_picker> that set the type automatically.
195

  
196
If C<$show_details> is true then the picker will be rendered with an
197
additional button to open the customer/vendor details dialog and a
198
link to open the customer/vendor in a new tab. This can be used in the
199
record views as well as in account receivable/payable.
200

  
201
=back
202

  
203
=head1 TESTS
204

  
205
For the pickers see Developer tools -> Customer/Vendor Test.
206

  
176 207
=head1 BUGS
177 208

  
178 209
Nothing here yet.

Auch abrufbar als: Unified diff