Commit Graph

21494 Commits

Author SHA1 Message Date
Christian Gruber
7e71a9724f Change search strategy for prebuilt GoogleTest/GoogleMock libraries
Prebuilt GoogleTest/GoogleMock libraries are now only searched, if
GoogleTest source code wasn't found.
2019-09-03 23:45:06 +02:00
Geert Janssens
cbd6dea4ba Fix distcheck after locale tax changes 2019-08-27 17:26:04 +02:00
Geert Janssens
9a48122d41 Merge maint 2019-08-27 17:25:41 +02:00
Christopher Lam
2fa442638d fix typo in he/CMakelists.txt templates dist_list 2019-08-27 22:29:45 +08:00
Christopher Lam
f4a1b2fdf2 Revert "[standard-reports] modernise to srfi-9 records"
This reverts commit
123033e5ea. Unfortunately srfi-9 records
don't travel well outside modules, so, will fail on master.
2019-08-27 22:29:28 +08:00
Christopher Lam
d963ca0d3a fincalc: remove C accelerator for Clear
because it clashes with Close button
2019-08-27 21:15:28 +08:00
Christopher Lam
13d3179729 Bug 605602 - precision of Financial Calculator seems to depend on locale
* the calc_clicked_cb had mechanism to abort if no fields were
  empty. disable it.

* to convert gnc_numeric to string, the only suitable print_info is
  gnc_share_print_info_places which takes decimal and outputs suitable
  print_info. Not very appropriate, but works.
2019-08-27 21:15:28 +08:00
Christopher Lam
90da06b8af [dialog-import] connect delete_event to gnc_gen_trans_list_delete 2019-08-27 06:48:28 +08:00
Frank H. Ellenberger
02f03235bf Merge branch 'PR569' into maint
This adds Hebrew account templates
2019-08-26 23:35:54 +02:00
Frank H. Ellenberger
e4af626d84 he templates: Revert a sporadic "ILS" for consistency 2019-08-26 23:30:55 +02:00
Frank H. Ellenberger
7db2ccc4e0 Bug 796819 - bad icon with Spanish localization
Temporary fix for Farsi, which was afffected, too.
As it is maintained by TP, the final fix has to come from them.
2019-08-26 22:55:41 +02:00
Geert Janssens
a9bf2f8cc7 Fix job report test
It's not really part of the owner report, so I'm surprised it actually worked before
Probably due to the formerly exported find-first-account-for-owner
2019-08-26 20:18:43 +02:00
Geert Janssens
ebdebb0a5b Clarify the translation remark for the gnucash-icon 2019-08-26 19:01:38 +02:00
Geert Janssens
54dae108a6 Properly mark the renamed appdata.xml.in.in for translation 2019-08-26 19:01:38 +02:00
Geert Janssens
d7e66f9649 Break circular dependency between owner-report.scm and reports.scm
That is:
* move the account lookup from report.scm to owner-report.scm so
there's no need any more to call into reports.scm from within owner-report.scm
* fix the cmake dependency tree to reflect the new changes:
only customer-overview depends directly on code in reports.scm
All other reports don't. reports.scm however does depend on three
standard reports. So:
standard-reports <- reports <- customer-overview
2019-08-26 18:52:31 +02:00
Christopher Lam
18aff5d1c1 Bug 797355 - General Journal report seems to be off balance
Previously, for general-journal, each split was being analyzed, and
only the source split was counted for totals. This change will means
the source split *and* its peers were accounted for.
2019-08-26 18:36:46 +08:00
Christopher Lam
0d35e7c63d [register] remove unused functions 2019-08-26 18:36:46 +08:00
Christopher Lam
6b0bfa075c [register] fix Transfer acc for single-account splits
single account splits shouldn't show "-- Split Transaction --" in
transfer account. show "None".
2019-08-26 18:36:45 +08:00
Christopher Lam
d7813206ce [register] compact functions, inline single-use function 2019-08-26 18:36:45 +08:00
Geert Janssens
cc222515a3 Fix in-tree builds after the appdata file changes
We don't recommend this as it risks tainted build environments. However if
you know what you're doing it should still work. In particular sandboxed systems
such as flatpak don't have this problem and hence they do build in-tree.
2019-08-26 12:17:39 +02:00
Geert Janssens
8c2f5fb7a2 Minor tweaks to appdata file generation
* Use cmake's built-in copy command rather than an external one
* depend directly on gnc-vcs-info.h rather than the global gnc-vcs-info-target
  The latter won't trigger a rerun of the command if gnc-vcs-info.h already exists
  regardless of whether it had changed.
2019-08-26 09:24:19 +02:00
John Ralls
4de2e2b9c2 Merge Craig Mason-Jones's 'gncnumeric-neg-string' into maint. 2019-08-25 15:55:36 -07:00
Craig
04aab7cea3 Correctly parse decimals between 0 and -1.
The negative sign was being lost because stoll("-0") is 0.
Also permits parsing decimals between -1 and 1 without the leading 0.
2019-08-25 15:50:29 -07:00
John Ralls
bdb858883c Bug 797377 - cmake fails on debian-8 and ubuntu-14.04...
with gnucash.appdata.xml.in does not exist
2019-08-25 13:21:08 -07:00
avma
d1cfea0239
Hebrew COA sets 2019-08-25 18:49:36 +03:00
Geert Janssens
e8543008c0 Manpage generation tweaks
- depend on gnc-vcs-info.h file directly instead of the gnc-vcs-info target
  The latter won't cause gnucash to update the manpage in case gnc-vcs-info.h changes,
  the former does.
- use GNC_VCS_REV as version instead of the static VERSION parameter
2019-08-24 17:33:16 +02:00
Geert Janssens
7dc59950a5 Bug 797353 - Add copyright and release info in appdata file
This also means the appdata file now requires preprocessing to set this info
automatically.
2019-08-24 17:32:16 +02:00
Geert Janssens
c4a21bc9d4 Extract a few cmake commands to dedicated files rather than generating them on the fly
This simplifies a number of escape sequences.

The generated file to configure the man page was split up a bit further:
- code that extracted the GNC_VCS_REV_Y_M from gnc-vcs-info.h was spun out
  into its own function that now sets all parameters in gnc-vcs-info.h
  as environment variables.
- this function is now invoked by configure-manpage.cmake to extract
  the date to insert into the manpage.
- the manpage in addition now shows the full date rather than only
  yyyy-mm. This is how man itself does it as well.
2019-08-24 17:05:03 +02:00
Geert Janssens
0e9e3c107d Drop code path for cmake 3.1 and older
We require cmake 3.5
2019-08-24 17:01:50 +02:00
Geert Janssens
9b6df51e58 Fix man page title line
* 'Version x.y' should be treated as one parameter
* Add a page title
2019-08-24 17:01:50 +02:00
Geert Janssens
1784803811 Appdata - sort tags
All tags except for the core information (id, name, summary and description)
are sorted alphabetically for easier lookup. The core tags are kept on top
though.
2019-08-24 17:01:50 +02:00
Geert Janssens
919c2b305d Appdata - add language tag 2019-08-24 17:01:50 +02:00
Christopher Lam
3d608efc22 [test-options] add to CMakeLists.txt
forgto to add to dist_list.
2019-08-23 19:51:13 +08:00
Christopher Lam
67751665b3 [taxtxf(-de_DE)] compact functions, use srfi-2
srfi-2 and-let* allows concise code and returns #f if any intermediate
var is #f.
2019-08-23 19:34:14 +08:00
Christopher Lam
123033e5ea [standard-reports] modernise to srfi-9 records 2019-08-23 18:40:37 +08:00
Robert Fewell
53b7cba11e Reformat source files gnc-tree-view.c/h
Replace tabs with spaces and changes spaces where appropriate.
2019-08-23 09:46:24 +01:00
Robert Fewell
3322397091 Restrict where you can click on the menu column header
With the previous change clicking any where on the menu column header
will activate the menu so this change activates the menu only in the
area of the icon.
2019-08-23 09:46:24 +01:00
Robert Fewell
5384f31943 Stop Gtk Warning Negative content width
This is caused by the spacer column being reduced as new columns are
inserted before the menu selection column at the end. When it gets to
a size that can not hold a valid button in the header you get the
warning so remove the spacer column.
2019-08-23 09:46:24 +01:00
Geert Janssens
ce638f3084 Add OARS classification to our appdata file
It mentions mild for social-info because we use an online api for quotes retrieval.
2019-08-23 10:06:28 +02:00
John Ralls
1fc831002d Merge branch 'maint' 2019-08-22 12:39:49 -07:00
John Ralls
fcc1653822 Replace overly indirect gnc_business_get_default_tax_table.
With gncTaxTableGetDefault.

qof_book_get_default_tax_table would have been even better but it
would have created a circular dependency between QofBook and
GncTaxTable.
2019-08-22 12:30:33 -07:00
Geert Janssens
2af0fa9849 Restructure installed locations of tax related files
They are now under gnucash/locale/{us,de_DE}. This introduces a directory to add
any scm code that is locale specific. For now it's limited to tax rules for
the US or Germany.
2019-08-22 16:12:20 +02:00
Geert Janssens
d31a23d369 Restructure tax source directory.
Put common code in the top-level, and locale specific code in
language specific subdirectories.
2019-08-22 15:53:17 +02:00
Geert Janssens
f5278621b0 Rename module and related cmake rules from tax-us to locale-tax 2019-08-22 15:35:26 +02:00
Geert Janssens
a20c60990a Use one single module to load locale specific tax rather than a module per locale
This simplifies the calls in the rest of gnucash
Note that the locale specific reports themselves don't even load this module any more.
They don't need it, instead they can directly load the locale specific tax scheme modules.
2019-08-22 14:49:07 +02:00
Geert Janssens
33b1a19eb2 Disable text-tx-import.cpp
There are no tests in this file yet
2019-08-20 18:30:43 +02:00
Geert Janssens
5c87344dbd Add developer name to our appdata
It has no legal bearing as far as I know, but consumers like
gnome-software or flathub will display this info.
2019-08-20 18:30:43 +02:00
Christopher Lam
0a3fd5984e [general-journal] deprecate the journal report generator
it is unused.
2019-08-19 20:42:00 +08:00
Christopher Lam
416e7f7e5e [general-journal] set document title after rendering
Instead of setting document <title> register.scm's General/Title
option, set it in the document returned by register.scm's
renderer. This is in anticipation of "General"/"Title" option in
register.scm being removed.
2019-08-19 20:41:12 +08:00
Christopher Lam
b3ff04eedc [balsheet-pnl] reuse i18n strings 2019-08-19 19:30:17 +08:00