summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/CT.pm2
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"} );