Commit Graph

19660 Commits

Author SHA1 Message Date
Christopher Lam
88b3446299 ADD-API: gnc:option-make-internal!, gnc:unregister-option
This commit adds 2 additional helper calls, primarily useful for
derived reports.

gnc:option-make-internal! will hide an existing option. e.g.
a derived report can set the value for a Display/* option and
hide it from the user.

gnc:unregister-option will unregister option. This is primarily
useful for derived options e.g. another report copies from
transaction.scm and removes some options and recreates them with
different parameters.

For example, unregister existing option from section "Accounts"
name "Accounts", and recreate with different parameters e.g.
limited account types.
2018-02-17 08:16:23 +08:00
Christopher Lam
6004b55d16 TR: remove unnecessary no-account-after-filtering step
This merges the initial 'no-account' warning and the
'no-account-after-filtering' warning. This reduces
the number of strings required.

The user can select some accounts, set an account name
filter which produces no accounts, and will see a
blank report with the gnc:render-options-changed
confirming that options were set, and the blank
filter is caused by the filter.

Example: http://i.imgur.com/eqq1Bpa.png
2018-02-17 08:16:23 +08:00
Christopher Lam
3749ca528b TR: omit display of $0 in subtotals in other currencies.
Previously in dual-subtotal columns, the dual-subtotal would
attempt to print all commodities in the row. This meant
if user chose common-currency thereby triggering additional
commodities, the dual-subtotal would attempt to add amounts
in other commodities which would be 0, and display the 0
amount. This commit will modify the the dual-subtotal strategy
to only add column where a value actually exists.

This commit is a continuation of previous TR enhancement
(multiple data columns) where I have now understood how
to disable these $0 amounts in subtotals.

From: http://i.imgur.com/sqAHsPQ.png
To:   http://i.imgur.com/n0R7xeV.png
2018-02-17 08:16:23 +08:00
Christopher Lam
12f3099f59 (infobox)->(gnc:render-options-changed) in options.scm
This commit will change (infobox) to a general-purpose
renderer for "all options changed by user" in options.scm
and can be inserted into any report. It reduces the
number of strings required.
2018-02-17 08:16:23 +08:00
christopherlam
01e604d8ee Use xaccSplitGetReconcile instead of (zero? date)
(zero? date) not a good test for reconcile status.
Use xaccSplitGetReconcile(split)=='y'.
This is a better test.
2018-02-17 08:16:23 +08:00
John Ralls
cd8f2b7c7e Rename libgnucash/scm/main.scm to utilities.scm
Because it hasn't been "main" since GnuCash became a C program.
2018-02-16 15:52:19 -08:00
John Ralls
32f6958ebb We're done modularizing. About 16 years ago. 2018-02-16 15:41:47 -08:00
John Ralls
8b0d9425e9 Remove some obsolete and unused Scheme files. 2018-02-16 15:37:46 -08:00
John Ralls
26e51339a6 Rework the Scheme target dependencies.
Should fix Bug 793122 - 2.7.3: ninja build fails
along with the nagging parallel-build problems.
2018-02-16 14:28:46 -08:00
John Erling Blad
f95ae1a96d Partial update of Norwegian po file 2018-02-16 15:41:25 +01:00
John Erling Blad
4a6f0223ef Changed last one to blame 2018-02-16 15:39:28 +01:00
John Erling Blad
e8363e29b4 Partial update of Norwegian po file 2018-02-16 15:33:41 +01:00
John Erling Blad
839ba137b9 Partial update of Norwegian po-file 2018-02-16 13:57:09 +01:00
John Erling Blad
ff0f4ac8d7 Partial update of Norwegian po-file 2018-02-16 13:43:55 +01:00
John Ralls
772aabf15f Make sure that all of the builder and uimanager files are installed...
in the correct subdirectory.
2018-02-15 16:46:12 -08:00
John Ralls
941cc7dcf5 Rationalize the copying and installation of GtkBuilder and GtkUIManager files.
Trying to catch all of the possible CMake build files as exceptions is
too hard. Name the source files and copy/install them.
2018-02-15 16:08:16 -08:00
John Ralls
a92180f03b Remove superfluous variable. 2018-02-15 16:05:51 -08:00
John Ralls
d97b0f2617 No more Makefile.am. 2018-02-15 16:04:59 -08:00
John Ralls
82ad7aca51 Prevent a couple of divide-by-zero errors.
Might fix Bug 792800.
2018-02-15 15:21:55 -08:00
John Ralls
04408650c1 Fix double free, caused test to crash on Mac. 2018-02-15 11:04:15 -08:00
John Ralls
b3b3783809 Merge branch 'maint' into unstable 2018-02-15 10:56:43 -08:00
John Ralls
1999d85343 Merge Chris Lam's 'maint-fix-45f61a3'. 2018-02-15 10:30:42 -08:00
John Ralls
33d434596d Merge branch 'maint' into unstable 2018-02-15 10:20:57 -08:00
Christopher Lam
3aba4d2dd8 bug 793278 fix for maint
This is caused by commit 766e74096 - min-date was
erroneously thought to mean 'min date of date-list'
but actually meant 'negative infinity date'. This
commit changes date comparison logic to always
return #t when comparing
(gnc:timepair-le min-date date) for
the first date interval.

Test case also created.
2018-02-15 22:46:22 +08:00
fell
2598dbe5e6 Insert lost '#, c-format' lines again into de.po
Additional removed garbage
2018-02-14 19:04:18 +01:00
Geert Janssens
b5e07517f0 Merge branch 'addendum-replace-numeric-with-number' of https://github.com/christopherlam/gnucash into unstable 2018-02-14 18:54:08 +01:00
Christopher Lam
044c172081 bug 793278 fix
This is caused by commit 766e74096 - min-date was
erroneously thought to mean 'min date of date-list'
but actually meant 'negative infinity date'. This
commit changes date comparison logic to always
return #t when comparing (<= min-date date) for
the first date interval.

Test case also created.
2018-02-14 18:36:16 +01:00
Geert Janssens
2e3ec99219 Merge branch 'maint' into unstable 2018-02-14 18:20:18 +01:00
John Clements
e3a00804da fix syntax of example qif file
add (apparently) required separators and transaction descriptions
2018-02-14 18:19:13 +01:00
Geert Janssens
c7b5061e8f Bug 792884 - cmake: gschemas.compiled missing
Fix handling of gschemas.compiled. It should only be called
at install time to regenerate gschemas.compiled based on all
available gschema files. In the installation directory that
can be more than just our own.

Note to force the compilation to run after all gschema files
themselves are installed, the gnome and gnome-utils gschemas
have been moved into a higher-level gschemas directory and
the install command is added there.
2018-02-14 17:56:07 +01:00
fell
5cf58758a2 Merge branch 'translation27DE' into unstable 2018-02-14 14:47:51 +01:00
fell
2a7b0b7b91 Review of PR #268
4910 translated messages, 161 fuzzy translations, 123 untranslated
messages.
14 msgstr lack the keyboard accelerator mark '_'
2018-02-14 14:46:53 +01:00
Christopher Lam
604a2d0864 Bugfix create-commodity-list
45f61a3 had couple bugs.
- value/share was inadvertently swapped
- no need to define comm-list in
  create-commodity-list to return it
2018-02-14 17:15:26 +08:00
Christopher Lam
48a6938e1c Addendum replace numeric to number in scheme
Addendum to e0300d3 - was crashing reports
2018-02-14 17:13:02 +08:00
John Ralls
ae6d2a2340 ADD_DEFINITIONS is obsolete for setting C/CXXFLAGS.
And setting -O0 in a debug build is unnecessary, that's the default.
2018-02-13 16:47:20 -08:00
John Ralls
da0df1c48d Bug 792883 - cmake: no way to turn off -Werror
Prepend settings to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS so that values
supplied on the command line can override the fixed settings.
2018-02-13 14:11:44 -08:00
fell
849b236f7b Merge branch 'maint' into unstable
Conflicts:
	accounts/Makefile.am
	configure.ac
from autotools removed.
2018-02-13 07:46:52 +01:00
fell
a113d71f2c PR #275: Business accounts for India with GST
Commit 5028f66 with adjusted path.
To use it, start e.g.:
$ LANGUAGE=hi LANG=en_IN gnucash
For details about LANG* see
https://wiki.gnucash.org/wiki/Locale_Settings
2018-02-13 06:53:46 +01:00
fell
e2527a98dc Preparation for indian business with GST template 2018-02-13 06:46:05 +01:00
John Ralls
0912a5eaa1 Don't force-set Boost_USE_STATIC_LIBS or Boost_USE_STATIC_RUNTIME.
If you need to do that for your build pass the values in on the cmake
command line.

As for all of the noise about Boost's install name if APPLE, just fix it
with the install name tool. There are instructions at the boost module
in gnucash.modules.
2018-02-12 14:00:09 -08:00
Mechtilde
9c9f4634ed some more German translations 2018-02-12 15:13:14 +01:00
Mechtilde
4e8e4d424d adjust conflicts 2018-02-12 13:13:05 +01:00
Mechtilde
18b6af3d8b correct some typos 2018-02-12 12:02:21 +01:00
Mechtilde
d8e508a376 msgmerge with gnucash-2.7.4.pot 2018-02-12 11:56:34 +01:00
Mechtilde
8c573dbb9f add some more German translations 2018-02-12 11:39:14 +01:00
Mechtilde
97471f2319 add some more German translations 2018-02-12 11:39:14 +01:00
Mechtilde
b6ad4e61e0 add even more German translations 2018-02-12 11:39:14 +01:00
Mechtilde
9207ba8712 add some more German translation 2018-02-12 11:39:14 +01:00
Mechtilde
2914920ff6 add ellipses to fit Common User Access (CUA) under the Tools menu 2018-02-12 11:39:14 +01:00
Mechtilde
2f11fc6fb3 add some German translations 2018-02-12 11:39:14 +01:00