Make sure there is only 1 debit and 1 credit line #5352

Also created 2 function fields to hold debit and credit lines