Commit Graph

23075 Commits

Author SHA1 Message Date
jean
79fdcf2f71 Remove created commodities code as it does nothing 2020-07-01 12:33:54 -07:00
Christopher Lam
cf5aa925f9 Bug 797828 - Budget Barchart was not upgraded
* upgrade to html-chart
* use period start/end instead of date start/end
2020-07-01 21:14:19 +08:00
Christopher Lam
948a9a293c Bug 797835 - Zero Crossing in 4.0 that wasn't in 3.10 2020-07-01 19:44:11 +08:00
Christopher Lam
24add7b1f3 [balsheet-pnl] remove monetary-less 2020-06-30 23:09:19 +08:00
Christopher Lam
7d02897dd2 Bug 797830 - Expense over time has extra empty row
This is a *subtle* bug.

1. dates-list is the list of report-dates at periodic intervals
2. if an interval report (i.e. inc/exp) is chosen, we want to omit the
   last one, because the report analyses changes in value between
   adjacent dates.
3. dates-list was appropriately redefined to be 1 element shorter than
   the original dates-list.
4. date-string-list (for display labels) was meant to pick up the
   shorter dates-list, formatted via qof-print-date.

Unfortunately the let statement had defined both dates-list and
date-string-list at the same time, therefore date-string-list did not
pick up the redefined dates-list. Using let* instead means it uses the
shorter dates-list, and omits the last element as intended for display.
2020-06-30 21:51:34 +08:00
Christopher Lam
fdc2238192 [budget-barchart] reindent/delete-trailing-whitespace/untabify 2020-06-30 17:51:08 +08:00
Christopher Lam
2610b5f57f [advanced-portfolio] fix report warnings flags
the flags warn-no-price and warn-price-dirty are report-specific
warnings to flag price difficulties. these warnings must now be
recorded in table-add-stock-rows because they are not accessible
globally.
2020-06-29 21:09:33 +08:00
jean
4afe4f95dd Bug 797825 - OFX import crashes on import of investment transaction
The crash is caused by an uninitialized pointer in ofx_info.
This fixed it.
2020-06-28 23:28:17 -07:00
Christopher Lam
8d47622ab6 [advanced-portfolio] move table-add-stock-rows toplevel 2020-06-28 12:24:17 +08:00
Christopher Lam
945c11e2b1 [advanced-portfolio] simplify basis functions 2020-06-28 12:24:17 +08:00
Christopher Lam
c68f282861 [advanced-portfolio] simplify basis-builder
and use scheme division which is more accurate than
gnc_numeric_div. tests need to change slightly.
2020-06-28 12:24:17 +08:00
John Ralls
3d931511e0 Release GnuCash 4.0 2020-06-27 14:56:20 -07:00
John Ralls
4064c58cd0 Release GnuCash 3.11 2020-06-27 14:54:50 -07:00
John Ralls
0fe9ba79e2 Release GnuCash 3.11 2020-06-26 17:10:45 -07:00
Christian Stimming
5cf5edc2fb L12N: Update German translation
5501 translated, 6 fuzzy, 44 untranslated
2020-06-26 22:59:02 +02:00
Christian Stimming
f98b1807e2 L12N: merge recent gnucash.pot in de.po file 2020-06-26 22:58:24 +02:00
Geert Janssens
72b8a0ce67 I18n - fix quote unification
Our guidelines favour double quotes over single quotes
2020-06-26 18:08:12 +02:00
Geert Janssens
d6e7168abf I18n - update Dutch translation
4632 translated messages, 640 fuzzy translations, 289 untranslated messages
2020-06-26 17:30:55 +02:00
Geert Janssens
3b290fadbc I18n - Drop a few numbers from translation.
These numbers don't have values unique to certain locales. Though
users may set their own preference, it's not a locale related thing.
2020-06-26 17:30:55 +02:00
Geert Janssens
e15203a58e I18n - Unify two similar translatable strings 2020-06-26 17:30:55 +02:00
Geert Janssens
3446a66a33 Bug 787295 - Allow UI jump from Business accounts to their relevant invoice/bill/voucher
Combine the best of both approaches and allow jumping to invoice if
either
- the current txn is an invoice transaction
- the current split has an invoice associated with it
Those are the only two conditions that allow us to uniquely
identify an invoice from a register.
A future extension could be to allow a jump if any split
of the current txn has an invoice associated with it.
This would need user interaction if more than one split
is linked to an invoice. A payment transaction for example
can pay more than one invoice and hence can have more than one
invoice related split.
2020-06-26 17:30:55 +02:00
Robert Fewell
a019bb2f2d Revert the changes made to save Register default layouts as discussed in PR #743 2020-06-26 15:35:41 +01:00
Robert Fewell
2c62ae418b Setting a sheet column width to 1 when resizing by dragging
Column widths of 0 are not saved by the table and so revert back to
calculated widths when reloaded. This change sets the column width to
1 when the right border is dragged to the left border to hide columns.
By doing this, a visual indication of a hidden column is seen as the
column border is now wider by 1px.
2020-06-26 15:35:41 +01:00
Robert Fewell
98cfad8cd7 Move the menu options for saving Business layouts
Move the menu options for saving/resetting Business layouts to the
'View' menu from the 'Windows' menu.
2020-06-26 15:35:41 +01:00
Robert Fewell
47f0959f46 Disable showing glyphs for associations on MacOS
Currently there are problems showing glyphs on MacOS so always return
FALSE for the gcn_assoc_cell_set_use_glyphs for MacOS
2020-06-26 15:35:41 +01:00
Frank H. Ellenberger
af51e737e7 Merge PR #744 2020-06-26 15:50:34 +02:00
Christian Stimming
c69f0eb5f3 i18n: Fix missing context in single-character translated strings
The single-character column heading "C" is used for "Color" in one
place,
and for "Cleared" in another place. Obviously this must be fixed by
adding
context, otherwise grossly wrong translations will show up (as is
currently
the case for German and the "Cleared" column in the import matcher)
PR #744
2020-06-26 15:47:15 +02:00
Geert Janssens
6bfd85368a Bug 787295 - Allow UI jump from Business accounts to their relevant invoice/bill/voucher
Amendment - the current implementation will allow to click
on each split in a bussines account (payments and invoices)
but won't allow to jump from an invoice split in an income
or expense account. This amendment changes this such that
one can jump from any split whose transaction is an invoice
transaction. This allows jumping from income and expense accounts
if their splits are related to an invoice. It loses the ability
to jump from payment splits in a business account.
This is however more correct as payment transactions are not
necessarily associated with exactly one invoice (it can be
none, one or many).
If jumping from payment transactions should be supported as well
that will require more effort, namely if many invoices are
associated with the payment, the user should be asked which one
to open.
2020-06-25 13:56:57 +02:00
Christopher Lam
c12c6af2fb [test-portfolios] 100% coverage for advanced-portfolio helper fns 2020-06-24 10:10:06 +08:00
Christopher Lam
64637f72cf [advanced-portfolio] move helper functions to toplevel for testing
functions are moved to toplevel advanced-portfolio.scm. this allows
them to be tested.
2020-06-24 09:36:48 +08:00
Christopher Lam
47e2fb9d85 [eguile-utilities] fmtnumeric displays decimal instead of fraction
previously fmtnumeric would convert gnc_numeric to double. simplifying
the code had omitted this conversion, and exact fractions were
rendered. ensure decimal is rendered.
2020-06-23 19:16:46 +08:00
Geert Janssens
fb9cde3684 Bug 797815 - Obsolete gnucash-launcher.cmd still shipped 2020-06-22 20:37:17 +02:00
Christopher Lam
d5a957278f [html-utilities] use ice-9 match 2020-06-22 19:53:31 +08:00
Christopher Lam
8db13470e2 deprecations: remove functions deprecated in 3.x 2020-06-22 19:53:31 +08:00
Christopher Lam
851bc7f8d9 deprecations: clarify functions deprecated in 4.x. 2020-06-22 19:53:29 +08:00
Christian Stimming
f072fef014 i18n: very minor string improvement: Match string to another existing one
So no new string is introduced, just two are merged into on in the i18n.
2020-06-21 23:21:54 +02:00
Christian Stimming
bdc2c7bad8 L12N:de update translation
5475 übersetzte Meldungen, 27 ungenaue Übersetzungen,
71 unübersetzte Meldungen.
2020-06-21 23:21:14 +02:00
Geert Janssens
1d3164bfdb Build depedency fix - build backend libararies before the guile bindings
Compiling our guile scripts will run loaded libraries. One of the libraries to
load is the engine library which expects to find the enabled backends (xml and or dbi).
If those aren't built yet, this will result in error messages printed in the build output.
2020-06-21 21:45:57 +02:00
Geert Janssens
7b090c710a Drop code to attach output to console on Windows
This was not built-in by default (required a build-time define to be set)
and intended only for debugging.
Most of its intended goal can also be achieved by redirecting
standard output from the command line (verified to work in cmd.exe):
gnucash --help | more
gnucash --help > file-to-store-output.txt 2>&1
2020-06-21 21:18:07 +02:00
c-holtermann
7c8e0a28fc better display for doxygen, typo and consistent naming 2020-06-21 16:24:53 +02:00
c-holtermann
3e842a7bf6 use urllib.parse.urlparse to check for xml on python Session init 2020-06-21 16:24:53 +02:00
c-holtermann
b9c6fc2876 add some unittests for python Session
test arguments, deprecated as well as new mode arguments
test creating a session with a new xml file using __init__()
and begin(). Test raising exception when opening nonexistent
file without respective mode setting.
2020-06-21 16:23:32 +02:00
c-holtermann
0434acbe10 reformat two python example scripts with black
use black python code formatter on latex_invoices.py and gncinvoice_jinja.py
2020-06-21 16:23:32 +02:00
c-holtermann
485d8a65b0 decorate Session.begin with default mode argument 2020-06-21 16:23:32 +02:00
c-holtermann
44e61f4df2 enable Session.__init__() to be provided with existing instance or book 2020-06-21 16:23:32 +02:00
c-holtermann
5833c5afcb add unittests for function_class
add tests for some existing function_class functionality.
Add tests for the keyword argument changes.
2020-06-21 16:23:32 +02:00
c-holtermann
17d606e1f8 enable keyword arguments for default_arguments_decorator
default_arguments_decorator until now only allows positional
argument defaults. This adds keyword defaults. The keywords
can be mapped to the positional arguments by optional argument
kargs_pos so interactions between keyword and positional arg
defaults can raise a TypeError. Some more information in
the docstring is included. In addition the docstring of
the wrapped function will be modified to contain information
about the defaults.
2020-06-21 16:23:32 +02:00
c-holtermann
c222503f42 add method decorate_method to function_class.py
ClassFromFunctions.decorate_method() allows to provide positional
and keyword arguments for the decorator call besides the wrapped
method.
2020-06-21 16:23:32 +02:00
c-holtermann
ee77b713c2 update example scripts to SessionOpenMode 2020-06-21 16:23:32 +02:00
c-holtermann
b073dbc5c3 allow keyword arguments for function_class.py
allow keyword arguments for function_class methods
and functions. process_dict_convert_to_instance() is added to
mimic the behavior of the process_list_convert_to_instance()
Derived methods in gnucash_core.py like raise_backend_errors_after_call
get modified to accept being called with keyword args.
Also adds some docstrings.
2020-06-21 16:23:32 +02:00