diff options
Diffstat (limited to 'LedgerSMB/CT.pm')
-rwxr-xr-x | LedgerSMB/CT.pm | 3 |
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}) { |