Hi All,
I looking for workaround to build FIFO logic. Against particular ID i have buy & sales amount and immediate sales after buy should get substract from 1st buy and then followed in the sequence until buy amount get vanish. Calculate Cost which would be Buying prices * Selling amount..
I am facing challenge to calculate Cost.