Browse Source
[FIX] float parsing in paypal import
[FIX] float parsing in paypal import
In English version of the files, paypal uses ',' as thousands separator and '.' as decimal separator -> the previous code would populate the bank statement with wrong values without complaining. We fix this by allowing to configure the separators in the paypal map.pull/207/head
Alexandre Fayolle
6 years ago
committed by
Victor Martin
6 changed files with 71 additions and 16 deletions
-
4account_bank_statement_import_paypal/data/paypal_map_data.xml
-
46account_bank_statement_import_paypal/models/account_bank_statement_import_paypal_map.py
-
4account_bank_statement_import_paypal/tests/paypal_en.csv
-
10account_bank_statement_import_paypal/tests/test_paypal_statement_import.py
-
2account_bank_statement_import_paypal/views/paypal_map_views.xml
-
21account_bank_statement_import_paypal/wizards/account_bank_statement_import_paypal.py
@ -1,3 +1,3 @@ |
|||
"Date","Time","Time Zone","Description","Currency","Gross","Fee ","Net","Balance","Transaction ID","From Email Address","Name","Bank Name","Bank Account","Shipping and Handling Amount","Sales Tax","Invoice ID","Reference Txn ID" |
|||
"12/15/2018","20:07:53","CET","Your best supplier","USD","-33,50","-2,3","-31,2","-31,2","53820712527632627","","John Doe","Bank of America","123456789","0","0","INV25","23" |
|||
"12/15/2018","22:07:53","CET","Your payment","USD","525","0","525","493,80","34731322767782103","","Agrolait","","","0","0","INV/2019/0003","24" |
|||
"12/15/2018","20:07:53","CET","Your best supplier","USD","-33.50","-2.3","-31.2","-31.2","53820712527632627","","John Doe","Bank of America","123456789","0","0","INV25","23" |
|||
"12/15/2018","22:07:53","CET","Your payment","USD","1,525.00","0","1,525.00","1,493.80","34731322767782103","","Agrolait","","","0","0","INV/2019/0003","24" |
Write
Preview
Loading…
Cancel
Save
Reference in new issue