summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-09-10 23:04:03 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-09-10 23:04:03 +0000
commitaeb8fa97fcadab8e48b014f66650dac8ac4d32c4 (patch)
treedacbcceac0a409eb939ec541e747d0d0f4745c9a /LedgerSMB
parente068472d5ff78dfaa8d02016435307d07f276a3a (diff)
Correcting issue saving multiple contact info
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2320 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/ScriptLib/Company.pm17
1 files changed, 17 insertions, 0 deletions
diff --git a/LedgerSMB/ScriptLib/Company.pm b/LedgerSMB/ScriptLib/Company.pm
index e888c283..9b9b87c9 100644
--- a/LedgerSMB/ScriptLib/Company.pm
+++ b/LedgerSMB/ScriptLib/Company.pm
@@ -457,6 +457,23 @@ sub save_contact {
=over
+=item save_contact_new($request)
+
+Saves contact info as a new line as per save_contact above.
+
+=cut
+
+sub save_contact_new{
+ my ($request) = @_;
+ delete $request->{old_contact};
+ delete $request->{old_contact_class};
+ save_contact($request);
+}
+
+=pod
+
+=over
+
=item save_bank_account($request)
Adds a bank account to a company and, if defined, an entity credit account.