summaryrefslogtreecommitdiff
path: root/LedgerSMB/DBObject/Employee.pm
blob: af08ed61abc98f0b17f49979d6310472b30d3acf (plain)
  1. package LedgerSMB::DBObject::Employee;
  2. use base qw(LedgerSMB::DBObject);
  3. use strict;
  4. my $ENTITY_CLASS = 3;
  5. sub set_entity_class {
  6. my $self = shift @_;
  7. $self->{entity_class} = $ENTITY_CLASS;
  8. }
  9. sub save {
  10. my ($self) = @_;
  11. $self->set_entity_class();
  12. $self->{entity_id} = $self->exec_method(funcname => 'person_save');
  13. $self->exec_method(funcname => 'employee__save');
  14. $self->{dbh}->commit;
  15. }
  16. sub save_location {
  17. }
  18. sub save_contact {
  19. }
  20. sub save_bank_account {
  21. }
  22. sub save_note {
  23. }
  24. 1;