aii: gl entries for stock entry and testcases