[GNC-dev] Solved : how to extend the selection of predefined actions on a split
My problem is solved. Due to a hint in the gnucash-de mailing list I have identified the needed files and made the changes successfully. But still wondering how the *.po files are created. They have very regular format and each entry is commented with references to the lines in c-files. That does not seem to be coded by the hand; all the *.po files would be needed to be rewritten if a line would be inserted in one of the c files referenced (what is actually the case with my personal changes). Here is an example from de.po to illustrate what I am talking about: #: gnucash/gnome-utils/gnc-tree-model-split-reg.c:2856 #: gnucash/register/ledger-core/split-register.c:2486 msgid "Withdraw" msgstr "Belastung" Thanks in advance, Paul Am 29.04.2018 um 18:44 schrieb Paul Dest: > Hi, > > I want to add own entries (e.g. "Paul") to the selection of predefined > actions ("Increase", "Decrease", "Sell", "Buy" etc.) on a transaction split. > (Rationale: I want to use the action as an additional select criterium > for reports. Like the classes feature in Quicken; I mean not categories > but classes - I'm aware that the Quicken's categories correspond to > accounts in the double-accounting system.) > > After reviewing all configuration files, it seems to me that the > predefined actions cannot be added to GnuCash after a build. Is that > correct? > > If yes, then I have to make appropriate changes in code and rebuild > GnuCash. A rebuld after additions in .po-files only seems not to have > the desired effect. > Could you please give an advice which files need to be edited for this > change? > > Thanks in advance, > Paul > > ___ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Solved : how to extend the selection of predefined actions on a split
Op maandag 30 april 2018 10:07:47 CEST schreef Paul Dest: > My problem is solved. Due to a hint in the gnucash-de mailing list I > have identified the needed files and made the changes successfully. > > But still wondering how the *.po files are created. They have very > regular format and each entry is commented with references to the lines > in c-files. That does not seem to be coded by the hand; all the *.po > files would be needed to be rewritten if a line would be inserted in one > of the c files referenced (what is actually the case with my personal > changes). Here is an example from de.po to illustrate what I am talking > about: > > #: gnucash/gnome-utils/gnc-tree-model-split-reg.c:2856 > #: gnucash/register/ledger-core/split-register.c:2486 > msgid "Withdraw" > msgstr "Belastung" > > https://wiki.gnucash.org/wiki/Translation#Updating_an_existing_.po_file That page has additional documentation on how to translate gnucash (for which the *.po files are used), gnucash documentation or gnucash account hierarchy templates. Regards, Geert ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] [GNC] Gnucash 3.1 crashes on Windows 10 while loading Reports-Gnome
Hi Peter If you're comfortable patching transaction.scm, here are the changes to enable grouping/subtotals according to either memo or notes. (Not thoroughly tested) C On 30 April 2018 at 14:34, Peter Jackson wrote: > Essentially, > 1) Primary Key = Memo/Notes > 2) Sort on Primary Key > 3) Consolidate Transactions over selected period. The Standard Gnucash > Period offering is fine. > > Regards > > Peter > > > On 29 April 2018 at 23:22, Christopher Lam > wrote: > >> Hi Peter >> >> Just putting out there... Which part of the Consolidated Transaction >> Report is particularly useful? >> >> I think the Transaction Report 3.1 can be augmented to support some of >> them... >> >> HTH >> >> >> On 30/04/18 05:58, John Ralls wrote: >> >>> >>> On Apr 29, 2018, at 12:28 PM, Peter Jackson wrote: Thank you for v 3.1, which on a clean install, opens my gnucash file and runs perfectly. However, if I install it over my existing 2.6.21 application, v3.1 crashes as it is loading ./Reports-Gnome. Of course I want to be able to do this so that I can run my Saved Reports, especially Cindy's excellent Consolidated Transaction report. Will the ability to install over 2.6.21 and convert the reports be addressed in a later release? >>> Sounds like the Doughty reports aren't compatible with the changes in >>> GnuCash's API; I'd guess that it has to do with date handling. They're not >>> part of GnuCash and the GnuCash development team doesn't support them. >>> Since nothing has been heard from the author in almost a year it seems that >>> they're not interested in supporting the reports either. Sorry. >>> >>> Regards, >>> John Ralls >>> >>> >>> ___ >>> gnucash-user mailing list >>> gnucash-u...@gnucash.org >>> To update your subscription preferences or to unsubscribe: >>> https://lists.gnucash.org/mailman/listinfo/gnucash-user >>> If you are using Nabble or Gmane, please see >>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information. >>> - >>> Please remember to CC this list on all your replies. >>> You can do this by using Reply-To-List or Reply-All. >>> >> >> > diff --git a/gnucash/report/standard-reports/transaction.scm b/gnucash/report/standard-reports/transaction.scm index 6dbb8945a..c6d050abf 100644 --- a/gnucash/report/standard-reports/transaction.scm +++ b/gnucash/report/standard-reports/transaction.scm @@ -117,11 +117,13 @@ in the Options panel.")) ;; which a subtotal should be enabled. (define SUBTOTAL-ENABLED (list 'account-name 'corresponding-acc-name 'account-code 'corresponding-acc-code + 'memo 'notes 'reconciled-status)) (define ACCOUNT-SORTING-TYPES (list 'account-name 'corresponding-acc-name 'account-code 'corresponding-acc-code)) -(define CUSTOM-SORTING (list 'reconciled-status)) + +(define CUSTOM-SORTING (list 'notes 'reconciled-status)) (define SORTKEY-INFORMAL-HEADERS (list 'account-name 'account-code)) @@ -227,10 +229,16 @@ in the Options panel.")) (cons 'renderer-fn #f))) (cons 'memo (list (cons 'sortkey (list SPLIT-MEMO)) - (cons 'split-sortvalue #f) + (cons 'split-sortvalue (lambda(a) (xaccSplitGetMemo a))) (cons 'text (_ "Memo")) (cons 'tip (_ "Sort by memo.")) - (cons 'renderer-fn #f))) + (cons 'renderer-fn (lambda (a) (xaccSplitGetMemo a) + +(cons 'notes (list (cons 'sortkey #f) + (cons 'split-sortvalue (lambda (a) (xaccTransGetNotes (xaccSplitGetParent a + (cons 'text (_ "Notes")) + (cons 'tip (_ "Sort by notes.")) + (cons 'renderer-fn (lambda (a) (xaccTransGetNotes (xaccSplitGetParent a)) (cons 'none (list (cons 'sortkey '()) (cons 'split-sortvalue #f) @@ -1418,7 +1426,7 @@ tags within description, notes or memo. ") (render-date date-subtotal-key split)) ((member sortkey ACCOUNT-SORTING-TYPES) (render-account sortkey split anchor?)) - ((eq? sortkey 'reconciled-status) + (else (render-generic sortkey split) (define (render-grand-total) @@ -1808,6 +1816,7 @@ tags within description, notes or memo. ") ((t-number) (lambda (s) (xaccTransGetNum (xaccSplitGetParent s ((register-order) (lambda (s) #f)) ((memo) (lambda (s) (xaccSplitGetMemo s))) + ((notes) (lambda (s) (xaccTransGetNotes (xaccSplitGetParent s ((none)
[GNC-dev] (no subject)
> Message: 6 > Date: Mon, 30 Apr 2018 10:15:29 +0200 > From: Geert Janssens > To: gnucash-devel@gnucash.org > Subject: Re: [GNC-dev] Solved : how to extend the selection of > predefined actions on a split > Message-ID: <1739455.a6lqanb...@legolas.kobaltwit.lan> > Content-Type: text/plain; charset="us-ascii" > > Op maandag 30 april 2018 10:07:47 CEST schreef Paul Dest: >> My problem is solved. Due to a hint in the gnucash-de mailing list I >> have identified the needed files and made the changes successfully. >> >> But still wondering how the *.po files are created. They have very >> regular format and each entry is commented with references to the lines >> in c-files. That does not seem to be coded by the hand; all the *.po >> files would be needed to be rewritten if a line would be inserted in one >> of the c files referenced (what is actually the case with my personal >> changes). Here is an example from de.po to illustrate what I am talking >> about: >> >> #: gnucash/gnome-utils/gnc-tree-model-split-reg.c:2856 >> #: gnucash/register/ledger-core/split-register.c:2486 >> msgid "Withdraw" >> msgstr "Belastung" >> > > https://wiki.gnucash.org/wiki/Translation#Updating_an_existing_.po_file > > That page has additional documentation on how to translate gnucash (for which > the *.po files are used), gnucash documentation or gnucash account hierarchy > templates. > > Regards, > > Geert Hi Paul, Another solution, which does not cause extra work each time you upgrade, would be to program a function key to output "Paul". I haven't tried this myself but I think it should be possible to do this by modifying a gtk3 user configuration file which doesn't get clobbered by an upgrade. See https://wiki.gnucash.org/wiki/GTK3 Regards, Chris Good ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
[GNC-dev] (no subject)
> On 1 May 2018, at 7:06 AM, Chris Good wrote: > >> Message: 6 >> Date: Mon, 30 Apr 2018 10:15:29 +0200 >> From: Geert Janssens >> To: gnucash-devel@gnucash.org >> Subject: Re: [GNC-dev] Solved : how to extend the selection of >> predefined actions on a split >> Message-ID: <1739455.a6lqanb...@legolas.kobaltwit.lan> >> Content-Type: text/plain; charset="us-ascii" >> >> Op maandag 30 april 2018 10:07:47 CEST schreef Paul Dest: >>> My problem is solved. Due to a hint in the gnucash-de mailing list I >>> have identified the needed files and made the changes successfully. >>> >>> But still wondering how the *.po files are created. They have very >>> regular format and each entry is commented with references to the lines >>> in c-files. That does not seem to be coded by the hand; all the *.po >>> files would be needed to be rewritten if a line would be inserted in one >>> of the c files referenced (what is actually the case with my personal >>> changes). Here is an example from de.po to illustrate what I am talking >>> about: >>> >>> #: gnucash/gnome-utils/gnc-tree-model-split-reg.c:2856 >>> #: gnucash/register/ledger-core/split-register.c:2486 >>> msgid "Withdraw" >>> msgstr "Belastung" >>> >> >> https://wiki.gnucash.org/wiki/Translation#Updating_an_existing_.po_file >> >> That page has additional documentation on how to translate gnucash (for >> which >> the *.po files are used), gnucash documentation or gnucash account hierarchy >> templates. >> >> Regards, >> >> Geert > > Hi Paul, > > Another solution, which does not cause extra work each time you upgrade, > would be to program a function key to output "Paul". > I haven't tried this myself but I think it should be possible to do this by > modifying a gtk3 user configuration file which doesn't get clobbered by an > upgrade. > See https://wiki.gnucash.org/wiki/GTK3 > > Regards, Chris Good Sent again with Subject this time which I must have somehow clobbered on my iPad. Sorry. Regards, Chris Good ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Solved : how to extend the selection of predefined actions on a split
> On 1 May 2018, at 7:23 AM, Chris Good wrote: > > > >> On 1 May 2018, at 7:06 AM, Chris Good wrote: >> >>> Message: 6 >>> Date: Mon, 30 Apr 2018 10:15:29 +0200 >>> From: Geert Janssens >>> To: gnucash-devel@gnucash.org >>> Subject: Re: [GNC-dev] Solved : how to extend the selection of >>> predefined actions on a split >>> Message-ID: <1739455.a6lqanb...@legolas.kobaltwit.lan> >>> Content-Type: text/plain; charset="us-ascii" >>> >>> Op maandag 30 april 2018 10:07:47 CEST schreef Paul Dest: My problem is solved. Due to a hint in the gnucash-de mailing list I have identified the needed files and made the changes successfully. But still wondering how the *.po files are created. They have very regular format and each entry is commented with references to the lines in c-files. That does not seem to be coded by the hand; all the *.po files would be needed to be rewritten if a line would be inserted in one of the c files referenced (what is actually the case with my personal changes). Here is an example from de.po to illustrate what I am talking about: #: gnucash/gnome-utils/gnc-tree-model-split-reg.c:2856 #: gnucash/register/ledger-core/split-register.c:2486 msgid "Withdraw" msgstr "Belastung" >>> >>> https://wiki.gnucash.org/wiki/Translation#Updating_an_existing_.po_file >>> >>> That page has additional documentation on how to translate gnucash (for >>> which >>> the *.po files are used), gnucash documentation or gnucash account >>> hierarchy >>> templates. >>> >>> Regards, >>> >>> Geert >> >> Hi Paul, >> >> Another solution, which does not cause extra work each time you upgrade, >> would be to program a function key to output "Paul". >> I haven't tried this myself but I think it should be possible to do this by >> modifying a gtk3 user configuration file which doesn't get clobbered by an >> upgrade. >> See https://wiki.gnucash.org/wiki/GTK3 >> >> Regards, Chris Good > > Sent again with Subject this time which I must have somehow clobbered on my > iPad. Sorry. > > Regards, Chris Good Ah... Problem with missing subject was caused by copying Subject which contained newline. Sorry again... BTW, does the GnuCash mailing list enable threads to continue if "Solved" is used to prefix subject? Regards, Chris Good ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Solved : how to extend the selection of predefined actions on a split
> On Apr 30, 2018, at 2:39 PM, Chris Good wrote: > > >> On 1 May 2018, at 7:23 AM, Chris Good wrote: >> >> >> >>> On 1 May 2018, at 7:06 AM, Chris Good wrote: >>> Message: 6 Date: Mon, 30 Apr 2018 10:15:29 +0200 From: Geert Janssens To: gnucash-devel@gnucash.org Subject: Re: [GNC-dev] Solved : how to extend the selection of predefined actions on a split Message-ID: <1739455.a6lqanb...@legolas.kobaltwit.lan> Content-Type: text/plain; charset="us-ascii" Op maandag 30 april 2018 10:07:47 CEST schreef Paul Dest: > My problem is solved. Due to a hint in the gnucash-de mailing list I > have identified the needed files and made the changes successfully. > > But still wondering how the *.po files are created. They have very > regular format and each entry is commented with references to the lines > in c-files. That does not seem to be coded by the hand; all the *.po > files would be needed to be rewritten if a line would be inserted in one > of the c files referenced (what is actually the case with my personal > changes). Here is an example from de.po to illustrate what I am talking > about: > > #: gnucash/gnome-utils/gnc-tree-model-split-reg.c:2856 > #: gnucash/register/ledger-core/split-register.c:2486 > msgid "Withdraw" > msgstr "Belastung" > https://wiki.gnucash.org/wiki/Translation#Updating_an_existing_.po_file That page has additional documentation on how to translate gnucash (for which the *.po files are used), gnucash documentation or gnucash account hierarchy templates. Regards, Geert >>> >>> Hi Paul, >>> >>> Another solution, which does not cause extra work each time you upgrade, >>> would be to program a function key to output "Paul". >>> I haven't tried this myself but I think it should be possible to do this by >>> modifying a gtk3 user configuration file which doesn't get clobbered by an >>> upgrade. >>> See https://wiki.gnucash.org/wiki/GTK3 >>> >>> Regards, Chris Good >> >> Sent again with Subject this time which I must have somehow clobbered on my >> iPad. Sorry. >> >> Regards, Chris Good > > Ah... Problem with missing subject was caused by copying Subject which > contained newline. Sorry again... > > BTW, does the GnuCash mailing list enable threads to continue if "Solved" is > used to prefix subject? It's just email and just a subject. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Proposed updates to Wiki Build#Ubuntu pages
Jeffrey, Can you copy the cmake command you used to the forum. That looks as though the switch which should be preceded by a "-D" has been interpreted as part of the cmake target. Each swith needs to be preficed by "-D" and followed by a space before any following switches. There also needs to be a space between the last switch and the path to the top level source directory. I am in the process of updating the Ubuntu16.04 page of the Wiki accessible from the Build GnuCash page expanding the description a lot. The command format is illustrated there. I have yet to add a page on how to correctly relative addressing of the top level source directory for cmake for various locations of the build directory which seems to cause problems for new cmake users (it did for me initially). I will try and do that this afternoon. I would move to version 3.1 now that it has been released. I used building and installing it to test out the instructions on the wiki page and it worked fine. It has a lot of bug fixes. David - David Cousens -- Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-Dev-f1435356.html ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] [GNC] Gnucash 3.1 crashes on Windows 10 while loading Reports-Gnome
Hi Peter, the amended report will unlock subtotals and grouping for memo and notes, so, just tick subtotals and see? On Tue, 1 May 2018, 14:16 Peter Jackson wrote: > Dear Chris, > Thank you. I have replaced the previous transaction.scm in C:\Program > Files (x86)\gnucash\share\gnucash\scm\gnucash\report\standard-reports. I > restarted Gnucash. > Unfortunately I can discern no change in the Report Options. > Do I need to do something else? > Peter > > > Nurton Court > Middleton-on-the-Hill > Ludlow SY8 4BD > Tel: 01568 750 248 Mob: 07955 586 476 > > On 30 April 2018 at 22:33, Christopher Lam > wrote: > >> HTH >> >> On 01/05/18 05:14, Peter Jackson wrote: >> >> Dear Chris, I'm sorry, this is beyond my skills. A simple cut and paste, >> I can do. Is it possible you could send the modified transaction.scm >> I'm happy to test it. >> Regards >> Peter >> >> Tel: 01568 750248 <01568%20750248> >> Mob: 07955 586476 <07955%20586476> >> >> -- Original message-- >> *From: *Christopher Lam >> *Date: *Mon, 30 Apr 2018 15:27 >> *To: *Peter Jackson; >> *Cc: *gnucash-devel@gnucash.org; >> *Subject:*Re: [GNC] Gnucash 3.1 crashes on Windows 10 while loading >> Reports-Gnome >> >> Hi Peter >> >> If you're comfortable patching transaction.scm, here are the changes to >> enable grouping/subtotals according to either memo or notes. >> >> (Not thoroughly tested) >> >> C >> >> >> On 30 April 2018 at 14:34, Peter Jackson wrote: >> >>> Essentially, >>> 1) Primary Key = Memo/Notes >>> 2) Sort on Primary Key >>> 3) Consolidate Transactions over selected period. The Standard Gnucash >>> Period offering is fine. >>> >>> Regards >>> >>> Peter >>> >>> >>> On 29 April 2018 at 23:22, Christopher Lam >>> wrote: >>> Hi Peter Just putting out there... Which part of the Consolidated Transaction Report is particularly useful? I think the Transaction Report 3.1 can be augmented to support some of them... HTH On 30/04/18 05:58, John Ralls wrote: > > On Apr 29, 2018, at 12:28 PM, Peter Jackson >> wrote: >> >> Thank you for v 3.1, which on a clean install, opens my gnucash file >> and >> runs perfectly. >> However, if I install it over my existing 2.6.21 application, v3.1 >> crashes >> as it is loading ./Reports-Gnome. >> Of course I want to be able to do this so that I can run my Saved >> Reports, >> especially Cindy's excellent Consolidated Transaction report. >> Will the ability to install over 2.6.21 and convert the reports be >> addressed in a later release? >> > Sounds like the Doughty reports aren't compatible with the changes in > GnuCash's API; I'd guess that it has to do with date handling. They're not > part of GnuCash and the GnuCash development team doesn't support them. > Since nothing has been heard from the author in almost a year it seems > that > they're not interested in supporting the reports either. Sorry. > > Regards, > John Ralls > > > ___ > gnucash-user mailing list > gnucash-u...@gnucash.org > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > If you are using Nabble or Gmane, please see > https://wiki.gnucash.org/wiki/Mailing_Lists for more information. > - > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. > >>> >> >> > ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel