Dear Sarif
The ideal solution for you will be;
1) Link your payment term to Document Date, so that baseline date is same as document date.
2) While doing residual, you can configure your system to pick the payment term (for the residual item) from the original document (i,e indirectly your balance open item will be linked to your original document date. Do this settings;
Hope this makes sense to you?
Regards