Hello,
It Totally depends on the transaction and the agreement/ contract entered into by both the parties. There is no straight jacket formula to it and can be debatable with some specific clauses.
Trust this clarifies your query.
Feel free to call / get back in case of further clarifications.
Thanking You.
Regards,
Rohit R Sharma
BCOM, ACA, LLB-GEN, CERT. FAFP