Repost Stock Values

Is it possible to re-calculate and re-post each and every stock ledger entry (including valuation rate, incoming rate, etc) for a particular item, through server side code?

If yes can anybody point out the code.

Hi @mehta_akshay

Check below code

@rohit_w Thanks

Will this re-post GLE & SLE both or just the GLE?