Hi Gincy,
Please provide detail of the issue here. What kind of transaction is it? Is it always the same customer that is to be posted credit or it is different customer in every transaction and needs to be derived based on reference/billing document number?
Thanks,
Krishna