Added new variable paymenttypecode. default it to 'S' for single entry payment.
Added a function to setPaymentTypeCode
Edited createDetailRecord - Changed field 9 to take value from the variable