mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use aqbanking's FiId field for correct OFX duplicate matching. #418072, patch by David Reiser.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15868 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0db8a768b4
commit
260dbe55b1
@ -39,6 +39,7 @@
|
||||
#include "dialog-hbcitrans.h"
|
||||
#include "gnc-hbci-kvp.h"
|
||||
#include "dialog-daterange.h"
|
||||
#include "import-utilities.h"
|
||||
|
||||
/* static short module = MOD_IMPORT; */
|
||||
|
||||
@ -261,10 +262,13 @@ AB_TRANSACTION *gnc_hbci_trans_list_cb(AB_TRANSACTION *h_trans, void *user_data)
|
||||
/* Create new gnucash transaction for the given hbci one */
|
||||
gnc_trans = xaccMallocTransaction(book);
|
||||
xaccTransBeginEdit(gnc_trans);
|
||||
|
||||
/*if(data.fi_id_valid==true){
|
||||
gnc_import_set_trans_online_id(gnc_trans, data.fi_id);
|
||||
}*/
|
||||
|
||||
{
|
||||
/* OFX unique transaction ID */
|
||||
const char *fitid = AB_Transaction_GetFiId(h_trans);
|
||||
if (fitid && (strlen (fitid) > 0))
|
||||
gnc_import_set_trans_online_id(gnc_trans, fitid);
|
||||
}
|
||||
|
||||
normalDate = AB_Transaction_GetDate(h_trans);
|
||||
valutaDate = AB_Transaction_GetValutaDate(h_trans);
|
||||
|
Loading…
Reference in New Issue
Block a user