[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2889] trunk/LedgerSMB/DBObject/Company.pm
- Subject: SF.net SVN: ledger-smb:[2889] trunk/LedgerSMB/DBObject/Company.pm
- From: ..hidden..
- Date: Fri, 12 Feb 2010 04:32:16 +0000
Revision: 2889
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2889&view=rev
Author: einhverfr
Date: 2010-02-12 04:32:16 +0000 (Fri, 12 Feb 2010)
Log Message:
-----------
Fixing 'Required Input Not Provided' error saving customer account'
Modified Paths:
--------------
trunk/LedgerSMB/DBObject/Company.pm
Modified: trunk/LedgerSMB/DBObject/Company.pm
===================================================================
--- trunk/LedgerSMB/DBObject/Company.pm 2010-02-11 22:06:43 UTC (rev 2888)
+++ trunk/LedgerSMB/DBObject/Company.pm 2010-02-12 04:32:16 UTC (rev 2889)
@@ -85,8 +85,9 @@
);
$sth->execute($self->{taxform1_id}, $self->{credit_id});
}
- $self->exec_method(funcname => 'eca__set_taxes');
- $dbh->commit();
+ if ($self->{tax_ids} ne '{}'){
+ $self->exec_method(funcname => 'eca__set_taxes');
+ }
$self->{threshold} = $self->format_amount(amount => $self->{threshold});
$self->{dbh}->commit;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.