Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Final Balance Variable #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

prschorn
Copy link

Adiciona Variável "Final Balance" para leitura rápida do valor de saldo parcial baseado na última transação, que está situado no nó "BALAMT".

@leonardomelosantos
Copy link
Owner

Tem um trecho em que se faz necessário trocar vírgula por ponto. Como existem alguns arquivos de extrato, cujo valor da moeda está em formado americano, um dos trechos de código que você sugeriu, merece que pensemos juntos numa melhor solução. O que achas?

ModelManifest.xml
/.vs/OFXParser/v16/Server/sqlite3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need this file?

@@ -376,7 +381,7 @@ private static double GetTransactionValue(string value, Extract extract)
double returnValue = 0;
try
{
returnValue = Convert.ToDouble(value.Replace('.', ','));
returnValue = Convert.ToDouble(value.Replace(',', '.'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs invariant culture, because other countries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants