Coder Social home page Coder Social logo

carteiradeativos's People

Contributors

allerasouza avatar henriquenfaria avatar thiagoprochnow avatar walternunes avatar

Stargazers

 avatar

Watchers

 avatar

carteiradeativos's Issues

Change Stock add, so if stock already added, it will sum to the portfolio

Right now, if a user adds 100 of ITUB4 stock and afterwards adds 200 of ITUB4, it will show as a total of 200 ITUB4.
The correct approch would be to have the sum of both values as total.
Also, it is needed that both values are stored separately on database as for example:

ITUB4, 100, ... 23.50, 10/04/2015
ITUB4, 200, ... 27.62, 17/08/2016

And on the portfolio will show ITUB4 as 300 quantity.

Change db to have a table for stock portfolio

Now there is only a table with stock buys and sells.
Should create a table with the user portfolio so adapter can read values from this table.
Should be like:

StockQuotes:
ITUB4 100 03/05/2015...
ITUB4 100 10/07/2016...

StockPorfolio:
ITUB4 200 (AverageBoughtPrice), (CurrentPrice), (Gain)...

Cannot input 2 digits value on "Objective" field

On the add stock form, in the objective field, I cannot input a 2 digits value, for example "12.50". When trying to insert, the value stops at "." and cannot input anything else, it stays as "12.".

Merge Statistics with Complete Portfolio?

This is an idea to simplify our option. Maybe we don't need a separed section for statistics.
Maybe we should add those statistics inside Complete Portfolio section.

Let's discuss about.

Start the development of Details of Stock

When clicking on a the stock cardview, should open a new activity to show more datails of that stock like:

  • Buy dates and values, Medium Price (Preço Médio), Gain on that stock, gain on separate stock buys, Graph.
  • Incomes, Income Graph.
    This activity will also have option menu on toolbar for "Register Incomes, Bonification, Buy Stocks, Sell Stocks, Unfolding, Grouping"

Make delete option on long press of a cardView investment

When doing long press on a investment cardview, should appear a dialog to select "Edit" or "Delete" of that investment.
For now, there will be no change on the content provider. The objective is to make the "Edit" and "Delete" option available.

Make the DividendFormFragment get the stock quantity and multiply by the owned stock quantity

Right now the addDividend function is using a dummy quantity of 100 to multiple by inserted value of per stock.
This needs to change to get the actual value of that stock owned by the user and multiply by the inserted value per stock to get the current total of the income.
Example:
ITUB4|200:
Inserted per stock: R$3,00/stock
Total income: 200 * 3,00 = R$600,00

PETR4|100:
Inserted per stock: R$1,00/stock
Total income: 100 * 1,00 = R$100,00

Start Development of fragment to register Dividends.

Start the development of a fragment to register Dividends.
When clicking on the menu option, the intent will receive the selected stock (EX: PETR4), so the user can register a new Dividend with fields "Date of Receive" "Value per Stock" received.
After setting values, will be saved on database as (Stock, Value/stock, date).

Delete is not working

Delete is not working due to a non existing URI in the provider.

In my opinion it is not necessary to delete the register of table Symbol

Store buy date on the database

  • Need to change code to also store the buy date of the stock.
  • Now it is also needed to store the dividend receive date.

Develop repository

Develop the repository to be used instead of call the provider directly

Make matcher for dividend ex date and stock buy date

Dividend receive value should only be for stocks that were bought before ex date.
Example:
ITUB4 100 buy date: 02/03/2015
ITUB4 200 buy date: 02/03/2017

Receive dividend: R$2,5 per stock Ex date 02/03/2016 -> Total = 1002,50 = 250
Receive dividend: R$2,5 per stock Ex date 03/03/2017 -> Total = 300
2,50 = 750
Total received = R$1000,00

"Buy Price" input can be with wrong value

I can input "Buy Price" on add stock form with wrong value, for example "34.4567898". It does not show as wrong input value. Maximum should be of 2 digits, like "34.45".

Make so that dividends/incomes are only shown for the current stock

Right now, if you add a dividend when selecting "ITUB4 -> Add Dividend", the added values will also show for other stocks like "PETR4".
To fix this, the database needs to store the symbol value for that income and filter in the adapter to only show the incomes for that stock symbol.
Example:

ITUB4:
Dividend R$32.50
03/05/2012

PETR4:
Dividend R$12.43
01/07/2015

Check inputSymbol(string) issue, inserted on INTEGER field

On AddStockFormFragment, inputSymbol (String) is being inserted in a INTEGER field (COLUMN_SYMBOL) and the code is working. Need to check why with a wrong value it is still working, may result in inconsistency in the future.
Check for:

// TODO: Check why inputSymbol(string) is working when COLUMN_SYMBOL is INTEGER

Fix date regex input.

When user is inputting a date, it should automaticly input the "/" character when needed. This can be done by regex function.
Should do for all developed fields already.
Do it in the BaseDialogFragment, so all DialogFragments can use the same function.

Develop "Sell" option on Stock

Need to develop the option for the user to sell a Stock.

For this, it will use the same StockQuote table, but will add a flag field on it saying if operation was "bought" or "sold" stock.
Need to check if user is not selling more stock then he owns.
Example:
Sell 200 Stocks of ITUB4, but owns 100 Stocks of ITUB4. That is an invalid command, because he is selling more stocks than owned.

Current stock list layout is broken

Stock list layout should be improved to fix items alignment.
There are several items being displayed in two lines, instead of one, for example.
Also, some items are being cropped in the sides.

Start Development of fragment to register Bonification.

#Start the development of a fragment to register Bonification.
When clicking on the menu option, the intent will receive the selected stock (EX: PETR4), so the user can register a new Bonification with fields "Date of Receive" "Cost per Stock" "Stocks Received".
After setting values, will add values to that stock profile.

Make the "Moedas"/Currency screen and FormFragment

@allerasouza
This is a task to make the Currency (Moedas) main screen and when clicking the FAB button should appear the FormFragment to add a new Currency.

The CardView layout will need to be discussed for better showing, for now, leave similar to stock and FII CardViews, even if it results in layout breaking.

The Form fields should be:
1 - Select the currency bought (For now only Dolar, Euro, Ouro)
2 - Select the amount bought of that coin (Ex: 1000,00 Dolares)
3 - Portfolio objective (Ex: 20%)
4 - Date of the buy (dd/mm/aaaa)

After clicking "Comprar", a new currency card view should be added.

Tip: Development is similar to that of FII for now.

Start Development of fragment to register Juros sobre Capital.

Start the development of a fragment to register Juros sobre Capital.
When clicking on the menu option, the intent will receive the selected stock (EX: PETR4), so the user can register a new Juros sobre Capital with fields "Date of Receive" "Value per Stock before tax" received.
After setting values, will be saved on database as (Stock, Value/stock, date)

Force close after adding stocks with empty fields in the form

01-29 15:53:28.890 28624 28624 E AndroidRuntime: FATAL EXCEPTION: main
01-29 15:53:28.890 28624 28624 E AndroidRuntime: Process: br.com.carteira, PID: 28624
01-29 15:53:28.890 28624 28624 E AndroidRuntime: java.lang.NumberFormatException: Invalid double: ""
01-29 15:53:28.890 28624 28624 E AndroidRuntime: at java.lang.StringToReal.invalidReal(StringToReal.java:63)
01-29 15:53:28.890 28624 28624 E AndroidRuntime: at java.lang.StringToReal.parseDouble(StringToReal.java:267)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.