How to fetch payment terms template details(table of payment due dates) in sales invoice print format?

Hi all,

I am having problems trying to fetch the details of the payment terms such as payment due dates table to the sales invoice print format. The store for which I am trying to make use of ERPNext mainly deals with sales on installments, therefore when making sales invoice it is very helpful for customers to get invoice printed with details of payment such as future payment due dates.
Please share your solution for this problem if there is one.