summaryrefslogtreecommitdiff
path: root/LedgerSMB/DBObject
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-20 19:43:27 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-20 19:43:27 +0000
commite783d17dd9470f2dc2868e05119ea5bdaf0d00aa (patch)
tree770bfad486cb81c8d2ca6782215026f09668bd9c /LedgerSMB/DBObject
parent8143605207345275a28029130b9491a2a31022c9 (diff)
A few more Customer improvements
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1882 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/DBObject')
-rw-r--r--LedgerSMB/DBObject/Customer.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/LedgerSMB/DBObject/Customer.pm b/LedgerSMB/DBObject/Customer.pm
index 9a120f91..aa4404ce 100644
--- a/LedgerSMB/DBObject/Customer.pm
+++ b/LedgerSMB/DBObject/Customer.pm
@@ -9,7 +9,9 @@ sub save {
# This saves both the entity and the credit account. -- CT
$self->{entity_class} = 2;
- $self->{id} = $self->exec_method(funcname => 'entity_credit_save');
+
+ $self->{entity_id} = $self->exec_method(funcname => 'entity_credit_save');
+ $self->{dbh}->commit;
}
sub get_metadata {