Merge lp:~therp-nl/banking-addons/7.0-fix_post_date_vs_value_date_confusion into lp:banking-addons
- 7.0-fix_post_date_vs_value_date_confusion
- Merge into banking-addons-70
Status: | Merged |
---|---|
Approved by: | Holger Brunn (Therp) |
Approved revision: | 229 |
Merged at revision: | 241 |
Proposed branch: | lp:~therp-nl/banking-addons/7.0-fix_post_date_vs_value_date_confusion |
Merge into: | lp:banking-addons |
Diff against target: |
590 lines (+98/-67) 23 files modified
account_banking/__openerp__.py (+1/-1) account_banking/banking_import_transaction.py (+6/-6) account_banking/i18n/account_banking.pot (+3/-3) account_banking/i18n/da.po (+3/-3) account_banking/i18n/en.po (+3/-3) account_banking/i18n/es_ES.po (+3/-3) account_banking/i18n/hr.po (+3/-3) account_banking/i18n/hu.po (+3/-3) account_banking/i18n/nb.po (+3/-3) account_banking/i18n/nl.po (+5/-5) account_banking/i18n/pt_BR.po (+3/-3) account_banking/i18n/ro.po (+3/-3) account_banking/i18n/tr.po (+3/-3) account_banking/migrations/7.0.0.3/pre-migration.py (+31/-0) account_banking/parsers/models.py (+3/-3) account_banking_camt/camt.py (+1/-1) account_banking_fi_patu/patu.py (+1/-1) account_banking_nl_abnamro/abnamro.py (+4/-4) account_banking_nl_girotel/girotel.py (+2/-2) account_banking_nl_ing/ing.py (+5/-5) account_banking_nl_multibank/multibank.py (+4/-4) account_banking_nl_triodos/triodos.py (+4/-4) account_banking_uk_hsbc/hsbc_mt940.py (+1/-1) |
To merge this branch: | bzr merge lp:~therp-nl/banking-addons/7.0-fix_post_date_vs_value_date_confusion |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Holger Brunn (Therp) | Approve | ||
Yannick Vaucher @ Camptocamp | code review, no tests | Approve | |
Review via email: mp+206683@code.launchpad.net |
Commit message
Description of the change
Disambiguate the terminology concerning post date and value date. The only import filter that distinguished both dates was HBSC, which assigned value date to 'effective_date'. The recent CAMT filter copied this behaviour but as it turns out, the meaning of the value date (or rather the post date) was not honoured in processing the statement lines.
This branch implements using the post date for basically everything: statement line date, base date for determining statement reference, lookup of reconcilable items. To avoid further confusion, I'm applying the well known 'value date' terminology to the column name (migration included).
A basic fix for 6.1, without the column rename is here: https:/
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
Holger Brunn (Therp) (hbrunn) wrote : | # |
#99, #114... contain the old msgid, I guess you have to rerun msgmerge with the updated pot?
#202 No Capital?
On the column renaming: Is that really necessary? Some google told me that 'value date' indeed seems to be the proper term. That's fine. But so is 'Posted date'. So if we rename columns, why not both?
- 227. By Stefan Rijnhart (Opener)
-
[MRG] target branch. Resolved version number conflict
- 228. By Stefan Rijnhart (Opener)
-
[FIX] Capitalize Dutch translation string
- 229. By Stefan Rijnhart (Opener)
-
[UPD] Update translation msgid
Stefan Rijnhart (Opener) (stefan-opener) wrote : | # |
@holger Thanks for the review! I fixed the translations.
Well, the thing with disambiguation is that you only need to clear up one of the terms. Value date has a stronger connotation than the various terminology for date/posted date/execution date. I think the latter are all exchangable. I'm planning on changing the data model in a later proposal so that we only keep the 'value date' next to the standard 'date' field on the bank statement line. Would you be able to live with that for now?
Preview Diff
1 | === modified file 'account_banking/__openerp__.py' | |||
2 | --- account_banking/__openerp__.py 2014-03-17 07:38:04 +0000 | |||
3 | +++ account_banking/__openerp__.py 2014-03-24 11:46:10 +0000 | |||
4 | @@ -26,7 +26,7 @@ | |||
5 | 26 | 26 | ||
6 | 27 | { | 27 | { |
7 | 28 | 'name': 'Account Banking', | 28 | 'name': 'Account Banking', |
9 | 29 | 'version': '0.2', | 29 | 'version': '0.3', |
10 | 30 | 'license': 'AGPL-3', | 30 | 'license': 'AGPL-3', |
11 | 31 | 'author': 'Banking addons community', | 31 | 'author': 'Banking addons community', |
12 | 32 | 'website': 'https://launchpad.net/banking-addons', | 32 | 'website': 'https://launchpad.net/banking-addons', |
13 | 33 | 33 | ||
14 | === modified file 'account_banking/banking_import_transaction.py' | |||
15 | --- account_banking/banking_import_transaction.py 2014-01-21 07:55:55 +0000 | |||
16 | +++ account_banking/banking_import_transaction.py 2014-03-24 11:46:10 +0000 | |||
17 | @@ -74,7 +74,7 @@ | |||
18 | 74 | ('type', '=', 'in_invoice'), | 74 | ('type', '=', 'in_invoice'), |
19 | 75 | ('partner_id', 'child_of', account_info.bank_partner_id.id), | 75 | ('partner_id', 'child_of', account_info.bank_partner_id.id), |
20 | 76 | ('company_id', '=', account_info.company_id.id), | 76 | ('company_id', '=', account_info.company_id.id), |
22 | 77 | ('date_invoice', '=', trans.effective_date), | 77 | ('date_invoice', '=', trans.execution_date), |
23 | 78 | ('reference', '=', reference), | 78 | ('reference', '=', reference), |
24 | 79 | ('amount_total', '=', amount), | 79 | ('amount_total', '=', amount), |
25 | 80 | ] | 80 | ] |
26 | @@ -101,7 +101,7 @@ | |||
27 | 101 | period_id = period_id, | 101 | period_id = period_id, |
28 | 102 | journal_id = account_info.invoice_journal_id.id, | 102 | journal_id = account_info.invoice_journal_id.id, |
29 | 103 | account_id = account_info.bank_partner_id.property_account_payable.id, | 103 | account_id = account_info.bank_partner_id.property_account_payable.id, |
31 | 104 | date_invoice = trans.effective_date, | 104 | date_invoice = trans.execution_date, |
32 | 105 | reference_type = 'none', | 105 | reference_type = 'none', |
33 | 106 | reference = reference, | 106 | reference = reference, |
34 | 107 | name = trans.reference or trans.message, | 107 | name = trans.reference or trans.message, |
35 | @@ -943,7 +943,7 @@ | |||
36 | 943 | 943 | ||
37 | 944 | # Link accounting period | 944 | # Link accounting period |
38 | 945 | period_id = banktools.get_period( | 945 | period_id = banktools.get_period( |
40 | 946 | self.pool, cr, uid, transaction.effective_date, | 946 | self.pool, cr, uid, transaction.execution_date, |
41 | 947 | company, results['log']) | 947 | company, results['log']) |
42 | 948 | if not period_id: | 948 | if not period_id: |
43 | 949 | results['trans_skipped_cnt'] += 1 | 949 | results['trans_skipped_cnt'] += 1 |
44 | @@ -959,7 +959,7 @@ | |||
45 | 959 | else: | 959 | else: |
46 | 960 | values = { | 960 | values = { |
47 | 961 | 'name': '%s.%s' % (transaction.statement, transaction.transaction), | 961 | 'name': '%s.%s' % (transaction.statement, transaction.transaction), |
49 | 962 | 'date': transaction.effective_date, | 962 | 'date': transaction.execution_date, |
50 | 963 | 'amount': transaction.transferred_amount, | 963 | 'amount': transaction.transferred_amount, |
51 | 964 | 'statement_id': transaction.statement_id.id, | 964 | 'statement_id': transaction.statement_id.id, |
52 | 965 | 'note': transaction.message, | 965 | 'note': transaction.message, |
53 | @@ -1290,8 +1290,8 @@ | |||
54 | 1290 | 'reference': fields.char('reference', size=1024), | 1290 | 'reference': fields.char('reference', size=1024), |
55 | 1291 | 'local_account': fields.char('local_account', size=24), | 1291 | 'local_account': fields.char('local_account', size=24), |
56 | 1292 | 'local_currency': fields.char('local_currency', size=16), | 1292 | 'local_currency': fields.char('local_currency', size=16), |
59 | 1293 | 'execution_date': fields.date('execution_date'), | 1293 | 'execution_date': fields.date('Posted date'), |
60 | 1294 | 'effective_date': fields.date('effective_date'), | 1294 | 'value_date': fields.date('Value date'), |
61 | 1295 | 'remote_account': fields.char('remote_account', size=24), | 1295 | 'remote_account': fields.char('remote_account', size=24), |
62 | 1296 | 'remote_currency': fields.char('remote_currency', size=16), | 1296 | 'remote_currency': fields.char('remote_currency', size=16), |
63 | 1297 | 'exchange_rate': fields.float('exchange_rate'), | 1297 | 'exchange_rate': fields.float('exchange_rate'), |
64 | 1298 | 1298 | ||
65 | === modified file 'account_banking/i18n/account_banking.pot' | |||
66 | --- account_banking/i18n/account_banking.pot 2013-11-13 08:13:18 +0000 | |||
67 | +++ account_banking/i18n/account_banking.pot 2014-03-24 11:46:10 +0000 | |||
68 | @@ -288,7 +288,7 @@ | |||
69 | 288 | 288 | ||
70 | 289 | #. module: account_banking | 289 | #. module: account_banking |
71 | 290 | #: field:banking.import.transaction,execution_date:0 | 290 | #: field:banking.import.transaction,execution_date:0 |
73 | 291 | msgid "execution_date" | 291 | msgid "Posted date" |
74 | 292 | msgstr "" | 292 | msgstr "" |
75 | 293 | 293 | ||
76 | 294 | #. module: account_banking | 294 | #. module: account_banking |
77 | @@ -785,8 +785,8 @@ | |||
78 | 785 | msgstr "" | 785 | msgstr "" |
79 | 786 | 786 | ||
80 | 787 | #. module: account_banking | 787 | #. module: account_banking |
83 | 788 | #: field:banking.import.transaction,effective_date:0 | 788 | #: field:banking.import.transaction,value_date:0 |
84 | 789 | msgid "effective_date" | 789 | msgid "Value date" |
85 | 790 | msgstr "" | 790 | msgstr "" |
86 | 791 | 791 | ||
87 | 792 | #. module: account_banking | 792 | #. module: account_banking |
88 | 793 | 793 | ||
89 | === modified file 'account_banking/i18n/da.po' | |||
90 | --- account_banking/i18n/da.po 2014-03-21 06:57:59 +0000 | |||
91 | +++ account_banking/i18n/da.po 2014-03-24 11:46:10 +0000 | |||
92 | @@ -293,7 +293,7 @@ | |||
93 | 293 | 293 | ||
94 | 294 | #. module: account_banking | 294 | #. module: account_banking |
95 | 295 | #: field:banking.import.transaction,execution_date:0 | 295 | #: field:banking.import.transaction,execution_date:0 |
97 | 296 | msgid "execution_date" | 296 | msgid "Posted date" |
98 | 297 | msgstr "" | 297 | msgstr "" |
99 | 298 | 298 | ||
100 | 299 | #. module: account_banking | 299 | #. module: account_banking |
101 | @@ -801,8 +801,8 @@ | |||
102 | 801 | msgstr "" | 801 | msgstr "" |
103 | 802 | 802 | ||
104 | 803 | #. module: account_banking | 803 | #. module: account_banking |
107 | 804 | #: field:banking.import.transaction,effective_date:0 | 804 | #: field:banking.import.transaction,value_date:0 |
108 | 805 | msgid "effective_date" | 805 | msgid "Value date" |
109 | 806 | msgstr "" | 806 | msgstr "" |
110 | 807 | 807 | ||
111 | 808 | #. module: account_banking | 808 | #. module: account_banking |
112 | 809 | 809 | ||
113 | === modified file 'account_banking/i18n/en.po' | |||
114 | --- account_banking/i18n/en.po 2014-03-21 06:57:59 +0000 | |||
115 | +++ account_banking/i18n/en.po 2014-03-24 11:46:10 +0000 | |||
116 | @@ -292,7 +292,7 @@ | |||
117 | 292 | 292 | ||
118 | 293 | #. module: account_banking | 293 | #. module: account_banking |
119 | 294 | #: field:banking.import.transaction,execution_date:0 | 294 | #: field:banking.import.transaction,execution_date:0 |
121 | 295 | msgid "execution_date" | 295 | msgid "Posted date" |
122 | 296 | msgstr "" | 296 | msgstr "" |
123 | 297 | 297 | ||
124 | 298 | #. module: account_banking | 298 | #. module: account_banking |
125 | @@ -807,8 +807,8 @@ | |||
126 | 807 | msgstr "" | 807 | msgstr "" |
127 | 808 | 808 | ||
128 | 809 | #. module: account_banking | 809 | #. module: account_banking |
131 | 810 | #: field:banking.import.transaction,effective_date:0 | 810 | #: field:banking.import.transaction,value_date:0 |
132 | 811 | msgid "effective_date" | 811 | msgid "Value date" |
133 | 812 | msgstr "" | 812 | msgstr "" |
134 | 813 | 813 | ||
135 | 814 | #. module: account_banking | 814 | #. module: account_banking |
136 | 815 | 815 | ||
137 | === modified file 'account_banking/i18n/es_ES.po' | |||
138 | --- account_banking/i18n/es_ES.po 2014-03-21 06:57:59 +0000 | |||
139 | +++ account_banking/i18n/es_ES.po 2014-03-24 11:46:10 +0000 | |||
140 | @@ -293,7 +293,7 @@ | |||
141 | 293 | 293 | ||
142 | 294 | #. module: account_banking | 294 | #. module: account_banking |
143 | 295 | #: field:banking.import.transaction,execution_date:0 | 295 | #: field:banking.import.transaction,execution_date:0 |
145 | 296 | msgid "execution_date" | 296 | msgid "Posted date" |
146 | 297 | msgstr "" | 297 | msgstr "" |
147 | 298 | 298 | ||
148 | 299 | #. module: account_banking | 299 | #. module: account_banking |
149 | @@ -801,8 +801,8 @@ | |||
150 | 801 | msgstr "" | 801 | msgstr "" |
151 | 802 | 802 | ||
152 | 803 | #. module: account_banking | 803 | #. module: account_banking |
155 | 804 | #: field:banking.import.transaction,effective_date:0 | 804 | #: field:banking.import.transaction,value_date:0 |
156 | 805 | msgid "effective_date" | 805 | msgid "Value date" |
157 | 806 | msgstr "" | 806 | msgstr "" |
158 | 807 | 807 | ||
159 | 808 | #. module: account_banking | 808 | #. module: account_banking |
160 | 809 | 809 | ||
161 | === modified file 'account_banking/i18n/hr.po' | |||
162 | --- account_banking/i18n/hr.po 2014-03-21 06:57:59 +0000 | |||
163 | +++ account_banking/i18n/hr.po 2014-03-24 11:46:10 +0000 | |||
164 | @@ -293,7 +293,7 @@ | |||
165 | 293 | 293 | ||
166 | 294 | #. module: account_banking | 294 | #. module: account_banking |
167 | 295 | #: field:banking.import.transaction,execution_date:0 | 295 | #: field:banking.import.transaction,execution_date:0 |
169 | 296 | msgid "execution_date" | 296 | msgid "Posted date" |
170 | 297 | msgstr "" | 297 | msgstr "" |
171 | 298 | 298 | ||
172 | 299 | #. module: account_banking | 299 | #. module: account_banking |
173 | @@ -807,8 +807,8 @@ | |||
174 | 807 | msgstr "" | 807 | msgstr "" |
175 | 808 | 808 | ||
176 | 809 | #. module: account_banking | 809 | #. module: account_banking |
179 | 810 | #: field:banking.import.transaction,effective_date:0 | 810 | #: field:banking.import.transaction,value_date:0 |
180 | 811 | msgid "effective_date" | 811 | msgid "Value date" |
181 | 812 | msgstr "" | 812 | msgstr "" |
182 | 813 | 813 | ||
183 | 814 | #. module: account_banking | 814 | #. module: account_banking |
184 | 815 | 815 | ||
185 | === modified file 'account_banking/i18n/hu.po' | |||
186 | --- account_banking/i18n/hu.po 2014-03-21 06:57:59 +0000 | |||
187 | +++ account_banking/i18n/hu.po 2014-03-24 11:46:10 +0000 | |||
188 | @@ -303,7 +303,7 @@ | |||
189 | 303 | 303 | ||
190 | 304 | #. module: account_banking | 304 | #. module: account_banking |
191 | 305 | #: field:banking.import.transaction,execution_date:0 | 305 | #: field:banking.import.transaction,execution_date:0 |
193 | 306 | msgid "execution_date" | 306 | msgid "Posted date" |
194 | 307 | msgstr "execution_date" | 307 | msgstr "execution_date" |
195 | 308 | 308 | ||
196 | 309 | #. module: account_banking | 309 | #. module: account_banking |
197 | @@ -814,8 +814,8 @@ | |||
198 | 814 | msgstr "" | 814 | msgstr "" |
199 | 815 | 815 | ||
200 | 816 | #. module: account_banking | 816 | #. module: account_banking |
203 | 817 | #: field:banking.import.transaction,effective_date:0 | 817 | #: field:banking.import.transaction,value_date:0 |
204 | 818 | msgid "effective_date" | 818 | msgid "Value date" |
205 | 819 | msgstr "" | 819 | msgstr "" |
206 | 820 | 820 | ||
207 | 821 | #. module: account_banking | 821 | #. module: account_banking |
208 | 822 | 822 | ||
209 | === modified file 'account_banking/i18n/nb.po' | |||
210 | --- account_banking/i18n/nb.po 2014-03-21 06:57:59 +0000 | |||
211 | +++ account_banking/i18n/nb.po 2014-03-24 11:46:10 +0000 | |||
212 | @@ -293,7 +293,7 @@ | |||
213 | 293 | 293 | ||
214 | 294 | #. module: account_banking | 294 | #. module: account_banking |
215 | 295 | #: field:banking.import.transaction,execution_date:0 | 295 | #: field:banking.import.transaction,execution_date:0 |
217 | 296 | msgid "execution_date" | 296 | msgid "Posted date" |
218 | 297 | msgstr "" | 297 | msgstr "" |
219 | 298 | 298 | ||
220 | 299 | #. module: account_banking | 299 | #. module: account_banking |
221 | @@ -801,8 +801,8 @@ | |||
222 | 801 | msgstr "" | 801 | msgstr "" |
223 | 802 | 802 | ||
224 | 803 | #. module: account_banking | 803 | #. module: account_banking |
227 | 804 | #: field:banking.import.transaction,effective_date:0 | 804 | #: field:banking.import.transaction,value_date:0 |
228 | 805 | msgid "effective_date" | 805 | msgid "Value date" |
229 | 806 | msgstr "" | 806 | msgstr "" |
230 | 807 | 807 | ||
231 | 808 | #. module: account_banking | 808 | #. module: account_banking |
232 | 809 | 809 | ||
233 | === modified file 'account_banking/i18n/nl.po' | |||
234 | --- account_banking/i18n/nl.po 2014-03-21 06:57:59 +0000 | |||
235 | +++ account_banking/i18n/nl.po 2014-03-24 11:46:10 +0000 | |||
236 | @@ -301,8 +301,8 @@ | |||
237 | 301 | 301 | ||
238 | 302 | #. module: account_banking | 302 | #. module: account_banking |
239 | 303 | #: field:banking.import.transaction,execution_date:0 | 303 | #: field:banking.import.transaction,execution_date:0 |
242 | 304 | msgid "execution_date" | 304 | msgid "Posted date" |
243 | 305 | msgstr "execution_date" | 305 | msgstr "Boekdatum" |
244 | 306 | 306 | ||
245 | 307 | #. module: account_banking | 307 | #. module: account_banking |
246 | 308 | #: field:banking.import.line,account_id:0 | 308 | #: field:banking.import.line,account_id:0 |
247 | @@ -822,9 +822,9 @@ | |||
248 | 822 | msgstr "Betaalverschil" | 822 | msgstr "Betaalverschil" |
249 | 823 | 823 | ||
250 | 824 | #. module: account_banking | 824 | #. module: account_banking |
254 | 825 | #: field:banking.import.transaction,effective_date:0 | 825 | #: field:banking.import.transaction,value_date:0 |
255 | 826 | msgid "effective_date" | 826 | msgid "Value date" |
256 | 827 | msgstr "effective_date" | 827 | msgstr "Valutadatum" |
257 | 828 | 828 | ||
258 | 829 | #. module: account_banking | 829 | #. module: account_banking |
259 | 830 | #: view:account.bank.statement.line:0 | 830 | #: view:account.bank.statement.line:0 |
260 | 831 | 831 | ||
261 | === modified file 'account_banking/i18n/pt_BR.po' | |||
262 | --- account_banking/i18n/pt_BR.po 2014-03-21 06:57:59 +0000 | |||
263 | +++ account_banking/i18n/pt_BR.po 2014-03-24 11:46:10 +0000 | |||
264 | @@ -293,7 +293,7 @@ | |||
265 | 293 | 293 | ||
266 | 294 | #. module: account_banking | 294 | #. module: account_banking |
267 | 295 | #: field:banking.import.transaction,execution_date:0 | 295 | #: field:banking.import.transaction,execution_date:0 |
269 | 296 | msgid "execution_date" | 296 | msgid "Posted date" |
270 | 297 | msgstr "" | 297 | msgstr "" |
271 | 298 | 298 | ||
272 | 299 | #. module: account_banking | 299 | #. module: account_banking |
273 | @@ -801,8 +801,8 @@ | |||
274 | 801 | msgstr "" | 801 | msgstr "" |
275 | 802 | 802 | ||
276 | 803 | #. module: account_banking | 803 | #. module: account_banking |
279 | 804 | #: field:banking.import.transaction,effective_date:0 | 804 | #: field:banking.import.transaction,value_date:0 |
280 | 805 | msgid "effective_date" | 805 | msgid "Value date" |
281 | 806 | msgstr "" | 806 | msgstr "" |
282 | 807 | 807 | ||
283 | 808 | #. module: account_banking | 808 | #. module: account_banking |
284 | 809 | 809 | ||
285 | === modified file 'account_banking/i18n/ro.po' | |||
286 | --- account_banking/i18n/ro.po 2014-03-21 06:57:59 +0000 | |||
287 | +++ account_banking/i18n/ro.po 2014-03-24 11:46:10 +0000 | |||
288 | @@ -293,7 +293,7 @@ | |||
289 | 293 | 293 | ||
290 | 294 | #. module: account_banking | 294 | #. module: account_banking |
291 | 295 | #: field:banking.import.transaction,execution_date:0 | 295 | #: field:banking.import.transaction,execution_date:0 |
293 | 296 | msgid "execution_date" | 296 | msgid "Posted date" |
294 | 297 | msgstr "" | 297 | msgstr "" |
295 | 298 | 298 | ||
296 | 299 | #. module: account_banking | 299 | #. module: account_banking |
297 | @@ -801,8 +801,8 @@ | |||
298 | 801 | msgstr "" | 801 | msgstr "" |
299 | 802 | 802 | ||
300 | 803 | #. module: account_banking | 803 | #. module: account_banking |
303 | 804 | #: field:banking.import.transaction,effective_date:0 | 804 | #: field:banking.import.transaction,value_date:0 |
304 | 805 | msgid "effective_date" | 805 | msgid "Value date" |
305 | 806 | msgstr "" | 806 | msgstr "" |
306 | 807 | 807 | ||
307 | 808 | #. module: account_banking | 808 | #. module: account_banking |
308 | 809 | 809 | ||
309 | === modified file 'account_banking/i18n/tr.po' | |||
310 | --- account_banking/i18n/tr.po 2014-03-21 06:57:59 +0000 | |||
311 | +++ account_banking/i18n/tr.po 2014-03-24 11:46:10 +0000 | |||
312 | @@ -293,7 +293,7 @@ | |||
313 | 293 | 293 | ||
314 | 294 | #. module: account_banking | 294 | #. module: account_banking |
315 | 295 | #: field:banking.import.transaction,execution_date:0 | 295 | #: field:banking.import.transaction,execution_date:0 |
317 | 296 | msgid "execution_date" | 296 | msgid "Posted date" |
318 | 297 | msgstr "" | 297 | msgstr "" |
319 | 298 | 298 | ||
320 | 299 | #. module: account_banking | 299 | #. module: account_banking |
321 | @@ -801,8 +801,8 @@ | |||
322 | 801 | msgstr "" | 801 | msgstr "" |
323 | 802 | 802 | ||
324 | 803 | #. module: account_banking | 803 | #. module: account_banking |
327 | 804 | #: field:banking.import.transaction,effective_date:0 | 804 | #: field:banking.import.transaction,value_date:0 |
328 | 805 | msgid "effective_date" | 805 | msgid "Value date" |
329 | 806 | msgstr "" | 806 | msgstr "" |
330 | 807 | 807 | ||
331 | 808 | #. module: account_banking | 808 | #. module: account_banking |
332 | 809 | 809 | ||
333 | === added directory 'account_banking/migrations/7.0.0.3' | |||
334 | === added file 'account_banking/migrations/7.0.0.3/pre-migration.py' | |||
335 | --- account_banking/migrations/7.0.0.3/pre-migration.py 1970-01-01 00:00:00 +0000 | |||
336 | +++ account_banking/migrations/7.0.0.3/pre-migration.py 2014-03-24 11:46:10 +0000 | |||
337 | @@ -0,0 +1,31 @@ | |||
338 | 1 | # -*- coding: utf-8 -*- | ||
339 | 2 | ############################################################################## | ||
340 | 3 | # | ||
341 | 4 | # Copyright (C) 2014 Therp BV (<http://therp.nl>). | ||
342 | 5 | # All Rights Reserved | ||
343 | 6 | # | ||
344 | 7 | # This program is free software: you can redistribute it and/or modify | ||
345 | 8 | # it under the terms of the GNU Affero General Public License as | ||
346 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
347 | 10 | # License, or (at your option) any later version. | ||
348 | 11 | # | ||
349 | 12 | # This program is distributed in the hope that it will be useful, | ||
350 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
351 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
352 | 15 | # GNU Affero General Public License for more details. | ||
353 | 16 | # | ||
354 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
355 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
356 | 19 | # | ||
357 | 20 | ############################################################################## | ||
358 | 21 | |||
359 | 22 | def migrate(cr, version): | ||
360 | 23 | if not version: | ||
361 | 24 | return | ||
362 | 25 | |||
363 | 26 | # Rename value date column | ||
364 | 27 | cr.execute( | ||
365 | 28 | """ | ||
366 | 29 | ALTER TABLE banking_import_transaction | ||
367 | 30 | RENAME COLUMN effective_date TO value_date | ||
368 | 31 | """) | ||
369 | 0 | 32 | ||
370 | === modified file 'account_banking/parsers/models.py' | |||
371 | --- account_banking/parsers/models.py 2014-01-05 02:07:34 +0000 | |||
372 | +++ account_banking/parsers/models.py 2014-03-24 11:46:10 +0000 | |||
373 | @@ -86,10 +86,10 @@ | |||
374 | 86 | # The currency the bank used to process the transferred amount | 86 | # The currency the bank used to process the transferred amount |
375 | 87 | 87 | ||
376 | 88 | 'execution_date', | 88 | 'execution_date', |
378 | 89 | # The requested execution date of the action - order date if you like | 89 | # The posted date of the action |
379 | 90 | 90 | ||
382 | 91 | 'effective_date', | 91 | 'value_date', |
383 | 92 | # The real execution date of the action | 92 | # The value date of the action |
384 | 93 | 93 | ||
385 | 94 | 'remote_account', | 94 | 'remote_account', |
386 | 95 | # The account of the other party | 95 | # The account of the other party |
387 | 96 | 96 | ||
388 | === modified file 'account_banking_camt/camt.py' | |||
389 | --- account_banking_camt/camt.py 2014-03-20 11:03:58 +0000 | |||
390 | +++ account_banking_camt/camt.py 2014-03-24 11:46:10 +0000 | |||
391 | @@ -182,7 +182,7 @@ | |||
392 | 182 | """ | 182 | """ |
393 | 183 | entry_details = { | 183 | entry_details = { |
394 | 184 | 'execution_date': self.xpath(node, './ns:BookgDt/ns:Dt')[0].text, | 184 | 'execution_date': self.xpath(node, './ns:BookgDt/ns:Dt')[0].text, |
396 | 185 | 'effective_date': self.xpath(node, './ns:ValDt/ns:Dt')[0].text, | 185 | 'value_date': self.xpath(node, './ns:ValDt/ns:Dt')[0].text, |
397 | 186 | 'transfer_type': self.get_transfer_type(node), | 186 | 'transfer_type': self.get_transfer_type(node), |
398 | 187 | 'transferred_amount': self.parse_amount(node) | 187 | 'transferred_amount': self.parse_amount(node) |
399 | 188 | } | 188 | } |
400 | 189 | 189 | ||
401 | === modified file 'account_banking_fi_patu/patu.py' | |||
402 | --- account_banking_fi_patu/patu.py 2013-04-15 13:59:50 +0000 | |||
403 | +++ account_banking_fi_patu/patu.py 2014-03-24 11:46:10 +0000 | |||
404 | @@ -39,7 +39,7 @@ | |||
405 | 39 | "remote_currency": "currency", | 39 | "remote_currency": "currency", |
406 | 40 | "transferred_amount": "amount", | 40 | "transferred_amount": "amount", |
407 | 41 | "execution_date": "recorddate", | 41 | "execution_date": "recorddate", |
409 | 42 | "effective_date": "paymentdate", | 42 | "value_date": "paymentdate", |
410 | 43 | "transfer_type": "eventtype", | 43 | "transfer_type": "eventtype", |
411 | 44 | "reference": "refnr", | 44 | "reference": "refnr", |
412 | 45 | "eventcode": "eventcode", | 45 | "eventcode": "eventcode", |
413 | 46 | 46 | ||
414 | === modified file 'account_banking_nl_abnamro/abnamro.py' | |||
415 | --- account_banking_nl_abnamro/abnamro.py 2013-10-02 08:56:55 +0000 | |||
416 | +++ account_banking_nl_abnamro/abnamro.py 2014-03-24 11:46:10 +0000 | |||
417 | @@ -67,9 +67,9 @@ | |||
418 | 67 | self.transferred_amount = float( | 67 | self.transferred_amount = float( |
419 | 68 | self.transferred_amount.replace(',', '.')) | 68 | self.transferred_amount.replace(',', '.')) |
420 | 69 | self.execution_date = str2date(self.date, '%Y%m%d') | 69 | self.execution_date = str2date(self.date, '%Y%m%d') |
422 | 70 | self.effective_date = str2date(self.date, '%Y%m%d') | 70 | self.value_date = str2date(self.date, '%Y%m%d') |
423 | 71 | # Set statement_id based on week number | 71 | # Set statement_id based on week number |
425 | 72 | self.statement_id = self.effective_date.strftime('%Yw%W') | 72 | self.statement_id = self.execution_date.strftime('%Yw%W') |
426 | 73 | self.id = str(subno).zfill(4) | 73 | self.id = str(subno).zfill(4) |
427 | 74 | 74 | ||
428 | 75 | class transaction(models.mem_bank_transaction): | 75 | class transaction(models.mem_bank_transaction): |
429 | @@ -77,7 +77,7 @@ | |||
430 | 77 | Implementation of transaction communication class for account_banking. | 77 | Implementation of transaction communication class for account_banking. |
431 | 78 | ''' | 78 | ''' |
432 | 79 | attrnames = ['local_account', 'local_currency', 'transferred_amount', | 79 | attrnames = ['local_account', 'local_currency', 'transferred_amount', |
434 | 80 | 'blob', 'execution_date', 'effective_date', 'id', | 80 | 'blob', 'execution_date', 'value_date', 'id', |
435 | 81 | ] | 81 | ] |
436 | 82 | 82 | ||
437 | 83 | type_map = { | 83 | type_map = { |
438 | @@ -369,7 +369,7 @@ | |||
439 | 369 | msg = transaction_message(line, subno) | 369 | msg = transaction_message(line, subno) |
440 | 370 | if not statement_id: | 370 | if not statement_id: |
441 | 371 | statement_id = self.get_unique_statement_id( | 371 | statement_id = self.get_unique_statement_id( |
443 | 372 | cr, msg.effective_date.strftime('%Yw%W')) | 372 | cr, msg.execution_date.strftime('%Yw%W')) |
444 | 373 | msg.statement_id = statement_id | 373 | msg.statement_id = statement_id |
445 | 374 | if stmnt: | 374 | if stmnt: |
446 | 375 | stmnt.import_transaction(msg) | 375 | stmnt.import_transaction(msg) |
447 | 376 | 376 | ||
448 | === modified file 'account_banking_nl_girotel/girotel.py' | |||
449 | --- account_banking_nl_girotel/girotel.py 2013-08-02 12:51:00 +0000 | |||
450 | +++ account_banking_nl_girotel/girotel.py 2014-03-24 11:46:10 +0000 | |||
451 | @@ -120,7 +120,7 @@ | |||
452 | 120 | self.remote_account = self.remote_account.zfill(10) | 120 | self.remote_account = self.remote_account.zfill(10) |
453 | 121 | else: | 121 | else: |
454 | 122 | self.remote_account = False | 122 | self.remote_account = False |
456 | 123 | self.execution_date = self.effective_date = self.date | 123 | self.execution_date = self.value_date = self.date |
457 | 124 | self.remote_owner = self.remote_owner.rstrip() | 124 | self.remote_owner = self.remote_owner.rstrip() |
458 | 125 | self.message = self.message.rstrip() | 125 | self.message = self.message.rstrip() |
459 | 126 | self.genid() | 126 | self.genid() |
460 | @@ -137,7 +137,7 @@ | |||
461 | 137 | ''' | 137 | ''' |
462 | 138 | attrnames = [ 'statement_id', 'remote_account', 'remote_owner', | 138 | attrnames = [ 'statement_id', 'remote_account', 'remote_owner', |
463 | 139 | 'remote_currency', 'transferred_amount', 'execution_date', | 139 | 'remote_currency', 'transferred_amount', 'execution_date', |
465 | 140 | 'effective_date', 'transfer_type', 'message', | 140 | 'value_date', 'transfer_type', 'message', |
466 | 141 | ] | 141 | ] |
467 | 142 | 142 | ||
468 | 143 | type_map = { | 143 | type_map = { |
469 | 144 | 144 | ||
470 | === modified file 'account_banking_nl_ing/ing.py' | |||
471 | --- account_banking_nl_ing/ing.py 2013-06-05 12:30:03 +0000 | |||
472 | +++ account_banking_nl_ing/ing.py 2014-03-24 11:46:10 +0000 | |||
473 | @@ -68,10 +68,10 @@ | |||
474 | 68 | if self.debcred == 'Af': | 68 | if self.debcred == 'Af': |
475 | 69 | self.transferred_amount = -self.transferred_amount | 69 | self.transferred_amount = -self.transferred_amount |
476 | 70 | try: | 70 | try: |
478 | 71 | self.execution_date = self.effective_date = str2date(self.date, '%Y%m%d') | 71 | self.execution_date = self.value_date = str2date(self.date, '%Y%m%d') |
479 | 72 | except ValueError: | 72 | except ValueError: |
482 | 73 | self.execution_date = self.effective_date = str2date(self.date, '%d-%m-%Y') | 73 | self.execution_date = self.value_date = str2date(self.date, '%d-%m-%Y') |
483 | 74 | self.statement_id = '' #self.effective_date.strftime('%Yw%W') | 74 | self.statement_id = '' #self.value_date.strftime('%Yw%W') |
484 | 75 | self.id = str(subno).zfill(4) | 75 | self.id = str(subno).zfill(4) |
485 | 76 | self.reference = '' | 76 | self.reference = '' |
486 | 77 | # Normalize basic account numbers | 77 | # Normalize basic account numbers |
487 | @@ -85,7 +85,7 @@ | |||
488 | 85 | ''' | 85 | ''' |
489 | 86 | attrnames = ['local_account', 'remote_account', | 86 | attrnames = ['local_account', 'remote_account', |
490 | 87 | 'remote_owner', 'transferred_amount', | 87 | 'remote_owner', 'transferred_amount', |
492 | 88 | 'execution_date', 'effective_date', 'transfer_type', | 88 | 'execution_date', 'value_date', 'transfer_type', |
493 | 89 | 'id', 'reference', 'statement_id', 'message', | 89 | 'id', 'reference', 'statement_id', 'message', |
494 | 90 | ] | 90 | ] |
495 | 91 | 91 | ||
496 | @@ -279,7 +279,7 @@ | |||
497 | 279 | msg = transaction_message(line, subno) | 279 | msg = transaction_message(line, subno) |
498 | 280 | if not statement_id: | 280 | if not statement_id: |
499 | 281 | statement_id = self.get_unique_statement_id( | 281 | statement_id = self.get_unique_statement_id( |
501 | 282 | cr, msg.effective_date.strftime('%Yw%W')) | 282 | cr, msg.execution_date.strftime('%Yw%W')) |
502 | 283 | msg.statement_id = statement_id | 283 | msg.statement_id = statement_id |
503 | 284 | if stmnt: | 284 | if stmnt: |
504 | 285 | stmnt.import_transaction(msg) | 285 | stmnt.import_transaction(msg) |
505 | 286 | 286 | ||
506 | === modified file 'account_banking_nl_multibank/multibank.py' | |||
507 | --- account_banking_nl_multibank/multibank.py 2013-04-15 13:59:50 +0000 | |||
508 | +++ account_banking_nl_multibank/multibank.py 2014-03-24 11:46:10 +0000 | |||
509 | @@ -44,7 +44,7 @@ | |||
510 | 44 | attrnames = [ | 44 | attrnames = [ |
511 | 45 | 'date', 'local_account', 'remote_account', 'remote_owner', 'u1', 'u2', | 45 | 'date', 'local_account', 'remote_account', 'remote_owner', 'u1', 'u2', |
512 | 46 | 'u3', 'local_currency', 'start_balance', 'remote_currency', | 46 | 'u3', 'local_currency', 'start_balance', 'remote_currency', |
514 | 47 | 'transferred_amount', 'execution_date', 'effective_date', 'nr1', | 47 | 'transferred_amount', 'execution_date', 'value_date', 'nr1', |
515 | 48 | 'transfer_type', 'nr2', 'reference', 'message', 'statement_id' | 48 | 'transfer_type', 'nr2', 'reference', 'message', 'statement_id' |
516 | 49 | ] | 49 | ] |
517 | 50 | 50 | ||
518 | @@ -82,7 +82,7 @@ | |||
519 | 82 | self.start_balance = float(self.start_balance) | 82 | self.start_balance = float(self.start_balance) |
520 | 83 | self.transferred_amount = float(self.transferred_amount) | 83 | self.transferred_amount = float(self.transferred_amount) |
521 | 84 | self.execution_date = str2date(self.execution_date, '%d-%m-%Y') | 84 | self.execution_date = str2date(self.execution_date, '%d-%m-%Y') |
523 | 85 | self.effective_date = str2date(self.effective_date, '%d-%m-%Y') | 85 | self.value_date = str2date(self.value_date, '%d-%m-%Y') |
524 | 86 | self.id = str(subno).zfill(4) | 86 | self.id = str(subno).zfill(4) |
525 | 87 | 87 | ||
526 | 88 | class transaction(models.mem_bank_transaction): | 88 | class transaction(models.mem_bank_transaction): |
527 | @@ -91,7 +91,7 @@ | |||
528 | 91 | ''' | 91 | ''' |
529 | 92 | attrnames = ['local_account', 'local_currency', 'remote_account', | 92 | attrnames = ['local_account', 'local_currency', 'remote_account', |
530 | 93 | 'remote_owner', 'remote_currency', 'transferred_amount', | 93 | 'remote_owner', 'remote_currency', 'transferred_amount', |
532 | 94 | 'execution_date', 'effective_date', 'transfer_type', | 94 | 'execution_date', 'value_date', 'transfer_type', |
533 | 95 | 'reference', 'message', 'statement_id', 'id', | 95 | 'reference', 'message', 'statement_id', 'id', |
534 | 96 | ] | 96 | ] |
535 | 97 | 97 | ||
536 | @@ -152,7 +152,7 @@ | |||
537 | 152 | have their transfer_type set to 'OPN'. | 152 | have their transfer_type set to 'OPN'. |
538 | 153 | ''' | 153 | ''' |
539 | 154 | return (self.transferred_amount and self.execution_date and | 154 | return (self.transferred_amount and self.execution_date and |
541 | 155 | self.effective_date) and ( | 155 | self.value_date) and ( |
542 | 156 | self.remote_account or | 156 | self.remote_account or |
543 | 157 | self.transfer_type in [ | 157 | self.transfer_type in [ |
544 | 158 | 'KST', 'PRV', 'BTL', 'BEA', 'OPN', 'KNT', 'DIV', | 158 | 'KST', 'PRV', 'BTL', 'BEA', 'OPN', 'KNT', 'DIV', |
545 | 159 | 159 | ||
546 | === modified file 'account_banking_nl_triodos/triodos.py' | |||
547 | --- account_banking_nl_triodos/triodos.py 2013-11-17 19:15:43 +0000 | |||
548 | +++ account_banking_nl_triodos/triodos.py 2014-03-24 11:46:10 +0000 | |||
549 | @@ -65,8 +65,8 @@ | |||
550 | 65 | if self.debcred == 'Debet': | 65 | if self.debcred == 'Debet': |
551 | 66 | self.transferred_amount = -self.transferred_amount | 66 | self.transferred_amount = -self.transferred_amount |
552 | 67 | self.execution_date = str2date(self.date, '%d-%m-%Y') | 67 | self.execution_date = str2date(self.date, '%d-%m-%Y') |
555 | 68 | self.effective_date = str2date(self.date, '%d-%m-%Y') | 68 | self.value_date = str2date(self.date, '%d-%m-%Y') |
556 | 69 | self.statement_id = '' # self.effective_date.strftime('%Yw%W') # Set statement_id based on week number | 69 | self.statement_id = '' |
557 | 70 | self.id = str(subno).zfill(4) | 70 | self.id = str(subno).zfill(4) |
558 | 71 | # Normalize basic account numbers | 71 | # Normalize basic account numbers |
559 | 72 | self.remote_account = self.remote_account.replace('.', '').zfill(10) | 72 | self.remote_account = self.remote_account.replace('.', '').zfill(10) |
560 | @@ -78,7 +78,7 @@ | |||
561 | 78 | ''' | 78 | ''' |
562 | 79 | attrnames = ['local_account', 'remote_account', | 79 | attrnames = ['local_account', 'remote_account', |
563 | 80 | 'remote_owner', 'transferred_amount', | 80 | 'remote_owner', 'transferred_amount', |
565 | 81 | 'execution_date', 'effective_date', 'transfer_type', | 81 | 'execution_date', 'value_date', 'transfer_type', |
566 | 82 | 'reference', 'id', | 82 | 'reference', 'id', |
567 | 83 | ] | 83 | ] |
568 | 84 | 84 | ||
569 | @@ -212,7 +212,7 @@ | |||
570 | 212 | msg = transaction_message(line, subno) | 212 | msg = transaction_message(line, subno) |
571 | 213 | if not statement_id: | 213 | if not statement_id: |
572 | 214 | statement_id = self.get_unique_statement_id( | 214 | statement_id = self.get_unique_statement_id( |
574 | 215 | cr, msg.effective_date.strftime('%Yw%W')) | 215 | cr, msg.execution_date.strftime('%Yw%W')) |
575 | 216 | msg.statement_id = statement_id | 216 | msg.statement_id = statement_id |
576 | 217 | if stmnt: | 217 | if stmnt: |
577 | 218 | stmnt.import_transaction(msg) | 218 | stmnt.import_transaction(msg) |
578 | 219 | 219 | ||
579 | === modified file 'account_banking_uk_hsbc/hsbc_mt940.py' | |||
580 | --- account_banking_uk_hsbc/hsbc_mt940.py 2012-04-30 17:11:56 +0000 | |||
581 | +++ account_banking_uk_hsbc/hsbc_mt940.py 2014-03-24 11:46:10 +0000 | |||
582 | @@ -40,7 +40,7 @@ | |||
583 | 40 | 40 | ||
584 | 41 | mapping = { | 41 | mapping = { |
585 | 42 | 'execution_date' : 'valuedate', | 42 | 'execution_date' : 'valuedate', |
587 | 43 | 'effective_date' : 'valuedate', | 43 | 'value_date' : 'valuedate', |
588 | 44 | 'local_currency' : 'currency', | 44 | 'local_currency' : 'currency', |
589 | 45 | 'transfer_type' : 'bookingcode', | 45 | 'transfer_type' : 'bookingcode', |
590 | 46 | 'reference' : 'custrefno', | 46 | 'reference' : 'custrefno', |
LGTM
Thanks