ofxdirectconnect in aqbanking3 branch

David Reiser dbreiser at earthlink.net
Wed Jul 23 17:03:45 EDT 2008


On Jul 23, 2008, at 4:25 PM, David Reiser wrote:

>
> On Jul 23, 2008, at 3:39 PM, Andreas Köhler wrote:
>
>> Hi David,
>>
>> On Mi, 2008-07-23 at 15:36 -0400, David Reiser wrote:
>>> On Jul 23, 2008, at 3:28 PM, Andreas Köhler wrote:
>>>
>>>> Hi David,
>>>>
>>>> On Mi, 2008-07-23 at 14:40 -0400, David Reiser wrote:
>>>>> On Jul 21, 2008, at 4:56 AM, Andreas Köhler wrote:
>>>>>> Does it ask you for the same online id which is showed at the
>>>>>> top of
>>>>>> the chooser?
>>>>>> Typically, it should ask for a combination "bank code" + "account
>>>>>> number" only once.
>>>>>
>>>>> with 17400, gnucash now asks me to select an account for
>>>>> "" (there is
>>>>> nothing on the second line of the dialog heading where the "Credit
>>>>> Card XXXXXXXXXXXX1234" used to appear.
>>>>>
>>>>> And I'm still asked to select an account each time I import
>>>>> transactions.
>>>>
>>>> I simply copied the code available in the hbci import-export
>>>> module to
>>>> determine a gnucash account for an accountinfo in context returned
>>>> by
>>>> aqbanking.  It simply concatenates the bank code and account number
>>>> given, and can be found in
>>>> src/i-e/aqbanking/gnc-ab-utils.c:gnc_ab_accinfo_to_gnc_acc().
>>>>
>>>> It seems as if both these items are empty for you, but I do not  
>>>> know
>>>> whether that is a bug or not. Maybe the bank name could be added as
>>>> well, but the outcome probably depends on whether that field
>>>> contains
>>>> useful data for you.
>>>
>>>
>>> Hmm. Something is not right. Neither the bank code nor the account
>>> number are empty according to the aqbanking setup wizard.
>>
>> I suppose that the numbers visible in the setup wizard are only to
>> considered similar to those returned by the bank when fetching
>> transactions.  But Martin will know it better than me.
>
> I was misunderstanding where the items were being extracted. For a
> credit card account (and probably investment accounts), there will be
> no bank code in the ofx data stream. But the ACCTID does appear, and
> does match exactly.

A couple additional thoughts:

If I delete the BankCode retrieval from your string concatenation  
(leaving only the account number and trailing Null), then I see the  
account number in the select account dialog, and gnucash only asks me  
once to match the account.

To what is the concatenated string compared? The aqbanking wizard  
insists that there be something in the Bank ID field (which I'm pretty  
sure is the bankcode field). So for my credit cards, I've just been  
entering the OFX <FID> field. But the OFX data stream for a credit  
card account will not contain a <BANKID> tag, so if you're comparing  
the concatenated account code from the downloaded data stream with a  
similarly concatenated string from aqbanking's settings.conf, then  
I'll never match.

Dave
--
David Reiser
dbreiser at earthlink.net






More information about the gnucash-devel mailing list