Commit Graph

21387 Commits

Author SHA1 Message Date
Robert Fewell
d677e3c5df Do not log an error when no default tax tables set 2019-08-29 11:27:10 +01:00
Robert Fewell
251d39477f Prevent artefacts of imported transactions from showing
When you start the import process, possible imported transactions are
displayed in the source open register and if you deselect any and press
the OK button you are left with blank lines in the register for those
deselected so move the gnc_gen_trans_list_delete to before the gui
refresh call.
2019-08-29 11:26:27 +01:00
Christopher Lam
ca061f0665 [test-extras] show better error message if report is not found
this leads to better error messages during test development and other
work. e.g. a report-module isn't loaded by mistake during a test,
would formerly lead to a cryptic #f error; this commit ensures the
uuid cannot be found error is reported.
2019-08-28 23:36:40 +08:00
Christopher Lam
8e2141ce67 [html-utilities] deprecate function 2019-08-28 23:36:40 +08:00
John Ralls
f00777ca07 Add scm-srfi64-extras and scm-qif-import as check dependencies
Fixes make check when make all hasn't been run.
2019-08-27 11:50:25 -07: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
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
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
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
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
Christopher Lam
bd9edbbbf6 Bug 797279 - Reports RTL do not support RTL - fix string
fix guile-2.0 string handling to prevent munging unicode in
report-titles etc. while loading/saving reports
2019-08-19 08:06:27 +08:00
Christopher Lam
bf7d121e27 Bug 797279 - Reports RTL do not support RTL - fix reports 2019-08-19 08:06:27 +08:00
Christopher Lam
99c69023cc Bug 793018 - Balance (with >>eguile<<) - Report Title can't be changed 2019-08-18 19:26:09 +08:00
Christopher Lam
4a81bb34ce [general-ledger] internationalize general-ledger title 2019-08-18 14:14:30 +08:00
Christopher Lam
a13e8f9237 [general-ledger] deprecate gnc:make-general-ledger-report 2019-08-18 13:40:16 +08:00