Topic: stock_id wise shortage list report

Hello,

I have few products on fronaccounting software..
stock_id=1000 (stock quantity= 100), stock_id=10001 (stock quantity= 80), stock_id=1002 (stock quantity= 50), stock_id=1003 (stock quantity= 100). Generally shortage list report will reached quantity=0 from the code-

if ($no_zeros && $trans['QtyOnHand'] == 0 && $demandqty == 0 && $onorder == 0)
            continue;
        if ($shortage && $trans['QtyOnHand'] - $demandqty >=0)
                         continue;

But I need when stock_id=1000 (qty=10),  stock_id=1001 (qty=15), stock_id=1002 (qty=20), stock_id=1003 (qty=12) will show shortage list.

Anyone can help me to make those stock_id wise shortage list report?