diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-08-17 01:03:46 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-08-17 01:03:46 +0000 |
commit | 3eaf59635373ddf7d9df19316c96ffc45cc8b302 (patch) | |
tree | 7d80a0adf55462b347a924da483d47130a069bb7 | |
parent | 30cd10ad43db2c8a891cd07371488d2dd487cfac (diff) |
Fixing customer pricelist db errors with blank dates.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1459 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/CT.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/CT.pm b/LedgerSMB/CT.pm index 283ed2bf..43236c4b 100755 --- a/LedgerSMB/CT.pm +++ b/LedgerSMB/CT.pm @@ -1135,6 +1135,8 @@ sub save_pricelist { if ( $form->{db} eq 'customer' ) { + $form->{"validfrom_$i"} = undef if $form->{"validfrom_$i"} eq ''; + $form->{"validto_$i"} = undef if $form->{"validto_$i"} eq ''; for (qw(pricebreak sellprice)) { $form->{"${_}_$i"} = $form->parse_amount( $myconfig, $form->{"${_}_$i"} ); |