bug fixing for receivedQty