How can i extend payment entry

I need extend my file js because i need calculate new forms to pay how I can do the method extend…??

Please elaborate your use-case. Perhaps some work-around in the existing system will be sufficient.

Journal Entry is most open and should handle any kind of use-case.