how exactly to do unit testing in scheme...

2018-01-24 Thread Christopher Lam
Dear Devel To rgmerk: Welcome back, and it was a nice to meet irl! While simplifying transaction.scm and thinking of unit testing, I now have a conundrum worthy of an expert view. The reports require 2 main functions – the options generator and the renderer; the options generator generates a

Re: how exactly to do unit testing in scheme...

2018-01-28 Thread Christopher Lam
f > the controller but also allows error and other paths to be tested. > > On Wed, Jan 24, 2018 at 11:03 AM, Christopher Lam < > christopher@gmail.com> wrote: > >> Dear Devel >> >> To rgmerk: Welcome back, and it was a nice to meet irl! >> >> W

Future allocated money, aka Envelope Budgeting

2018-01-31 Thread Christopher Lam
Hi Matt- I thought this should move to the devel list, because of technical details, and this discussion will be very speculative. I had a thought about how envelope budgeting could work: "divide your paycheck into separate envelopes for different purposes". A solution: *Create another type o

Re: Future allocated money, aka Envelope Budgeting

2018-02-01 Thread Christopher Lam
Adrien Monteleone wrote: On Jan 31, 2018, at 2:48 PM, Phil Longstaff wrote: On Wed, Jan 31, 2018 at 11:35 AM, Adrien Monteleone mailto:adrien.montele...@gmail.com>> wrote: On Jan 31, 2018, at 10:09 AM, Christopher Lam mailto:christopher@gmail.com>> wrote: Hi Matt- I thought t

Re: Future allocated money, aka Envelope Budgeting

2018-02-02 Thread Christopher Lam
er way I'd be grateful if some pointers could be offered? Even if code, UI and reports are not completed in time for 3.0, it would be nice to formalize the schema 3.0 release? I may be able to do TDD for this @rgmerk Thanks! On 01/02/18 22:45, Adrien Monteleone wrote: On Feb 1, 2018, at 8

Re: Future allocated money, aka Envelope Budgeting

2018-02-04 Thread Christopher Lam
Hi Wm I wished to experiment in what budgeting should look like by using the existing engine, UI, and reporting infrastructure. It's actually not that difficult to create a 'budget balance calculator'; whether it meets the needs for everyone is another matter. But for people who wish to expe

Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-02-05 Thread Christopher Lam
Hi Di Mang I agree bug exists - would you be able to file bug report? We'd need to investigate category-barchart.scm On 06/02/18 05:24, Di Mang wrote: Hello all, I have investigated this problem further in the last few days. I think, it doesn't depend on some special version of GnuCash. For

Re: RFP: Generic Comparison Report

2018-02-09 Thread Christopher Lam
Hi D Wish to move to devel, technical and policy details abound. There's already work done to enable periodic subtotals comparison. This feature has been named "Subtotal Summary Grid". This is done by reusing and augmenting the (most excellent) transaction report's grouping and subtotals. I'm

Re: how exactly to do unit testing in scheme...

2018-02-12 Thread Christopher Lam
ake over the maintenance): http://burtleburtle.net/bob/math/jenny.html Hope this helps, and feel free to ask more questions. I will try to respond more promptly! On Thu, Jan 25, 2018 at 3:03 AM, Christopher Lam wrote: Dear Devel To rgmerk: Welcome back, and it was a nice to meet irl! While

Re: Scope of GNUCash

2018-02-13 Thread Christopher Lam
Hi Adrien - from someone who jumped head first into scheme, come on in :) the water's warm, and the old guard are very happy to help you implement your wishlist. Meanwhile you'll soon see for yourself what the project needs and can dabble in too. Scheme currently needs lots of refactoring and tests

Re: trial balance - how to find mismatch question

2018-02-15 Thread Christopher Lam
Hi Adrien, could you distil this to a minimal test file and submit in a bug report and include relevant report and report parameters? C On 16 Feb 2018 10:09, "Adrien Monteleone" wrote: > How timely. > > Any way to solve this or do I just chalk it up? > > Regards, > Adrien > > > On Feb 15, 2018,

Re: trial balance - how to find mismatch question

2018-02-16 Thread Christopher Lam
ween IMBALANCE-XXX (an indication that you > > have transactions that lacked a balancing split) and the Imbalance entry > in > > the Trial Balance report. This latter most likely indicates (as David C. > > has hinted) that your books have capital or currency gains or losses that > &

Re: Scope of GNUCash

2018-02-16 Thread Christopher Lam
Hi Matt Thank you very much for documentation efforts. FWIW I still prefer virtual transactions which are ridiculously easy to generate, and to keep up to date. The challenge is not technical, but it's the mindshare. I've sat through YNAB videos long enough to understand how it works. It is a

Re: [GNC-dev] [GNC] Gnucash 3.1 crashes on Windows 10 while loading Reports-Gnome

2018-04-29 Thread Christopher Lam
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: Than

Re: [GNC-dev] [GNC] Gnucash 3.1 crashes on Windows 10 while loading Reports-Gnome

2018-04-30 Thread Christopher Lam
rimary 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

Re: [GNC-dev] [GNC] Gnucash 3.1 crashes on Windows 10 while loading Reports-Gnome

2018-04-30 Thread Christopher Lam
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 Ap

Re: [GNC-dev] [GNC] Gnucash 3.1 crashes on Windows 10 while loading Reports-Gnome

2018-05-01 Thread Christopher Lam
find no config.user. Does v3.1 need this? Regards Peter Nurton Court Middleton-on-the-Hill Ludlow SY8 4BD Tel: 01568 750 248 Mob: 07955 586 476 On 1 May 2018 at 07:21, Christopher Lam <mailto:christopher@gmail.com>> wrote: Hi Peter, the amended report will unlock subtotals and gr

[GNC-dev] pricedb policy

2018-05-13 Thread Christopher Lam
Hi Devs I wish to enquire about policy on pricedb. As far as I can understand, pricedb receives entries from 3 different sources: 1. from entering transactions into the register, if the transaction involves a foreign currency conversion or stock. e.g. originating account is GBP, target currency

Re: [GNC-dev] pricedb policy

2018-05-13 Thread Christopher Lam
does this alter the original user:price? (or add another?) If the two get out of sync, how do you determine what is the true source to use to regenerate upon loading and Check&Repair? Regards, Adrien On May 13, 2018, at 5:34 AM, Christopher Lam wrote: Hi Devs I wish to enquire about p

Re: [GNC-dev] pricedb policy

2018-05-13 Thread Christopher Lam
> > > > If the two get out of sync, how do you determine what is the true source > to use to regenerate upon loading and Check&Repair? > > > > Regards, > > Adrien > > > >> On May 13, 2018, at 5:34 AM, Christopher Lam > wrote: > >> > >

Re: [GNC-dev] pricedb policy

2018-05-14 Thread Christopher Lam
Here you go, a prices-report.scm which can be dropped into standard-reports folder and adds a rudimentary forex analysis. If rebuilding you'll need to add onto CMakeLists.txt as well. It scans *only* transactions which involve 2 different commodities. eg GBP<->EUR or AAPL<->USD. It calculates and

Re: [GNC-dev] Ubuntu. Both guile-2.0 and guile-2.2 installed, can't find guile-2.2

2018-05-17 Thread Christopher Lam
As it turns out, thanks to #guile, I found out I had to 'sudo apt install guile-2.2-dev' to properly get the right guile-2.2. C On 11/05/18 21:29, Christopher Lam wrote: As per subject. Having successfully worked on guile-2.0, I wished to try 2.2 and 'sudo apt install gui

Re: [GNC-dev] [GNC] feature request, select all on reconcille

2018-05-19 Thread Christopher Lam
I believe it'll be gnc-window-reconcile-ui.xml in gnucash/ui but no idea how to modify it either. Not a glade file. On 20 May 2018 at 08:46, Dennis Powless wrote: > Ok, yes it would seem glade is much, much easier. However, I was not able > to open window-reconcile.c in glade, am I missing some

Re: [GNC-dev] pricedb policy

2018-05-27 Thread Christopher Lam
look at the splits*. If for some > reason you need to cache the prices then cache the prices. Don’t overload > the pricedb for a purpose for which it’s not designed. > > Regards, > John Ralls > > > > On May 13, 2018, at 6:19 PM, Christopher Lam > wrote: > > >

Re: [GNC-dev] Report System Rework

2018-06-10 Thread Christopher Lam
s called per report > > >> -> it has nothing to do with html rendering > > >> > > >> If you take the changes from PR#360 and comment out the report ID in > > the call to gnc:define-report from any standard report, you will see that > > an "ordinary

Re: [GNC-dev] Build issues and some free testing

2018-06-12 Thread Christopher Lam
t. > > > > On Wed, 24 Jan 2018 at 11:19 John Ralls jra...@ceridwen.us>> wrote: > > > > > > > On Jan 22, 2018, at 6:56 PM, Robert Merkel <mailto:robert.mer...@benambra.org>> wrote: > > > > > > Hello all. > > > > > > I

[GNC-dev] Fwd: The two modules

2018-06-15 Thread Christopher Lam
at 00:45 Subject: The two modules To: Christopher Lam Hope this helps. As I mentioned in the list email, perhaps there is a way to show the Trading Accounts if they are present and suppress if they are not. Also, I think it would be acceptable to have an Income/Expense Report on a separate page

Re: [GNC-dev] Budgets: showing total-to-date in budget period, and previous month totals only

2018-06-17 Thread Christopher Lam
Hi Phil I've taken the liberty of fixing up your YTD-budget, renamed to budget-ytd. I don't use budgeting myself and cannot check figures. But it seems useful enough. https://github.com/christopherlam/gnucash/tree/master-ytd Would you be kind to double check it works as expected in 3.1/maint onward

Re: [GNC-dev] Fwd: The two modules

2018-06-18 Thread Christopher Lam
27;m sure I can fix the standard balsheet to her standards! > > > > So, wishlist: > > > > * datafile with example transactions > > * current html report of standard balsheet > > * annotated ideal report produced by standard balsheet :) > > > > Let

[GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-06-22 Thread Christopher Lam
Hi All I'm working through balance-sheet.scm and overhauling this report. At the same time, I can see that balance-sheet.scm and income-statement.scm can be merged together. After all * balance sheet = asset/liability/equity balance at date X, * income statement = difference in income/expe

Re: [GNC-dev] Budgets: showing total-to-date in budget period, and previous month totals only

2018-06-23 Thread Christopher Lam
look a bit strange. I think center- or right-justified would be better. Thanks for doing this. Phil On Sun, Jun 17, 2018 at 11:16 AM Christopher Lam mailto:christopher@gmail.com>> wrote: Hi Phil I've taken the liberty of fixing up your YTD-budget, renamed to budget-ytd.

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-06-23 Thread Christopher Lam
Hi John, the split->noclosing_balance is updated in xaccAccountRecomputeBalance. Will continue copypasta coding until it works! On Sat, 23 Jun 2018, 23:56 John Ralls wrote: > > > > On Jun 22, 2018, at 9:42 PM, Christopher Lam > wrote: > > > > Hi All >

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-06-24 Thread Christopher Lam
nt report altogether, and the others will be sunsetted. Hopefully this new report will be broadly acceptable because the old reports have a *lot* of supporting unintelligible old code, especially to handle closing-entries as above. C On 24/06/18 00:51, Christopher Lam wrote: Hi John, the split-

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-06-24 Thread Christopher Lam
after all; the closing entries are first sought, cached, then analyzed as required. For posterity C could also produce noclosing balances for easier future reports, but I think this works well so far. C On 24/06/18 17:50, Christopher Lam wrote: I think I'll forego a noclosing_balan

[GNC-dev] book-currency

2018-07-01 Thread Christopher Lam
There's lots of dead code related to an (AFAIK) unimplemented book-currency or currency-accounting feature... Some are cluttering options.scm - should we remove them? ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailm

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-02 Thread Christopher Lam
Hi Stephen, Dave &al Thank you - Dave - the changes are merely cosmetic therefore easy. It sounds there are still 2 desired presentational types - (1) Dave's approach = *recursive-bal* - 'parent' accounts generally collect their children account amounts; if they also have their own amount, the l

Re: [GNC-dev] book-currency

2018-07-02 Thread Christopher Lam
Hi Alex Thank you for update - would you mind letting us know the layman version of it? Thanks! On 3 July 2018 at 01:02, Alex Aycinena wrote: > >> -- Forwarded message -- >> From: John Ralls >> To: Christopher Lam >> Cc: gnucash-devel >> Bcc:

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-03 Thread Christopher Lam
uli 2018 02:57:50 CEST schreef Christopher Lam: > > Hi Stephen, Dave &al > > > > Thank you - > > > > Dave - the changes are merely cosmetic therefore easy. > > > > It sounds there are still 2 desired presentational types - (1) Dave's > > appr

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-04 Thread Christopher Lam
lease help beta test! I've made some cosmetic changes too. eg dates in their own row, double-underline for grand-total only. I do not think it'll be wise to reduce font sizes for account-depth. Still remaining: - fix negative signs strategy On 03/07/18 16:17, Christopher Lam wrote:

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-04 Thread Christopher Lam
illustration periodic columns have been disabled C On 04/07/18 20:13, Christopher Lam wrote: I've restored multilevel-subtotals... using an easier tack than previously: instead of keeping lists(1 per account-depth) of lists (1 per column) of collectors, it'll just climb up the hie

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-04 Thread Christopher Lam
Oops https://screenshots.firefox.com/pttTjFEtYTJLXzam/null Sorry for spam, fixed screenshot On 04/07/18 21:20, Christopher Lam wrote: Forgot to include a screenshot to illustrate https://screenshots.firefox.com/Z7HOv5pb2qbRc5NP/null - recursive balance vs. multilevel (and saner alignment

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-04 Thread Christopher Lam
. https://screenshots.firefox.com/NcMKts75npXbP4Bc/null C On 05/07/18 03:40, Stephen M. Butler wrote: Could you repost the location to pull the latest?  My memory is over-full and appears to be working the LIFO method of cleanup. On 07/04/2018 05:13 AM, Christopher Lam wrote: I've res

Re: [GNC-dev] Slow user interface in 3.x gnucash (for large files), and potential optimization

2018-07-04 Thread Christopher Lam
Hi David, Just as a matter of experimentation, try the new charting tree available at https://github.com/christopherlam/gnucash/tree/master-chartjs - it replaces the antiquated jqplot with shiny ChartJS - it is awaiting beta testers, and it seems you can build from source :-) Features: - UR

[GNC-dev] stress-testing reports

2018-07-11 Thread Christopher Lam
Hi all To aid in development and refactoring of the numerous reports, I've developed a report-options stress test. *Premise:* Most reports are currently defined in scheme. The reporting engine expects, at a minimum, 2 functions to be defined - an options generator, and a renderer. The options g

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-18 Thread Christopher Lam
unt calculating functions are good enough to be reused to replace net-charts, category-barchart etc. * Hopefully the unintelligible old code can then be dumped for good. C On 03/07/18 15:41, Geert Janssens wrote: Op dinsdag 3 juli 2018 02:57:50 CEST schreef Christopher Lam: Hi Stephen, Dave

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-19 Thread Christopher Lam
works? Can you please show me good examples of idealised T-account balance sheet/income statement? Or the scaled form? I have no idea. C On 19 July 2018 at 05:17, Frank H. Ellenberger < frank.h.ellenber...@gmail.com> wrote: > Hi Chris, > > Am 18.07.2018 um 15:13 schrieb Chr

[GNC-dev] about these account-summary reports...

2018-07-22 Thread Christopher Lam
I'll be aiming to replace and upgrade the following reports: * balance-sheet * income-statement * account-summary * budget-flow * cashflow Basically all of above are using html-acct-table to create a 2D grid (vertical = accountlist, horizontal = indented amounts). I think I can upgrade to

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-07-27 Thread Christopher Lam
of amounts * accuracy of sections o further tweaking of option names/sections/ordering Screenshot: https://screenshots.firefox.com/nhaiX1ehSA2GXA97/null On 25/07/18 15:53, Frank H. Ellenberger wrote: Am 19.07.2018 um 13:09 schrieb Christopher Lam: Hi Frank Thank you - I can restore the dual-co

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-06 Thread Christopher Lam
2-column mode. I see too that some child amounts show in two currencies but not others. (looks like just the GBP accounts) Is this intended or just an illustration (or an omission)? Regards, Adrien On Jul 27, 2018, at 8:01 AM, Christopher Lam wrote: Latest iteration of balsheet * restored amou

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-08 Thread Christopher Lam
Hi Frank, I would think if the multiple categories of accounts are desired, they should be designed in the Chart of Accounts rather than the balance sheet. At least this is what I'd design my book as, rather than trying to code various formulas in scheme. I've rendered the same test book mul

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-08 Thread Christopher Lam
Hi devs, On 09/08/18 08:32, John Ralls wrote: On Aug 8, 2018, at 8:51 AM, Geert Janssens wrote: I haven't been following every detail of this. However I note on most balance sheets the total assets doesn't match total net worth (or liabilities/equity). In most, this is fixed by including the r

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-10 Thread Christopher Lam
Hi John I've managed to make the left-side (activa?) match the right-side (passiva?) https://screenshots.firefox.com/RNvkjaxnYyxpGkYn/null 1) it does require closing books on the balance-sheet date 2) it does require adding trading-accounts The existing balsheet introduces/calculates the "Ret

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-12 Thread Christopher Lam
h.org/show_bug.cgi?id=775368 is related because that’s currently how the balance sheet report gets the “actual” costs. Regards, John Ralls On Aug 10, 2018, at 11:40 PM, Christopher Lam mailto:christopher@gmail.com>> wrote: Hi John I've managed to make the left-side (activa?)

Re: [GNC-dev] Training

2018-08-12 Thread Christopher Lam
Hi David There is definitely a gap in this space. The old video https://youtu.be/aqAaScYVeRQ is still covering the basics. Perhaps you can focus on more more modern aspects? On Thu, 9 Aug 2018, 22:18 David Tinoco wrote: > I am very interested in learning the ins and outs of GnuCash. > > I am al

Re: [GNC-dev] Training

2018-08-13 Thread Christopher Lam
hat > budget it would be great. Can this be done? > > Also, I don't understand the transfer row in the budget window and how > that works with accounts. > > There are so many great features to this program--wish I could work with a > guru and make a bunch of videos f

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-13 Thread Christopher Lam
ote: On Aug 12, 2018, at 10:04 PM, Christopher Lam wrote: Hi Jralls So just wish to double check my understanding of gnucash's data format for a balance-sheet on date X There are two possibilities for displaying the right-hand-side 1. Liabilities + Equity + Retained Earnings + Tradin

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-16 Thread Christopher Lam
report Unrealized Gains, no? On 13/08/18 22:51, John Ralls wrote: On Aug 12, 2018, at 10:04 PM, Christopher Lam mailto:christopher@gmail.com>> wrote: Hi Jralls So just wish to double check my understanding of gnucash's data format for a balance-sheet on date X There are two

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-08-17 Thread Christopher Lam
which uses the most recent price in the pricedb for the purchase as well as the valuation. Regards, John Ralls On Aug 16, 2018, at 12:58 AM, Christopher Lam wrote: Hi John Just to be a pain again... I found a small discrepancy - (This is different from the previously noted missing-capital-g

Re: [GNC-dev] Register Documentation Improvements (was Re: [GNC]Column widths again)

2018-08-23 Thread Christopher Lam
> So does GitHub (it’s the pencil icon to the right of Raw/Blame/History), > which also has a desktop front-end, https://desktop.github.com/ > and a button on a file’s webpage that opens the > file in Github Desktop. > I haven’t tried any of them, but perhaps David

Re: [GNC-dev] New balsheet (and P&L report), API considerations, and (slow?) KVP in Account.cpp

2018-09-05 Thread Christopher Lam
er shame. On Fri, 17 Aug 2018 at 21:20, Christopher Lam wrote: > Hi David > > I refer you to a prior discussion: > https://lists.gnucash.org/pipermail/gnucash-user/2018-June/077758.html > > I appreciate balance-sheet is a formal accounting report. The problem is, > as always,

Re: [GNC-dev] merging failing tests

2018-09-05 Thread Christopher Lam
Hi As an untrained hacker, I think the issue is whether these "bugs" are really worth fixing at all. I can imagine the history of the dark ages; and html was being refined, and previously the reports were outputting plaintext or directly to screen via X calls; the hackers decide to start out

Re: [GNC-dev] Long Term Documentation Directions

2018-09-10 Thread Christopher Lam
On Mon, 10 Sep 2018 at 19:31, David Cousens wrote: > > One problem I see for Unix is that at present there doesn't appear to be a > help viewer in Unix that has support for context level help. Doc books can > obviously support defining links that can be accessed from help buttons or > a > key bas

Re: [GNC-dev] GnuCash 3.3 Released

2018-10-01 Thread Christopher Lam
Hi all While everyone is busy shaking the program to weed out any new bugs, please be aware that the invoice reports have been modified, with an aim for greater maintainability (i.e. printable invoice, easy-invoice, fancy-invoice now share the same code base and have been approximated as well a

Re: [GNC-dev] GnuCash 3.3 Released

2018-10-01 Thread Christopher Lam
ntal' menu. On Mon, 1 Oct 2018 at 22:35, Adrien Monteleone < adrien.montele...@lusfiber.net> wrote: > Chris, > > Did your new Income/Balance multi-column report make it into this release > or is it still in development? > > Regards, > Adrien > > > O

Re: [GNC-dev] Gnucash and the UK's "Making Tax Digital" initiative

2018-12-02 Thread Christopher Lam
Hi All I have reviewed one of pre-gnucash accounting software which I tried 10-15 years ago. VT Cashbook is free, uses double-entry internally, and is a good solution for UK-based small traders who do not need accruals. http://www.vtsoftware.co.uk/mtd/index.htm A VAT return using sample data (sa

Re: [GNC-dev] GNUCASH Test Data

2018-12-04 Thread Christopher Lam
There's a good idea, however, I am not sure that the datafile loading mechanism is exposed to python & scheme. If you analyze test-transaction.scm and test-commodity-utils.scm you'll see how each test will generate an in-memory datafile with customized data designed to test aspects of transaction.

Re: [GNC-dev] [GNC] Accounts do not appear in budget

2018-12-05 Thread Christopher Lam
Agreed -- IMHO the current budget mechanism is a bad hack. There are better ones e.g. https://wiki.gnucash.org/wiki/Zero-Sum_Budgeting Test implementation available at https://github.com/christopherlam/gnucash/tree/master-envelope-budgeting On 5/12/18 5:38 pm, D via gnucash-devel wrote: Anot

Re: [GNC-dev] Interest

2018-12-12 Thread Christopher Lam
Hi I am not an original developer on this loan assistant. However I think that the original loan druid was designed to calculate/estimate the loan repayment amounts, assuming a conventional loan, with a non-zero interest rate. If the interest rate was zero, there would be little need for a loan dru

Re: [GNC-dev] Translation

2018-12-12 Thread Christopher Lam
Reply for qu.2 below On Mon, 10 Dec 2018 at 11:16, Hamidreza Jafari wrote: > 2 - There are some parts of the application which I find contrary to what > is a > major belief. That of interest. Can the application handle interest-free > AKA > zero interest loans and mortgages? > Of course GnuCash

Re: [GNC-dev] clang-format - thoughts ?

2018-12-24 Thread Christopher Lam
From a lisp viewpoint I was thinking of putting forward a coding style too! I use emacs which does the following automatically: https://www.gnu.org/software/emacs/manual/html_node/elisp/Coding-Conventions.html#Coding-Conventions C On 25/12/18 10:23 am, c.holterm...@gmx.de wrote: John, it's m

Re: [GNC-dev] Make of 3.3-181

2018-12-24 Thread Christopher Lam
There is still a strong argument to clean up these reports... They are generally messy, lots of duplicate code, impose new translatable strings; they use localised C API such as xaccAccountGetTaxUSCode (even taxtxf-de_DE.scm calls it), are poorly tested. I have not touched any of them signifi

[GNC-dev] taxtxf

2019-01-03 Thread Christopher Lam
Hi I'm thinking of tackling the huge beast that is taxtxf.scm but I'm struggling to understand its various meandering code paths. If anyone is willing to share a sample datafile with accounts appropriately tagged with tax-info then I'll try untangle this mess. I think there are some current

Re: [GNC-dev] taxtxf

2019-01-04 Thread Christopher Lam
port/locale-specific/us/taxtxf.scm but I'll wish to create good tests to ensure this work is safe. On Sat, 5 Jan 2019 at 06:06, Alex Aycinena wrote: > > > Christopher, > > >> >> ------ Forwarded message -- >> From: Christopher Lam >> To: GnuCash

Re: [GNC-dev] Reports -- Cleanup

2019-01-09 Thread Christopher Lam
Thanks for the interest in reports. I'd like to take opportunity to explain current state of code. Examples of duplication: - html-barchart, html-linechart, html-scatter, html-pie have a lot of duplicated code; there's a pending work for merging the charting infrastructure into a universal one, a

Re: [GNC-dev] [GNC] Reconciliation Report -- Can't find transactions

2019-01-12 Thread Christopher Lam
Dear Liz Thank you for experiments - this confirms that doing a proper reconciliation report is *difficult* Please experiment further (1) expand dates eg from 01/01/1980 to 01/01/2099 (2) let me know the characteristics of the 77 missing amounts - are they unreconciled/cleared/reconciled?

Re: [GNC-dev] [GNC] Reconciliation Report -- Can't find transactions

2019-01-12 Thread Christopher Lam
The only addition so far is a reconcile report custom header with total ending balance and total ending reconciled balance. Not sure why it's not showing in your attachment. We'll try to work this note that you can build;) On Sun., 13 Jan. 2019, 12:32 Liz On Sun, 13 Jan 2019 12:09:06 +1000 > Davi

Re: [GNC-dev] [GNC] Reconciliation Report -- Can't find transactions

2019-01-13 Thread Christopher Lam
https://screenshotscdn.firefoxusercontent.com/images/b10744f6-2ee0-4778-ba55-08a15b1c4b8f.png On 13/1/19 2:50 pm, Liz wrote: On Sun, 13 Jan 2019 12:53:19 +0800 Christopher Lam wrote: The only addition so far is a reconcile report custom header with total ending balance and total ending reconciled balance. Not sure why

Re: [GNC-dev] [GNC] Reconciliation Report -- Can't find transactions

2019-01-13 Thread Christopher Lam
, Liz wrote: On Sat, 12 Jan 2019 18:49:05 +0800 Christopher Lam wrote: Please experiment further (1) expand dates eg from 01/01/1980 to 01/01/2099 (2) let me know the characteristics of the 77 missing amounts - are they unreconciled/cleared/reconciled? I guess you can build from source, would you

Re: [GNC-dev] [GNC] Reconciliation Report -- Can't find transactions

2019-01-16 Thread Christopher Lam
nucash.org/pipermail/gnucash-user/2019-January/081941.html > > Can you share your report files there or does the new version also require > changes to other parts of gnucash to make it work? > > Regards, > Adrien > > > On Jan 13, 2019, at 9:39 AM, Christopher Lam > wro

Re: [GNC-dev] Two steps forward (Maybe three back)

2019-01-20 Thread Christopher Lam
There's no reason why the dates can't be changed. The reason dates straggling 1.1.1970 was chosen was because 1.1.1970 corresponds to time 0 in time64, and I felt that having a few negative time64 numbers would be interesting to test sorting. However this is a weird weirdness -- the test outp

Re: [GNC-dev] Two steps forward (Maybe three back)

2019-01-20 Thread Christopher Lam
f-print-date 02/10/70) Etc The dates are correct; -46860 is a relatively small number of seconds before 1/1/70 yet qof-print-date reports 31/12/70. Back to jralls for root cause analysis! On Mon., 21 Jan. 2019, 14:50 Stephen M. Butler On 1/20/19 8:07 PM, Christopher Lam wrote: > > There

Re: [GNC-dev] Two steps forward (Maybe three back)

2019-01-21 Thread Christopher Lam
t;date-cell" On 21/1/19 12:58 pm, Stephen M. Butler wrote: On 1/20/19 8:07 PM, Christopher Lam wrote: There's no reason why the dates can't be changed. The reason dates straggling 1.1.1970 was chosen was because 1.1.1970 corresponds to time 0 in time64, and I felt that having a few

Re: [GNC-dev] [GNC] New Budget Bar Chart Not Displaying

2019-01-23 Thread Christopher Lam
Directed towards Adrien- how should the budgeting reporting options look like? Budget has start-date and num(periods) Budget-report-date has its own start-date and end-date -- they should be removed? I don't use the budgeting tools myself. (ytd-budget.scm from years back seems to be a good

Re: [GNC-dev] Test failure

2019-01-24 Thread Christopher Lam
Stephen this bug is in 3.4 and was fixed in commit 95bee405c Could you try "git revert e31f4c3f9" as a test for your "31/12/70" test-transaction errors? On 24/1/19 3:05 am, Stephen M. Butler wrote: Found this patch on the debian version for 3.4 Origin: upstream, https://bugs.gnucash.org/atta

Re: [GNC-dev] [GNC] New Budget Bar Chart Not Displaying

2019-01-24 Thread Christopher Lam
year. While that all might be nice, the easiest thing to fix right now, I think would be to pattern the General tab of the budget chart similar to the various budget reports. Regards, Adrien On Jan 23, 2019, at 10:14 AM, Christopher Lam wrote: Directed towards Adrien- how should the budgeting

Re: [GNC-dev] [GNC] New Budget Bar Chart Not Displaying

2019-01-24 Thread Christopher Lam
Best build entire branch because of new chartjs dependencies On 24/1/19 7:35 pm, Adrien Monteleone wrote: I haven’t built from git yet. (no time like the present) Do I build the entire branch or can I just dl and build the report? Regards, Adrien On Jan 24, 2019, at 5:09 AM, Christopher Lam

Re: [GNC-dev] Test failure

2019-01-24 Thread Christopher Lam
Because e31f4c3f9 is causing errors on my build as well in different ways. PS e31f4c3f9 must not be reverted for your packaging - please be patient while a proper fix is pending. On 25/1/19 3:48 am, Stephen M. Butler wrote: On 1/24/19 2:32 AM, Christopher Lam wrote: Stephen this bug is in

Re: [GNC-dev] Test failure

2019-01-24 Thread Christopher Lam
Stephen M. Butler OH! Light bulb on! > OK. I understand what you said earlier. I'll put the patches back into > the packaging. > > Thanks for clearing that up. > > --Steve > > PS Looking in manual for 'revert' command. > > > > On 1/24/19 1:06

Re: [GNC-dev] Test failure

2019-01-26 Thread Christopher Lam
Another experiment. Try prefix your build with "TZ=UTC " on current maint. Eg if using ninja, it'll be "TZ=UTC ninja check" On Fri., 25 Jan. 2019, 11:52 Stephen M. Butler On 1/24/19 7:36 PM, Christopher Lam wrote: > > Revert is a git terminology, not a

Re: [GNC-dev] Test failure

2019-01-26 Thread Christopher Lam
Thank you Stephen for your results. It would seem that the test-transaction failure is caused by a faulty libicu-dev whereas my failure caused by some other issue related to Time zones. C On Sun., 27 Jan. 2019, 09:55 Stephen M. Butler On 1/26/19 3:13 AM, Christopher Lam wrote: > > A

Re: [GNC-dev] Test failure

2019-01-26 Thread Christopher Lam
ined to 1969, but tonight got https://bugs.gnucash.org/show_bug.cgi?id=797067 which makes me think that it's every year, so more testing needed. Regards, John Ralls On Jan 26, 2019, at 5:55 PM, Stephen M. Butler wrote: On 1/26/19 3:13 AM, Christopher Lam wrote: Another experiment. Try pre

Re: [GNC-dev] Test failure

2019-01-26 Thread Christopher Lam
3:04 pm, Stephen M. Butler wrote: On 1/26/19 10:54 PM, Christopher Lam wrote: Stephen please spend some CPU burning time on my chartJS branch which needs beta testing? $git clone https://github.com/christopherlam/gnucash/tree/maint-chartjs-budget-barchart Thought I'd start this while h

Re: [GNC-dev] Pie Chart

2019-01-27 Thread Christopher Lam
Erm. None of these... All feedback below relates to UI / styling. Mainly need beta-testing the new charting infrastructure, upgraded from jqplot to chartJS. Is there any noticeable change? Any bugs? Notice interactivity -- try clicking on chart, and compare behaviour with previous jqplot-bas

Re: [GNC-dev] Pie Chart

2019-01-27 Thread Christopher Lam
; > How do I get both versions available? Without uninstalling one and > installing the other every time I wanted to compare the results! > > I might be the wrong guy for this job! > > --Steve > > > On 1/27/19 2:29 PM, Christopher Lam wrote: > > Erm. > >

Re: [GNC-dev] Pie Chart

2019-01-29 Thread Christopher Lam
the saved-reports in 3.x (except budget barchart) feedback required: any unexpected changes, compatibility issues with previous jqplot charts. On Mon, 28 Jan 2019 at 14:42, Christopher Lam wrote: > You could try creating a local build via ninja (documented in wiki). > Thanks for beta testin

Re: [GNC-dev] Pie Chart

2019-01-29 Thread Christopher Lam
Hello On Wed, 30 Jan 2019 at 09:31, Stephen M. Butler wrote: > So far, my only negative is with the Average balance chart. It's too > tall and I lose the captions at the bottom (I maybe see 1 or 2 pixels of > them). When I scroll down then I lose the chart title at the top. I am > running 192

Re: [GNC-dev] Pie Chart

2019-01-31 Thread Christopher Lam
Forward/Back items on the right click be > available. That's awkward. > > How about a double left click automatically goes down on the area > clicked or always allow a Forward if the user right clicks on the area. > In that case go deeper on the area on which the left click happe

Re: [GNC-dev] Pie Chart

2019-01-31 Thread Christopher Lam
Also latest developments will modify budget bar chart to specify budget periods rather than absolute dates, similar to budget.scm :-) On Thu., 31 Jan. 2019, 22:05 Christopher Lam Thanks for feedback. > > Most of these issues are not caused by reports but rather webkit/UI issues > :)

Re: [GNC-dev] Pie Chart

2019-02-01 Thread Christopher Lam
Most of these issues are not caused by reports but rather webkit/UI issues :) I haven't found way to trigger report drill-down without an intermediate "Load" anchor. Hopefully you can request an enhancement from them. It's an internal webkit issue and too difficult to fix. I think the inter

[GNC-dev] Further feedback

2019-02-03 Thread Christopher Lam
Hi Stephen If possible I'd be grateful if you would check my branch maint-scheme-progress * cd gnucash * git fetch --all * git checkout chris/maint-scheme-progress * dpkg etc (note there will be gnc-date error - ignore) Main issues for feedback: * Reconciliation report modified header h

  1   2   3   4   >