Revision 734b356d
Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
243 | 243 |
|
244 | 244 |
These types are sadly represented by data inside the class and cannot be |
245 | 245 |
migrated into a flag. To work around this, each C<Part> object knows what type |
246 |
it currently is. Since the type ist data driven, there ist no explicit setting
|
|
246 |
it currently is. Since the type is data driven, there ist no explicit setting |
|
247 | 247 |
method for it, but you can construct them explicitly with C<new_part>, |
248 | 248 |
C<new_service>, and C<new_assembly>. A Buchungsgruppe should be supplied in this |
249 | 249 |
case, but it will use the default Buchungsgruppe if you don't. |
... | ... | |
263 | 263 |
=item C<new_assembly %PARAMS> |
264 | 264 |
|
265 | 265 |
Will set the appropriate data fields so that the resulting instance will be of |
266 |
tthe requested type. Since part of the distinction are accounting targets,
|
|
266 |
the requested type. Since accounting targets are part of the distinction,
|
|
267 | 267 |
providing a C<Buchungsgruppe> is recommended. If none is given the constructor |
268 | 268 |
will load a default one and set the accounting targets from it. |
269 | 269 |
|
... | ... | |
336 | 336 |
|
337 | 337 |
=item C<orphaned> |
338 | 338 |
|
339 |
Checks if this articke is used in orders, invoices, delivery orders or
|
|
339 |
Checks if this article is used in orders, invoices, delivery orders or
|
|
340 | 340 |
assemblies. |
341 | 341 |
|
342 | 342 |
=item C<buchungsgruppe BUCHUNGSGRUPPE> |
343 | 343 |
|
344 |
Used to set the accounting informations from a L<SL:DB::Buchungsgruppe> object.
|
|
344 |
Used to set the accounting information from a L<SL:DB::Buchungsgruppe> object. |
|
345 | 345 |
Please note, that this is a write only accessor, the original Buchungsgruppe can |
346 | 346 |
not be retrieved from an article once set. |
347 | 347 |
|
Auch abrufbar als: Unified diff
Doku in SL/DB/Part.pm - Typos und Umschreiben