Merge pull request #3779 from nabinhait/fifo_stack

[fix] Get fifo rate only qty exists in batch