Add account start and end date to import/export

This commit is contained in:
Grégory Soutadé
2017-10-29 18:21:53 +01:00
committed by Grégory Soutadé
parent 3684c324c0
commit 397096680c
2 changed files with 6 additions and 1 deletions

View File

@@ -111,6 +111,9 @@ void XMLImportEngine::LoadAccount(const QXmlAttributes& attrs)
ac.blocked = (attrs.value("blocked") == "1");
ac._virtual = (attrs.value("virtual") == "1");
ac.hidden = (attrs.value("hidden") == "1");
ac._default = (attrs.value("default") == "1");
ac.start_date = (QDate::fromString("dd/MM/yyyy", attrs.value("start")));
ac.end_date = (QDate::fromString("dd/MM/yyyy", attrs.value("start")));
UNESCAPE_CHARS(ac.name);
UNESCAPE_CHARS(ac.number);