Commit Graph

20467 Commits

Author SHA1 Message Date
Christopher Lam
bcf5f7d751 [income-gst-statement] bugfix must not translate option names
This bug would cause report crash for localized builds because the
option names were localized and could never be retrieved from the
options tree.
2018-12-25 14:17:26 -08:00
Christopher Lam
a5057e8116 [income-gst-statement] allow i10n and fix comments 2018-12-25 14:17:26 -08:00
Christopher Lam
5ce280d5ef [net-charts] use srfi-1 map
This function was created manually and could be simplified by using
srfi-1 map, similar to category-barchart.scm. Much more readable.
2018-12-25 14:17:26 -08:00
Christopher Lam
6e8ac58d93 [report-utilities] introduce gnc:monetaries-add and gnc:monetary+
utility functions to add any number of monetaries

1. gnc:monetaries-add
   input: monetaries...
   output: commodity-collector

2. gnc:monetary+
   input: monetaries...
   output: monetary, assuming 1 commodity only
2018-12-25 14:17:26 -08:00
Christopher Lam
f697eb2f01 [transaction] convert nested if/then/else -> cond
This nested if/then/else snippet is more suited to (cond) syntax.
2018-12-25 14:17:26 -08:00
Christopher Lam
0850e004e2 [welcome-to-gnucash] update (format), use #f for destination
Old format calls without destination would trigger a guile-deprecated
warning. Simple amendment.
2018-12-25 14:17:25 -08:00
Christopher Lam
01a0bc2bb2 Invoice: Remove H1 title and superflous option.
Release Note: Printing the title twice is silly, so remove the option
and the H1 display of the title. Note that the remaining title is in
a div named "invoice-title" so it can be styled with CSS as the user
pleases from the Report Options Layout tab.
2018-12-25 14:12:12 -08:00
John Ralls
53680e6100 Merge Bob Fewell's 'fixes03' into maint. 2018-12-25 11:11:27 -08:00
John Ralls
0621abf3b1 Merge Pedro Albuquerque's Portuguese (Portugal) account templates update into maint
xplain why this merge is necessary,
2018-12-24 14:20:20 -08:00
Pedro Albuquerque
cd2698feda Portuguese (Portugal) account templates update 2018-12-24 14:16:00 -08:00
John Ralls
b8574a004a Merge Christoff Holterman's 'PR-Python-GetBalTaxValues' into maint. 2018-12-24 13:53:22 -08:00
John Ralls
d97508d0ac Merge Frank Oltmans's 'py_get_all_customers' into maint. 2018-12-24 13:45:10 -08:00
Frank Oltmanns
5675dad2f3 Update query for get_all_customers
Use same time of query in get_all_customers as in get_all_invoices
2018-12-24 13:42:22 -08:00
Robert Fewell
db663a298e If you use the autocomplete and cancel other registers are not refreshed
When the autocomplete is used the blank transaction gets the copy of
the originating transaction and if you decide to cancel this any other
open register that had a split in the new transaction is left with
blank rows where the transaction was. Add a test for the pending and
blank transaction being equal and refresh all registers if so.
2018-12-24 13:00:14 +00:00
Robert Fewell
3363736f9c Bug 796978 - Deleting a split of same account as register cancels the transaction without warning
When autocomplete is used, one of the splits takes on the reference to
the blank_split and if you delete this split the whole transaction is
removed. This change compares the split that is about to be deleted to
the blank_split and if the same moves the reference to another split.
2018-12-24 13:00:14 +00:00
Robert Fewell
9e3f50f9e7 The preference, use formal accounting labels does not update the header
With a register open and you change preference 'use formal accounting
labels' it does not update the register header so add a call back for
the preference.
2018-12-24 13:00:14 +00:00
Robert Fewell
ca57ff5043 Make the grid lines of totals Budget tree view track the preferences
Make the grid lines of the totals tree view track the preferences to
match the account tree view above it.
2018-12-24 13:00:14 +00:00
Robert Fewell
0ac2aa8021 Enable the GncTreeView to track the grid line preferences
With these changes when the preferences for showing horizontal or
vertical grid lines are changed it will update the GncTreeView
immediately.
2018-12-24 13:00:14 +00:00
Robert Fewell
c47e6aefe3 Add a couple of defines for the tree view grid lines 2018-12-24 13:00:14 +00:00
Robert Fewell
82d0fa187b Add some space to the budget options
Add some space to the budget options on the left so they are not right
next to the border. Also add a note to specify where the visibility of
accounts is found.
2018-12-24 13:00:14 +00:00
Robert Fewell
bd0e532415 Remove some white space and tabs in dialog-search.c 2018-12-24 13:00:14 +00:00
Robert Fewell
952761afa6 Bug 796945 - Search Search Criteria window does not scroll when added criteria exceed a certain amount
Add the criteria grid to a viewport and scroll window as suggested in
bug report. Also needed to add the hiding of the new scroll window as
required.
2018-12-24 13:00:14 +00:00
Robert Fewell
a8d0270e5a Disallow tabs in GtkTextView in glade files
Disallow the use of tabs in all glade GtkTextView's. This is mainly
used for notes fields and showing log entries. Some views were not
editable but for consistency the setting was also added to them.
2018-12-24 13:00:14 +00:00
Robert Fewell
5c524c31b2 Add routine to fix Account Color being set to "Not Set"
Previously the account color slot has been populated with "Not Set"
when any field for the account has been edited and saved. This routine
should run once and remove all such entries.
2018-12-24 13:00:07 +00:00
Christopher D. Carson
aaeb639d07 Performance fix in dom_chars_handler: use g_strndup instead of g_strdup
Because the origin string can be extraordinarly long, you get more
benefit from this than you would imagine
2018-12-24 13:46:48 +01:00
John Ralls
1a5c2dd254 Merge hauptsignal's 'ekr17' into maint. 2018-12-23 13:48:24 -08:00
hauptsignal
4c4f77ef50 Added template file to CMakeLists 2018-12-23 20:23:47 +01:00
John Ralls
4585f60dd9 Bug 796981 - Gnucash crashes with critical error when selecting another file
The problem is that if the currently open file has a report tab with
another tab to its right and selected then when the selected tab is
closed by the shutdown code Gtk sends a "realize" signal to the report
page. That sets an idle event to gnc_plugin_page_report_load_uri, but the
shutdown code proceeds to destroy the page and GnuCash has loaded the new
session before the idle event fires. By that time there's no page so
GNC_PLUGIN_PAGE_REPORT_GET_PRIVATE naturally returns NULL and the first
dereference crashes.

I couldn't find an easy way to avoid queuing the idle so I opted to protect
the function from the NULL priv.
2018-12-22 11:49:16 -08:00
Robert Fewell
43beeca079 Change the way colours are imported by the CSV account tree importer
When importing the account tree CSV file, change the importing of
colours so that only valid colours for accounts are updated, invalid
colours will result in the account color key slot being removed.
2018-12-22 18:16:17 +00:00
Robert Fewell
7a1f981b0c Change the sensitivity of the Cascade colour menu option
Enable the cascade colour menu setting only when the account being
cascaded from has sub-accounts.
2018-12-22 18:16:17 +00:00
Robert Fewell
fad17da72b Bug 796887 - Remove account slot key color if there is no valid color
If an existing account colour was specified and subsequently removed
the color key would be "Not Set". Change this to remove the key when
the colour is changed to default, i.e. removed.
2018-12-22 18:16:08 +00:00
Frank H. Ellenberger
294c932e3b de.po: Berichtige ein bisher nicht übersetztes Datum-Format
Follow up of commit 7f1a711
2018-12-22 01:20:45 +01:00
YOSHINO Yoshihito
7f1a711567 Bug 796989 - some date/time does not honor user locale
because now it looks for the user locale each time when it formats
datetime, I added Fixme comments.
2018-12-22 01:09:08 +01:00
Frank H. Ellenberger
b2e4148d6e Replace misleading comment for config.h 2018-12-21 07:21:04 +01:00
Frank H. Ellenberger
04c31a5d06 Bug 796988 - Untranslated string in CSV transaction importer
caused by a wrong path
2018-12-21 06:29:31 +01:00
Frank H. Ellenberger
07821be68d de.po: fix 1 MsgStr to test boost::locale::tramslate
preparation for Bug 796988
2018-12-21 06:04:05 +01:00
John Ralls
50d3b6b56d Fix double 'static char*' paste error. 2018-12-20 06:49:56 -08:00
John Ralls
127c658f05 un_escape: More terse, more correct.
Doesn't run past the end of the input string even if the last
character is a quote.
2018-12-19 22:35:18 -08:00
John Ralls
f29764202e Bug 796982 - Import Bills & Invoices: change in un_escape() routine...
causes description and notes fields to be mangled.

Simple error, but rewrote the function to be more idiomatic, resisting
temptation to abuse the ternary operator.
2018-12-18 21:32:06 -08:00
John Ralls
2524482b55 Bug 796883 - Register text oddities
HOME and END need to be treated like right and left arrow keys.
2018-12-16 16:31:43 -08:00
John Ralls
f5be842c2e boost needs bcrypt.lib for all versions of Windows. 2018-12-16 16:31:06 -08:00
hauptsignal
68f8ba8baf Adding austrian account template
Österreichischer Einheitskontenrahmen, Stand Mai 2017
Von der Webseite der Kammer der Steuerberater und Wirtschaftsprüfer
(https://www.ksw.or.at/), Fachgutachten Betriebswirtschaft, KSF/BW 6.
2018-12-16 22:48:21 +01:00
Geert Janssens
9921ab22a2 Merge branch 'fixes02' of https://github.com/Bob-IT/gnucash into maint 2018-12-09 13:15:27 +01:00
Frank H. Ellenberger
353a3812aa Fix another may be used uninitialized warning 2018-12-07 11:55:30 +01:00
Kalev Lember
ff5e7657d5 Fixes to the appdata file
Rename the ID from org.gnucash.Gnucash to org.gnucash.GnuCash to match
flathub, and add a launchable ID to link it to the desktop file.
2018-12-06 09:16:41 +01:00
Christoph Holtermann
ff660a873e Revert "Question about GncMonetary class instead of tuple"
This reverts commit 8fe0b14213.
Question has been discussed in pull request.
2018-12-04 12:17:56 +01:00
Christoph Holtermann
8fe0b14213 Question about GncMonetary class instead of tuple 2018-12-04 12:14:23 +01:00
Christoph Holtermann
b431d471e0 decorate monetary list to access GncCommodity and GncNumeric 2018-12-04 12:14:23 +01:00
Christoph Holtermann
929a3bcd9e pass additional args and document function 2018-12-04 12:14:22 +01:00
Christoph Holtermann
96e27a4199 typo 2018-12-04 12:05:59 +01:00