forked from OCA/bank-statement-import
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'refs/pull/515/head' of https://github.com/oca/bank-stat…
…ement-import into 13.0-2348
- Loading branch information
Showing
11 changed files
with
357 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
account_bank_statement_import_txt_xlsx/migrations/13.0.1.0.5/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.logged_query( | ||
env.cr, | ||
""" | ||
UPDATE account_bank_statement_import_sheet_mapping | ||
SET amount_type = 'absolute_value' | ||
WHERE debit_credit_column IS NOT NULL; | ||
""", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
account_bank_statement_import_txt_xlsx/tests/fixtures/meta_data_separated_credit_debit.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Bank code : 1001010101,Agency Code : 10000,Download start date : 01/04/2020,Download end date : 02/04/2020,, | ||
Account Number : 08088804068,Account Name : Account Owner,: EUR,,, | ||
,,,,, | ||
Balance at end of period,,,,"+31070,11", | ||
Date,Operation Number,Label,Debit,Credit,Detail | ||
01/04/20,UNIQUE OP 1,LABEL 1,"-50,00",,DETAILS 1 | ||
01/04/20,UNIQUE OP 2,LABEL 2,"-100,00",,CLIENTS X | ||
02/04/20,UNIQUE OP 3,LABEL 3,"-80,68",,DETAILS 2 | ||
02/04/20,UNIQUE OP 4,LABEL 4,,"1300,00",DETAILS 3 | ||
Balance at start of period,,,,"+30000,77", |
Binary file added
BIN
+5.23 KB
account_bank_statement_import_txt_xlsx/tests/fixtures/meta_data_separated_credit_debit.xlsx
Binary file not shown.
Oops, something went wrong.