Commit 5167bbab authored by Stephane Mankowski's avatar Stephane Mankowski
Browse files

BUG: 296839: mt940 import mode not yet implemented

parent 9cd66b0b
......@@ -116,11 +116,12 @@ SKGError SKGImportPluginMT940::importFile()
QString name = "MT940";
QString number = name;
if (vals.count() == 2) {
name = vals.at(0);
bankName = vals.at(0);
number = vals.at(1);
name = number;
} else if (vals.count() == 1) {
name = vals.at(0);
number = vals.at(0);
name = number;
}
//Search if account is already existing
......
......@@ -51,7 +51,7 @@ int main(int argc, char** argv)
{
SKGAccountObject account(&document1);
SKGTESTERROR("MT940.setName", account.setName("BILLLULLXXX"), true);
SKGTESTERROR("MT940.setName", account.setName("NUMERO DE COMPTE IBAN 2"), true);
SKGTESTERROR("MT940.load", account.load(), true);
SKGTEST("GSB:getCurrentAmount", SKGServices::doubleToString(account.getCurrentAmount()), "11.4");
}
......@@ -72,7 +72,7 @@ int main(int argc, char** argv)
{
SKGAccountObject account(&document1);
SKGTESTERROR("MT940.setName", account.setName("00012345"), true);
SKGTESTERROR("MT940.setName", account.setName("12345.12"), true);
SKGTESTERROR("MT940.load", account.load(), true);
SKGTEST("GSB:getCurrentAmount", SKGServices::doubleToString(account.getCurrentAmount()), "12145.12");
}
......@@ -93,7 +93,7 @@ int main(int argc, char** argv)
{
SKGAccountObject account(&document1);
SKGTESTERROR("MT940.setName", account.setName("80007777"), true);
SKGTESTERROR("MT940.setName", account.setName("2602272001"), true);
SKGTESTERROR("MT940.load", account.load(), true);
SKGTEST("GSB:getCurrentAmount", SKGServices::doubleToString(account.getCurrentAmount()), "-12.56");
}
......@@ -114,7 +114,7 @@ int main(int argc, char** argv)
{
SKGAccountObject account(&document1);
SKGTESTERROR("MT940.setName", account.setName("00011111"), true);
SKGTESTERROR("MT940.setName", account.setName("55555.55"), true);
SKGTESTERROR("MT940.load", account.load(), true);
SKGTEST("GSB:getCurrentAmount", SKGServices::doubleToString(account.getCurrentAmount()), "1972.1");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment