[GNC-dev] KVP's

Geert Janssens geert.gnucash at kobaltwit.be
Sat Sep 11 04:47:24 EDT 2021


Upon re-reading in more detail I find it is exactly your idea to make it 
depend on the account-id. I am not sure how this interacts with the csv 
importer. So perhaps all of my reservations are moot.

Regards,

Geert

Op zaterdag 11 september 2021 10:44:18 CEST schreef Geert Janssens:
> Hi Chris,
> 
> I haven't followed the original issue discussion in detail so I can only add
> some generic considerations.
> 
> The generic import transaction matcher is used by both the OFX and the csv
> importer (and perhaps even by the aqbanking one as well). So your option
> would affect all of these.
> 
> Saving this value just like that would mean it will define behaviour of all
> two or three importers at once. Imagine a user imports in three different
> formats depending on the bank to import from, would it then be desirable to
> have this option set for all different banks ? Or would it be more desirable
> to have it apply only to specific bank accounts ? The latter could even be
> the case if a user imports ofx data from two different banks. Perhaps only
> for one bank you'd want this override and not for the other ?
> 
> In other words my concern is that making it a single book level option may
> be too generic and while it would reduce effort in the use case you have in
> mind it may increase effort in other scenarios.
> 
> Regards,
> 
> Geert
> 
> Op zaterdag 11 september 2021 10:22:07 CEST schreef Chris Good:
> > Hi,
> > 
> > 
> > 
> > I'm working on adding an "Append" checkbox to the bottom of the "Generic
> > import transaction matcher" so that when Update+Clear'ing
> > 
> > a matched transaction, the imported Trans->Desc and Trans->Notes can be
> > optionally appended to the matched transaction Desc/Notes
> > 
> > instead of overriding them.
> > 
> > 
> > 
> > I'd like to store the value of the checkbox (True or False) for the
> > imported account so that in the next import, it will default to the same
> > value.
> > 
> > 
> > 
> > I'm thinking this should be a KVP, either:
> > 
> > 1.	A New slot under the account or
> > 2.	Add a pipe symbol and the True or False value to the end of the
> > account "online_id" slot
> > 
> > 
> > 
> > I assume a new slot would be backwards compatible with older versions of
> > GnuCash as they would just be ignored.
> > 
> > 
> > 
> > Is a new slot the way to go? Any hints on how to do this please?
> > 
> > 
> > 
> > Regards,
> > 
> > Chris Good
> > 
> > 
> > 
> > _______________________________________________
> > gnucash-devel mailing list
> > gnucash-devel at gnucash.org
> > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel






More information about the gnucash-devel mailing list