Skip to content

Commit

Permalink
Add german tax changes to the database.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragotin committed Jul 25, 2020
1 parent 1244bd3 commit a299ac1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions database/mysql/migration/22_dbmigrate.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


INSERT INTO taxes (fullTax, reducedTax, startDate) VALUES (16.0, 5.0, '2020-07-01');
INSERT INTO taxes (fullTax, reducedTax, startDate) VALUES (19.0, 7.0, '2021-01-01');

5 changes: 5 additions & 0 deletions database/sqlite3/migration/22_dbmigrate.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


INSERT INTO taxes (fullTax, reducedTax, startDate) VALUES (16.0, 5.0, '2020-07-01');
INSERT INTO taxes (fullTax, reducedTax, startDate) VALUES (19.0, 7.0, '2021-01-01');

5 changes: 3 additions & 2 deletions src/setupassistant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ SqLiteDetailsPage::SqLiteDetailsPage(QWidget *parent)
registerField("SqliteStorageFile", ui._fileName);

// Preset the sqlite storage
if( ! DatabaseSettings::self()->dbFile().isEmpty()) {
const QString fileName = DatabaseSettings::self()->dbFile();
if( ! fileName.isEmpty()) {
ui.mRbCustom->setChecked(true);
setField("SqliteStorageFile", DatabaseSettings::self()->dbFile());
setField("SqliteStorageFile", fileName);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

#define KRAFT_CODENAME "Gunny"

#define KRAFT_REQUIRED_SCHEMA_VERSION 21
#define KRAFT_REQUIRED_SCHEMA_VERSION 22

0 comments on commit a299ac1

Please sign in to comment.