Commit Graph

21935 Commits

Author SHA1 Message Date
Geert Janssens
feee495f2e Bug 797624 - Wrong Decimal for Vietnam currencies 2020-02-25 16:40:50 +01:00
John Ralls
9df290da7c Bug 797540 - Mapping of aqbanking accounts to gnucash accounts doesn't work 2020-02-23 14:59:05 -08:00
Dr. Peter Zimmerer
d4f024eff7 Clear hbci KVP from accounts no longer associated with an online one
A reverse hash table is introduced in order to memorize the
matched GnuCash accounts before starting the matching wizard.
This hash table is used within the aai_on_finish callback
to delete only the KVPs of those GnuCash accounts which are
no longer matched with an AqBanking account.
All other GnuCash accounts (previously matched and currently
matched) are just updated with the new assignments.
2020-02-23 10:47:44 +01:00
Dr. Peter Zimmerer
768b25dfd6 Using equality check from commit 2f38095 for removal of unassigned GC accounts
Using the equality check introduced with the previous commit 2f38095
also for checking if a newly assigned GnuCash account has been
previously assigned to a different AqBanking account and
deleting the previous assignment to keep the matches unique.
2020-02-23 10:45:08 +01:00
Dr. Peter Zimmerer
6add6b1f1d New callback functions for matching online accounts with GnuCash accounts
Introducing a dedicated callback function to test two AqBanking accounts for equality and
an associated hash function returning the account unique id as hash value.
2020-02-23 10:36:18 +01:00
Frank H. Ellenberger
0e6c9e2191 Merge PR #635 into maint 2020-02-19 02:27:24 +01:00
Frank H. Ellenberger
0964b31c47 L12N:de_CH: Several fixes on KMU template
Add missing namespaces.
Replace type="guid" by type="new".
Add Placeholder slot to groups.
Remove redundant
   '<act:commodity-scu>100</act:commodity-scu>' and
   '<act:description>.*</act:description>'
<act:type> adjustments:
   RECEIVABLE should only be used for invoices,
   PAYABLE: "Verbindlichkeiten aus Lieferungen und Leistungen"
   (at least one) EQUITY is required. Because we currently do not have
an account type PASSIVA, the node "Passiven" was replaced by a note in
<description> it's child accounts.
2020-02-19 01:34:53 +01:00
Geert Janssens
427368eafd Merge PR#640 2020-02-18 14:52:02 +01:00
Geert Janssens
dd18128927 Tweak appdata file generation some more
Should make it easier for packagers to provide their own releases data.
2020-02-17 14:23:43 +01:00
Geert Janssens
7a16e04822 Use GNUCASH_BUILD_ID in the gnucash appdata file
Add it to the release version if
- it was defined
- and it's not the same as GNC_VCS_REV
2020-02-16 20:02:47 +01:00
Robert Fewell
832ad7e85e Reformat source files gnc-plugin-page.*
Change tabs for spaces and change some space positioning.
2020-02-16 14:39:37 +00:00
Robert Fewell
ba1af5504d Add the 'page_changed' signal to GncEmbeddedWindow
This fixes an error message 'page_changed is invalid for instance of
type GncEmbeddedWindow' when you double click on the selected schedule
in the sx editor.
2020-02-16 14:38:38 +00:00
Robert Fewell
ce0d52e1ef Reports were not being loaded
The reports page uses a g_idle_add against the plugin_page to load the
report once the container for the report is realized. With the changes
to the page focus functions, the use of g_idle_remove_by_data removed
this idle function so no report. Change the page focus functions to
record the id used and then use this id to remove the page focus idle
function.
2020-02-16 14:37:43 +00:00
Christopher Lam
c60555e9c5 [stylesheet-css] reflect recent changes to default CSS
default css contains changes:
* td.highlight
* dark color schemes
2020-02-16 22:28:55 +08:00
Christopher Lam
555a467aba [new-owner-report] revert highlight trigger to onclick
and use Windows libwebkit1-compatible javascript
2020-02-15 22:25:21 +08:00
Christopher Lam
3ac60ed2e4 compact, use (ice-9 match) 2020-02-15 18:28:21 +08:00
Robert Fewell
b23d2445fc New budgets save state information with no changes
If you create a new budget and do not change any thing when closing the
budget or quitting with new budget open the state information for that
budget is saved but the budget is not. To fix this make a change to the
new budget description to force the save of the new budget.
2020-02-13 16:34:25 +00:00
Robert Fewell
7577afe0a9 Bug 796911 - Minimum window width to large.
This is down to the amount of information that is displayed on the
register status bar which can also be influenced by the type of
register being displayed. To fix this the text labels used have been
enabled to ellipsize at the end and also the displayed information has
been added to a tooltip. So for example the minimum app size was
957x736 and after the changes it can be 610x475.
2020-02-13 15:00:54 +00:00
Robert Fewell
f66b7ed275 Follow up to previous commit 94cb965
This commit moves the setting up of the page changed signal callback to
when the plugin page is inserted and also records the id used. This is
used to disconnect this callback when the page is moved to a different
window and also when the page is destroyed.
2020-02-13 10:34:56 +00:00
Christopher Lam
58ddb47f56 [new-owner-report] change highlight trigger: onclick to onmousedown
and also disable event propagation; this disables text selection
2020-02-09 11:29:28 +08:00
Christopher Lam
3be42bebb8 [test-new-owner-report] refine test to target exact table row 2020-02-09 10:35:03 +08:00
Christopher Lam
18acb42344 [new-owner-report] clarify payment-txn processor
use unique varnames
2020-02-09 10:34:58 +08:00
Christopher Lam
09d3e95379 [new-owner-report] if Payment amount is negative, label "Refund"
and add logic to properly handle AP/AR negation rules
2020-02-09 10:10:38 +08:00
Christopher Lam
6e64a37839 [new-owner-report] fix comment for non-document accumulator 2020-02-09 10:10:34 +08:00
Christopher Lam
19db1daed6 Bug 797419 - equity-statement unrealized-gain calculator uses weighted-average
for consistency. all other unrealized-gain calculators use average-cost.
2020-02-08 23:46:29 +08:00
Christopher Lam
7cbe367caf [new-owner-report] LHS invoice->payment LINK/PAYMENT merge
* invoice->payment LINK or PAYMENT txns are handled identically. Merge.
* reorder definitions in document handler.
* rename variable 'invoice' to 'document'; invoice was clashing with
  outer variable. This fixes a credit-note negation bug.
2020-02-08 23:46:17 +08:00
Christopher Lam
70d8acc7ac [test-new-owner-report] add tests for "$120 to partially repay" 2020-02-08 22:47:32 +08:00
Geert Janssens
1ccea05b6e CMake - drop LC_ALL=C for generation of appdata and desktop files
It doesn't seem to have any noticable effect.
2020-02-08 13:54:28 +01:00
Geert Janssens
cce69e37d2 Rework appdata and desktop file generation
- attempt to merge in translations before merging in version data
- add the intermediate file (with translations) to the dist tarball
- dist builds no longer have to run the translation merge, but can instead
  use the included intermediate file. This accomodates distros with
  older gettext versions.
2020-02-08 13:43:02 +01:00
Geert Janssens
8243496ed0 Rework our gettext tests
- only abort configuration if gettext is older than 0.18.1 (required for string extraction from scheme files)
- otherwise always continue but disable a few other build steps depending on the gettext version
- use feature variables to more clearly convey what is enabled or disabled
2020-02-08 13:19:23 +01:00
Geert Janssens
f27cbd4a11 Fix dist after renaming account directory hu_HU to hu 2020-02-08 13:19:23 +01:00
Christopher Lam
e90e9cbd8c [test-new-owner-report] initial commit
Tests some basic business transactions

* 1 invoice for $6.75

* 1 invoice for $11.50
  2 partial payments $1.50 and $2.00

* 1 credit-note for $3.00

* 1 invoice for $28
  1 credit note for $27
  1 payment linking both including $1 bank transfer
2020-02-08 09:02:12 +08:00
Christopher Lam
9a90e97009 [new-owner-report] negate RHS inv amounts if credit-note. 2020-02-08 09:02:07 +08:00
Geert Janssens
90e95ba8ef CMake - remove parameter repetition in else() and endif() statements - part 2
This follows Professional CMake's recommended practises
I missed plenty of these in my first commit. This one should fix
these remaining occurrences.
2020-02-06 16:16:36 +01:00
Christopher Lam
7f794bb26b Merge branch 'maint-fix-budget-totals' into maint 2020-02-06 20:37:43 +08:00
Christopher Lam
e523d52802 [eguile-gnc] show error after stacktrace
... which makes the error more visible
and reuse gnc:html-string-sanitize
2020-02-05 23:30:13 +08:00
Geert Janssens
a0fb7d3bd6 Merge branch 'patch-1' of https://github.com/pau4o/gnucash into maint 2020-02-05 16:25:19 +01:00
Geert Janssens
4f624087e1 Budget Treeview - reshuffle totals logic
The rearranged switch statements case on row_type rather than
account type. This gives better isolation of the account types
vs row_types in the conditions inside each case.
2020-02-05 16:02:49 +01:00
Geert Janssens
e79e82edcf CMake - remove parameter repetition in else() and endif() statements
This follows Professional CMake's recommended practises
2020-02-05 11:38:14 +01:00
Christopher Lam
8365283f18 Bug 797609 - Backtraces for eguile report errors strips wrong part of stack
Previous code used invalid algorithm to capture the desired error
stack. Use simpler capture code, which does not require capturing the
good stack.
2020-02-05 16:50:41 +08:00
Christopher Lam
bb986e474c [eguile-utilities] compact code, use (ice-9 match) 2020-02-05 16:50:41 +08:00
Christopher Lam
c94b433187 [commodity-utilities] compact code, use (ice-9 match) 2020-02-05 16:50:41 +08:00
Christopher Lam
ad094f4345 [report-utilities] compact code, use (ice-9 match) 2020-02-05 16:50:41 +08:00
Christopher Lam
dafff68914 [lot-viewer] show lot guid in headers
* also compact code, use partition
* also don't need to localise option string for debugging tool
2020-02-05 15:25:02 +08:00
Christopher Lam
b0b6f2c6eb fix budget totals for unreversed budgets books 2020-02-05 06:42:57 +08:00
Kamen Naydenov
a456c8a33c
Fix white text on white background
When dark theme is active in Gnome Shell it sets text colour to white, combined with background colour set in default style to white lead to unreadable reports.
2020-02-03 18:26:59 +02:00
Alex Aycinena
f1667e7ba8 Update US Income Tax information for more 2019 changes 2020-02-02 13:58:00 -08:00
gnucash-dev
a44bd34dcf Correct double-counting of accounts in some cases in US Income Tax Report. 2020-02-02 13:13:50 -08:00
Christopher Lam
1e0983d0d8 Merge branch 'maint-202001-budget-editor-summaries' into maint 2020-02-02 14:40:05 +08:00
Christopher Lam
0c5bded6fc [report-utilities] streamline (match) use
reduces the indent level
2020-02-02 14:40:01 +08:00