Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 381b617c

Von Kivitendo Admin vor etwa 1 Jahr hinzugefügt

  • ID 381b617c037e3d59a2fbf0f239ac16755aa874dc
  • Vorgänger 58143d76
  • Nachfolger 5775d2c6

SL/Model/Record - POD stylistisch überarbeitet

Unterschiede anzeigen:

SL/Model/Record.pm
327 327

  
328 328
Invoices are not supported as of now, but are planned for the future.
329 329

  
330
The old deliveryorder C<sales_delivery_order> and C<purchase_delivery_order> must be implemented
330
The old delivery order C<sales_delivery_order> and C<purchase_delivery_order> must be implemented
331 331
in the new DeliveryOrder Controller
332 332

  
333 333
=head1 METHODS
......
336 336

  
337 337
=item C<update_after_new>
338 338

  
339
Creates a new record_object by record_type and sub_type
340
set reqdate and transdate if required by type_data
339
Creates a new record_object by record_type and sub_type.
340
Sets reqdate and transdate if required by type_data.
341 341

  
342 342
Returns the record object.
343 343

  
344 344
=item C<new_from_workflow>
345 345

  
346 346
Expects source_object, target_object, can have flags.
347
Creates a new record from source_subtype by target_type->new_from(source_record)
348
Set default flag no_link_record to false and looks up the correct target_type
347
Creates a new record from a source_subtype by target_type->new_from(source_record).
348
Set default flag no_link_record to false and looks up the correct target_type.
349 349

  
350
Throws an error if target_type not exists.
350
Throws an error if the target_type doesn't exist.
351 351

  
352
Returns the new record_object.
352
Returns the new record object.
353 353

  
354 354
=item C<new_from_workflow_multi>
355 355

  
356 356
Expects an arrayref with source_objects and a target_object, can have flags.
357
Creates a new record_objects from one or more source_objects. By now only for orders.
358
Looks up the correct target_type throws an error if it doesn't exist.
357
Creates a new record object from one or more source objects. For now only for orders.
358
Looks up the correct target type and throws an error if it doesn't exist.
359 359

  
360
Return the new record_object.
360
Returns the new record object.
361 361

  
362 362
=item C<increment_subversion>
363 363

  
364
Only orders.
364
Only for orders.
365 365

  
366 366
Increments the record's subversion number.
367 367

  
......
372 372
Expects a record to delete.
373 373
Deletes the whole record and puts an entry in the history.
374 374
Cleans up the spool directory.
375
Dies and throws an error if dberror.
375
Dies and throws an error if there is a dberror.
376 376

  
377
TODO: check status order when old deliveryorder (do) will be implemented.
377
TODO: check status order once old deliveryorder (do) is implemented.
378 378

  
379 379
=item C<save>
380 380

  
381
Expects a record to save and params to handles stuff like validity_token, custom_shipto,
382
items_to_delete, close objects, requirement_specs
381
Expects a record to be saved and params to handle stuff like validity_token, custom_shipto,
382
items_to_delete, close objects and requirement_specs.
383 383

  
384 384
=over 2
385 385

  
......
387 387

  
388 388
=over 4
389 389

  
390
=item * C<with_validity_token -E<gt> scope>
390
=item * C<with_validity_token  scope>
391 391

  
392 392
=item * C<delete custom shipto if empty>
393 393

  
......
401 401

  
402 402
=back
403 403

  
404
Sets an entry in history
404
Sets an entry in the history.
405 405

  
406
Dies and throws error when error
406
Dies and throws an error when there is an error.
407 407

  
408 408
=back
409 409

  
......
413 413

  
414 414
=item C<clone_for_save_as_new>
415 415

  
416
Expects the saved record and the record to change.
416
Expects the saved record and the record to be changed.
417 417

  
418 418
Sets the actual employee.
419 419

  
420
Sets also new transdate, new reqdate and an empty recordnumber if not allready changed in record to change.
420
Also sets a new transdate, new reqdate and an empty recordnumber if it wasn't already changed in the old record.
421 421

  
422 422
=item C<_save_history>
423 423

  
424
Expects a record for id, addition for text (SAVED,DELETED,...)
424
Expects a record and an addition reason for the history (SAVED,DELETED,...)
425 425

  
426 426
=item C<_get_history_snumbers>
427 427

  
428
Expects a record returns snumber for history_entry
428
Expects a record, returns snumber for the history entry.
429 429

  
430 430
=back
431 431

  

Auch abrufbar als: Unified diff