Seperate int and decimal part of Currency in Print Format

Hi All,

I am creating a custom print format for my sales invoice. In that I need to show currency as Rupees and Paise. That is I need to split the Amount to integer part and floating/decimal part and show it in corresponfing columns.

How can I do it? Is there any function to do in ERPNext print Format?

Thanks
Any help will be appreciated…

Check the below function, which is used to convert an amount to convert it in words. You will get the hint.