summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-27 08:08:19 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-27 08:08:19 +0000
commita1203f811bb7c5a84fb4eed01dcb65417c0f406d (patch)
tree08b05beacc0d6ef9182301614d3cc0f0e49ba76c /LedgerSMB
parentd4f3ec54f158e60565f7eccac83c88bf1cb934b6 (diff)
Employee screen QA round 1.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1910 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/DBObject/Employee.pm22
1 files changed, 21 insertions, 1 deletions
diff --git a/LedgerSMB/DBObject/Employee.pm b/LedgerSMB/DBObject/Employee.pm
index ddc453a6..af08ed61 100644
--- a/LedgerSMB/DBObject/Employee.pm
+++ b/LedgerSMB/DBObject/Employee.pm
@@ -1,6 +1,6 @@
package LedgerSMB::DBObject::Employee;
-use base qw(LedgerSMB::DBObject::Company);
+use base qw(LedgerSMB::DBObject);
use strict;
my $ENTITY_CLASS = 3;
@@ -9,5 +9,25 @@ sub set_entity_class {
my $self = shift @_;
$self->{entity_class} = $ENTITY_CLASS;
}
+
+sub save {
+ my ($self) = @_;
+ $self->set_entity_class();
+ $self->{entity_id} = $self->exec_method(funcname => 'person_save');
+ $self->exec_method(funcname => 'employee__save');
+ $self->{dbh}->commit;
+}
+
+sub save_location {
+}
+
+sub save_contact {
+}
+
+sub save_bank_account {
+}
+
+sub save_note {
+}
1;