summaryrefslogtreecommitdiff
path: root/LedgerSMB/CT.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-21 05:30:50 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-21 05:30:50 +0000
commit66cfba2b600db93db64378a582c5bfebf1d66a6c (patch)
tree9474501b37eeca73bb58547410d471fc0578fdec /LedgerSMB/CT.pm
parent350810c40185af41e75b53fe90fc12afe137047c (diff)
Modified parsing to return undef on empty string.
Modified CT to use 0 credit limit if none provided. Added On Hand column to invoices. Dropped foreign key constrant on acc_trans.trans_id due to limitations in current API (will be in a future version). git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@250 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/CT.pm')
-rwxr-xr-xLedgerSMB/CT.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB/CT.pm b/LedgerSMB/CT.pm
index 6154748b..8662e657 100755
--- a/LedgerSMB/CT.pm
+++ b/LedgerSMB/CT.pm
@@ -208,6 +208,9 @@ sub save_customer {
$form->{terms} *= 1;
$form->{taxincluded} *= 1;
$form->{creditlimit} = $form->parse_amount($myconfig, $form->{creditlimit});
+ if (!$form->{creditlimit}){
+ $form->{creditlimit} = 0;
+ }
if ($form->{id}) {