Add check for record['discount'] = None
Initialize variables
Correctly check for value = None (cleaner)
Merge pull request #3 from mdietrichc2c/fix-so-line-discount

Add check for record['discount'] = None