Commit Graph

21263 Commits

Author SHA1 Message Date
John Ralls
580696681a Replace gitlog2ul.sh with git-release-notes.pl.
git-release-notes.pl finds the last release on its own and formats
the log output separately as text for NEWS and HTML for the announcements.
2019-06-27 16:43:43 -07:00
Christopher Lam
72bdaeefcd [register] eradicate gnc-default-currency from .scm code
The conditional (null? (xaccSplitGetAccount split)) can never be true
because it was already handled previously in code via the
"(null? (xaccSplitGetAccount (car splits))" cond clause to handle bug
639082
2019-06-24 20:29:01 +08:00
Christopher Lam
0c5f79a58f [job-report] bugfix display amounts with owner currency
* eradicate gnc-default-currency from .scm code

This parallels aec61497 whereby customer & vendor total amounts were
rendered with default_currency instead of owner currency
2019-06-24 19:46:15 +08:00
Dawid Wróbel
38a3d62f00
Check and UTF8-encode the names if needed
Fixes the "Wide character in subroutine entry" error for some UTF8 entries
2019-06-23 19:51:21 -04:00
Christopher Lam
2d06d703f2 Fix for import-match-picker "Balanced" amount currency
Import match picker showed amount in default_currency. Fix to show in
the transaction's currency.
2019-06-23 18:42:03 +08:00
Robert Fewell
262a1fac5d Fix double-click for import-main-matcher.c
The New multiselect feature used two boolean values that was set up as
pointers but there was a error with one if statement that stopped the
double-click to run the match dialogue. Changed all occurrences to just
use boolean values.
2019-06-23 10:43:57 +01:00
Robert Fewell
b50ed47556 Make similar correction to gnc-imp-props-tx.cpp for incorrect find use. 2019-06-22 10:20:57 +01:00
Robert Fewell
8c387c1c97 Bug797244 - Remove the invert prices for less than 1
Previously where prices were less than 1, the commodities involved were
swapped and the price inverted, this is no longer required so removed
in the price importer and the transfer dialogue.
2019-06-22 10:20:57 +01:00
Robert Fewell
90b2d8f1f5 Change the Commodity/Currency combo's on Price Import
Change the way the sorting is done for the Commodity and Currency
combo's for the Price Import. For the Commodity combo group all non
currencies together at the start and add a separator row.
2019-06-22 10:20:57 +01:00
Robert Fewell
5213a91b0f Bug797278 - Create an option for type of commodity for Price import
Currently when you use the 'Commodity From' column for Price imports it
can match against the wrong commodity like COP (Conoco Philips) would
match against the currency COP (Columbian Peso). To fix this add a new
column type 'From Namespace' and rename 'Commodity From' to
'From Symbol' so they match the Security Editor.
2019-06-22 10:20:57 +01:00
Christopher Lam
03d9bf902a [html-acct-table] compact gnc:html-make-nbsps
avoid repeatedly string-append
2019-06-21 23:40:52 +08:00
Christopher Lam
7b5ff8d894 [html-acct-table] compact gnc-commodity-table 2019-06-21 23:40:52 +08:00
Christopher Lam
7c9145a711 Set the summarybar currency to default_currency 2019-06-21 23:24:57 +08:00
John Ralls
3731c84f0c Fix copy-paste error. 2019-06-20 14:25:01 -07:00
John Ralls
77564b1e43 Bug 797281 - Gnucash crashes when attempting to match online accounts
Don't create a static string and then try to free it.
2019-06-20 07:44:28 -07:00
Christopher Lam
58be8f6baf Bug 797262 - Change "Today date format"
Mark strftime format string translatable
2019-06-19 22:10:23 +08:00
Christopher Lam
039b84871e [utilities] warn against using guile's strftime
strftime has been banished from code; warning for custom-reports

https://www.mail-archive.com/bug-guile@gnu.org/msg09778.html
2019-06-19 22:10:23 +08:00
Christopher Lam
72974d7a13 [html-utilities] fix logic error in gnc:assign-colors
Unfortunately 3b187a128 was written with logic error and should have
been tested better.
2019-06-19 22:10:23 +08:00
John Ralls
8ed150896d Merge Milotype's 'hr-readme' into maint. 2019-06-18 19:49:51 -07:00
milotype
8f6a7690fd
Update README-hr.win32-bin.txt
Minor corrections, https, BOM
2019-06-19 01:18:47 +02:00
milotype
2ea23979c8 Update hr.po 2019-06-19 00:20:50 +02:00
milotype
0ec394f191 Update README-hr.win32-bin.txt
Minor corrections
2019-06-19 00:20:50 +02:00
Christopher Lam
c3cf5e2808 Deprecate unused code related to gnc:colspans-are-working-right
colspans code has never been fixed. remove unused code.
2019-06-18 23:30:01 +08:00
Christopher Lam
a44a1a4c23 Deprecate unused function gnc:second-html-build-acct-table
and ensure gnc:html-build-acct-table is redefined to the former
gnc:first-html-build-acct-table, and gnc:first-html-build-acct-table
redirects to gnc:html-build-acct-table.

It would seem gnc:second-html-build-acct-table has never been used.
2019-06-18 23:30:01 +08:00
Christopher Lam
d16b1380c5 [html-acct-table] Further deprecate unused functions 2019-06-18 23:30:01 +08:00
Christopher Lam
a1ad9da03f Bug 797277 - Assets over time ignores nested liabilities
This is caused by the omission of selected accounts' descendant
accounts during generation of accounts-balances-alist.

The subsequent function account->balance-list was querying the
accounts-balances-alist for subaccounts' (of any account-type)
balances but these were missing.

This commit ensures all selected accounts (whose types depended on the
chart-type), and all their descendant accounts (of any account-type)
were scanned to generate the account-balances-list.
2019-06-18 23:30:01 +08:00
Christopher Lam
3b187a1282 [html-utilities] tighten code
using list-ref and length repeatedly is usually less efficient than
testing against null?
2019-06-18 23:13:22 +08:00
Christopher Lam
a33302f1e6 [trep-engine] addendum forgot to close file-port in 497e18c36
we can use call-with-input-file which automatically closes file port
when lambda is completed.
2019-06-18 18:07:19 +08:00
milotype
410ae95759
Update hr.po
Some translation corrections and file clean-up.
2019-06-15 22:27:30 +02:00
Christopher Lam
2c04ae310b [trep-engine] allow #:custom-source-accounts kwarg
specifying #:custom-source-accounts will override the (opt-val
"Accounts" "Accounts") option to specify source accounts

This is useful for custom-reports which may need multiple source
accounts. eg. VAT/GST report (still in development).
2019-06-13 22:16:02 +08:00
Christopher Lam
f6bfdabd3e [trep-engine] allow #f for friendly-fn
During defition of custom-calculated-cells, we should allow #f as
friendly-fn which will disable it.
2019-06-13 22:16:01 +08:00
Christopher Lam
241f1f9274 [test-transaction] add csv test
runs report with csv output
test csv output matches expectation
2019-06-13 22:16:01 +08:00
Christopher Lam
497e18c36e [trep-engine] allow csv export of grand-totals
This commit enables CSV export of split monetary columns and
grand-totals.

Sample CSV output:
"from","2018-01-01"
"to","2018-03-31"
"Debit",4270.88
"Credit",8314.44

* Note dates are iso-format strings.

* If a grand-total has multiple currencies, all will be listed
  e.g. grand-total 100GBP + 50USD will show as: "Amount",100.0,50.0

* Dual subtotals (debit/credit) will not be exportable as CSVs because
  they are not merged
2019-06-13 22:16:01 +08:00
Christopher Lam
ca759fb492 [taxtxf] fix copy-n-paste error
101f840255 had copy&paste error, fix function names
2019-06-12 22:22:53 +08:00
John Ralls
59f9b7786d Don't test gnc:html-string-sanitize on emoji if guile doesn't understand them.
Fixes test failures on guile 2.0.13 where SRFI64 is available but
Unicode is broken.
2019-06-09 12:34:53 -07:00
Robert Fewell
aa3e46a60f Enable the shadow type for the notes scroll window
On the budget options dialogue, the notes field is not visible so
enable the shadow type for the scroll window to get an outline.
2019-06-08 15:00:52 +01:00
Robert Fewell
4796956d84 Stop error when adding commodity
Change the function gnc_tree_view_commodity_select_commodity to just
return when there is no commodity to stop error being logged.
2019-06-08 15:00:52 +01:00
Robert Fewell
7b6134ad5c Follow up on some changes to Aqbanking Dialogue
This commit changes the buttons to use names and enables the
translation of these so they are the same as the rest of the
application. Also added some missing underline settings and the
mnemonic widget they are pointing to.
2019-06-08 15:00:46 +01:00
Robert Fewell
c3794d1907 Changes to the default layout for glade files
With glade version 3.22.1, the default settings and layouts were
changed so this commit applies them so going forward they should not
be highlighted.
2019-06-08 14:41:58 +01:00
Robert Fewell
21e87d6086 Bug 797266 - Missing translation settings
These glade files were missing the setting to enable translations on
various widgets so it has been set.
2019-06-08 14:39:17 +01:00
Robert Fewell
fd3a8c3211 Remove some white space from import-main-matcher.c
Remove some white space and insert a space at the end
of some function names.
2019-06-08 13:54:46 +01:00
Robert Fewell
0a1a28be16 Readd the fix for the date/amount sorting for import main matcher 2019-06-07 16:47:22 +01:00
Geert Janssens
520f350a99 Readd byte-order-mark (BOM) to windows README files
Without this mark the inno setup install won't recognize these files as UTF-8
2019-06-07 16:57:22 +02:00
Christopher Lam
9752daa88c [i18n] fix translator comments to be visible to gettext
Part of Bug 797270 - Budget Chart report - translation of header and
dates

Previously, the translator comments were on the same line and were not
processed into .po clues -- this commit fixes it.
2019-06-07 21:20:22 +08:00
Geert Janssens
15a35e6a3b Housekeeping - replace plenty of http links with https
There are more, but these are most common ones.
There are also a number of urls that don't behave well when https, so those are skipped
At some point I have also started marking non-working URLs as [DEAD LINK], though
that's not a full coverage.
2019-06-06 15:52:30 +02:00
Geert Janssens
fd6ce1612b Readd the Export To Pdf function for Webkit1 based builds 2019-06-05 17:38:29 +02:00
David Cousens
5f51fc5406 ImportMatcherMultiSelect
Mods to import-main-matcher.c and dialog-import.glade to implement multi-selection of transactions to import and assignment of a single transfer account to the selection

Silence Deprecation Warning

Added conditional replacement of gtk_menu_popup in import-main-matcher.c and reapplied changes to treeview to current version of dialog-import.glade from maint branch.

ImportMatcherMultiSelect #497  Fixes

fixed GTK deprecation selection to use GTK_CHECK_VERSION, deleted g-list-free(l..., , added check for  a selection before popping
ImportMatcherMultiSelect #497 GTKFix

Fix to mixup of deprecated and replacement GTK function for popup menu
 Open ImportMatcherMultiSelect #497 Delet g_list_free..
2019-06-05 15:20:35 +02:00
Robert Fewell
cc12fcf322 Add new function named similar to remove class function
The existing function name to add CSS classes for style contexts was
not correct so add a new function gnc_widget_style_context_add_class
named similar to remove function and use it for the existing
'gnc-class-highlight'. Change old function to use this new one with the
old one being removed in master.
2019-06-04 10:44:14 +01:00
Robert Fewell
a22ad2e0b8 Bug 797246 - Cleared Balance Remains Red After Turning Positive
When changing the negative numbers to red a CSS class is added to set
the colour but it is not removed when changing the number becomes
positive. Add function to remove a CSS class if present and use in the
gnc_set_label_color function.
2019-06-04 10:43:47 +01:00
John Ralls
9056b14d9e Merge Adrién Panella's 'budget'into maint. 2019-06-03 10:19:02 -07:00