LIFO (Last In First Out) in ERPNext

Is there any workaround to implement LIFO in ERPNext?

Encountered this need too. Needs development, via sponsoring, to be part of core.