[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5480] trunk/LedgerSMB/Entity/Credit_Account.pm
- Subject: SF.net SVN: ledger-smb:[5480] trunk/LedgerSMB/Entity/Credit_Account.pm
- From: ..hidden..
- Date: Fri, 04 Jan 2013 13:40:24 +0000
Revision: 5480
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5480&view=rev
Author: einhverfr
Date: 2013-01-04 13:40:23 +0000 (Fri, 04 Jan 2013)
Log Message:
-----------
Fixing initial saving eca errors in some cases
Modified Paths:
--------------
trunk/LedgerSMB/Entity/Credit_Account.pm
Modified: trunk/LedgerSMB/Entity/Credit_Account.pm
===================================================================
--- trunk/LedgerSMB/Entity/Credit_Account.pm 2013-01-04 13:35:24 UTC (rev 5479)
+++ trunk/LedgerSMB/Entity/Credit_Account.pm 2013-01-04 13:40:23 UTC (rev 5480)
@@ -384,8 +384,7 @@
if (@{$self->{tax_ids}}){
$self->exec_method(funcname => 'eca__set_taxes');
}
- $self = $self->new(%$ref);
- return $self;
+ return $self->get_by_id($ref->{eca__save});
}
=item get_pricematrix
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.