From e0a6d519269022db0d89967dd3b29fc6d36c9ef8 Mon Sep 17 00:00:00 2001 From: Matthieu Dietrich Date: Tue, 21 Jun 2016 10:52:11 +0200 Subject: [PATCH] Set "Transaction_id" field in CSV/XLS file --- .../data/completion_rule_data.xml | 8 ++++---- .../data/statement.csv | 2 +- .../data/statement.xls | Bin 7680 -> 7680 bytes .../models/account_move.py | 16 ++++++++-------- .../parser/transactionid_file_parser.py | 4 ++-- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/account_move_transactionid_import/data/completion_rule_data.xml b/account_move_transactionid_import/data/completion_rule_data.xml index 1f993602..0c1bbd48 100644 --- a/account_move_transactionid_import/data/completion_rule_data.xml +++ b/account_move_transactionid_import/data/completion_rule_data.xml @@ -2,15 +2,15 @@ - Match from Sales Order using transaction ref + Match from Sales Order using transaction ID 30 - get_from_transaction_ref_and_so + get_from_transaction_id_and_so - Match from Invoice using transaction ref + Match from Invoice using transaction ID 40 - get_from_transaction_ref_and_invoice + get_from_transaction_id_and_invoice diff --git a/account_move_transactionid_import/data/statement.csv b/account_move_transactionid_import/data/statement.csv index ecda301b..491df223 100644 --- a/account_move_transactionid_import/data/statement.csv +++ b/account_move_transactionid_import/data/statement.csv @@ -1,4 +1,4 @@ -"transaction_ref";"date";"amount";"commission_amount";"label" +"transaction_id";"date";"amount";"commission_amount";"label" 50969286;2011-03-07 13:45:14;118.4;-11.84;"label a" 51065326;2011-03-05 13:45:14;189;-15.12;"label b" 51179306;2011-03-02 17:45:14;189;-15.12;"label c" diff --git a/account_move_transactionid_import/data/statement.xls b/account_move_transactionid_import/data/statement.xls index 2d1ac86589ad767dddc46a85b8f849fa806d7c7f..b734058bca21505a8f6f5d105734fa34aa6cdea0 100644 GIT binary patch delta 134 zcmZp$X|UOFok!D!jR6Qa7~E1zGjnoM4O|6X`EwZE7hYtX+{j|F PN#X|+ 0.0 and amount or 0.0, 'debit': amount < 0.0 and amount or 0.0, - 'transaction_ref': line.get('transaction_ref', '/'), + 'transaction_ref': line.get('transaction_id', '/'), }