Commit Graph

21961 Commits

Author SHA1 Message Date
Mike Alexander
9e35aea588 Fix a typo in commit 4318f7a: gnc.scm, not gcc:scm 2020-03-08 18:11:51 -04:00
Mike Alexander
4318f7a3c7 Revert "completion redefine gnc:debug" and fix some bugs in it
This change made it impossible to turn debug output on or off on the
fly by calling qof-log-set-level from Scheme code.  The optimization
achieved isn't all that great either since the arguements to
gnc:debug are still evaluated when debugging is off and this is
where a lot of the overhead is. Even without this change the call to
strify is avoided.

Also fixed the parameters of qof-log-check:
    "gmc" => "gnc.scm"
    G-LOG-LEVEL-DEBUG => QOF-LOG-DEBUG

This reverts commit b3a4cd6277.
2020-03-07 23:44:16 -05:00
Frank H. Ellenberger
5592100053 L12N:de_DE: SKR04: Do not hide accounts in templates
A former contributor had hidden several accounts, which he in his
business did not use. New users might have no clue about their
existence. To avoid cluttering the drop-down list they are now marked as
placeholder.
2020-03-04 13:42:08 +01:00
Frank H. Ellenberger
fb9e695b45 L12N:de_DE: SKR04: Part 2 of Bug 513000
Caused by an error in the german translation in 2005 I had created many
accounts of type PAYABLE, which should have been normal LIABILITY
accounts. They should not show up in the "Post [invoice] to account"
list.

Because the other german contributors in 2008 did not understand the
difference between the account types, the change had been rejected for
SKR04, although it was accepted for SKR03.
2020-03-04 09:37:07 +01:00
Frank H. Ellenberger
a6c31860ed L12N:de_DE: SKR04: Add a few missing placeholder flags, fix a typo 2020-03-04 09:37:06 +01:00
Frank H. Ellenberger
21a039f278 L12N:de_DE: Remove some redundant slots from SKR04
empty notes, flags with value false, ...

- reduces the size by 30%
2020-03-04 09:37:06 +01:00
Christopher Lam
2c1ce30d7d [qif-to-gnc] centralize arithmetic functions 2020-03-01 13:40:12 +08:00
Christopher Lam
742b97229c [trep-engine] when Running Balance is shown, print "Balance b/f" 2020-03-01 13:30:31 +08:00
Christopher Lam
1d9c51d8e4 [qif-to-gnc] Bug 796579 - Cannot go forward with empty duplicates screen
better fix for bug 796579.

far-acct-info is a record with acct-info
far-acct-name is a string
far-acct      is a gnucash account object

(default-unspec-acct) always returns a string "Unspecified".

983c7ce0b was trying to find, from qif-memo-map the mapping for
"Unspecified" which isn't typically part of qif-memo-map. Therefore
far-acct-info would remain #f and fail the qif-map-entry:gnc-name.

Better fix: if far-acct-info cannot be derived, use unspecified account.
2020-03-01 13:30:31 +08:00
Christopher Lam
ec99c00714 [qif-to-gnc] use (ice-9 match), and compact functions 2020-03-01 13:30:31 +08:00
Christopher Lam
11689e2a4d [qif-guess-map] use (ice-9 match), and compact functions 2020-03-01 11:17:04 +08:00
Christopher Lam
890c96ce23 [qif-merge-groups] Move gnc:account-tree-get-transactions to qif-to-gnc.scm
This function is only used by qif-to-gnc.scm
2020-03-01 11:17:04 +08:00
Geert Janssens
453919b3f6 Bug 797613 Due Invoices Reminder shows Job Name instead of Company Name
This closes #653
2020-02-29 17:34:02 +01:00
Rob Laan
7845f81846 Bug 797613 Due Invoices Reminder shows Job Name instead of Company Name
In the invoices due dialog, the column 'Company' should show the name of the customer/vendor of an invoice/bill.
Currently the content is set to the owner name, but if a job is assigned to the invoice, that will show the job name.
This change changes the content to the name of the owner parent, which is always  the customer/vendor name.
2020-02-29 16:10:24 +01:00
Geert Janssens
d7eb24f205 Travis - don't try to copy the removed afterfailure file to the test container 2020-02-29 13:43:33 +01:00
Geert Janssens
b5dfef628e Travis - use ctest built-in feature to verbosely log test failures
Setting CTEST_OUTPUT_ON_FAILURE will cause ctest to log all
output from failing tests (and only from failing tests).
This will reduce our ci output in case of failures as our
homebrew script 'afterfailure' would output all test logs
in case of failure not only the output of failed tests.
2020-02-29 12:58:18 +01:00
John Ralls
95857a8b99 Merge Christian Gruber's 'fix_bug_797587' into maint. 2020-02-28 21:29:58 -07:00
Geert Janssens
b9d625d25f Move lot viewer to business-reports
It depends on the business-reports module which is not available to
standard-reports at build time
Interestingly this only is an issue for the makefile generator
The ninja generator works fine
2020-02-28 18:13:26 +01:00
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
Christian Gruber
7509b542da Simplify function build_bayes()
Inline function parse_bayes_imap_info() into build_bayes() and remove
temp_guid.
2020-02-17 23:41:05 +01:00
Christian Gruber
01c76e2391 Remove unused template of function for_each_slot_prefix()
for_each_slot_prefix() is not used anywhere with two arguments
2020-02-17 23:41:05 +01:00
Christian Gruber
41863be9c7 Avoid copying local instance of AccountTokenCount 2020-02-17 23:41:05 +01:00
Christian Gruber
d07d4b962f Fix tokenize_string()
This fix prevents empty strings as tokens and removes duplicated tokens.
Function tokenize_string() is used for bayesian import matching, where
empty token strings or duplicated tokens lead to wrong results within
probability calculation for matching of a transaction to an account.

Empty token strings can occur if (see function g_strsplit())
* two or more spaces occur directly after another
* the string begins or ends with spaces
2020-02-17 23:41:05 +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
Christian Gruber
322f2d99de Rework key prefix matching
Use C string comparison instead of C++ function std::mismatch to increase
performance.
2020-02-10 22:31:29 +01: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