diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-16 23:09:38 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-16 23:09:38 +0000 |
commit | ac68ad4e2a5a937b75acc92a6e20521360bc90ee (patch) | |
tree | 92136b57e191451f0f359225d774b46eca40ff16 | |
parent | f4d2df2a41e052c0713c687584a20eaa35d3fb84 (diff) |
Fix formatting of empty date
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@644 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/IC.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/LedgerSMB/IC.pm b/LedgerSMB/IC.pm index 11fcf9c4..cc150cc1 100755 --- a/LedgerSMB/IC.pm +++ b/LedgerSMB/IC.pm @@ -547,7 +547,11 @@ sub save { ($null, $pricegroup_id) = split /--/, $form->{"pricegroup_$i"}; - + + my $validfrom; + my $validto; + $validfrom = $form->{"validfrom_$i"} if $form->{"validfrom_$i"}; + $validto = $form->{"validto_$i"} if $form->{"validto_$i"}; $query = qq| INSERT INTO partscustomer (parts_id, customer_id, |