Commit Graph

21981 Commits

Author SHA1 Message Date
Christopher Lam
9865a99663 [account.cpp] refactor GetBalanceAsOfDate
much more compact loop.
2020-03-15 07:01:55 +08:00
Christopher Lam
8def3ba26e [account.cpp] refactor xaccAccountGetPresentBalance
instead of starting from account->splits tail then backtrack, reuse
existing code.
2020-03-15 06:58:50 +08:00
Christopher Lam
f182d9f912 Bug 797640 - The Reconciliation Window starting balance calculator needs to ignore splits after statement date 2020-03-15 06:40:03 +08:00
Christopher Lam
50674ef632 [gnc-ui-balances] add and expose gnc_ui_account_get_reconciled_balance_as_of_date 2020-03-15 06:40:03 +08:00
Christopher Lam
a8f03cf1c8 [account] add and expose xaccAccountGetReconciledBalanceAsOfDate 2020-03-15 06:40:03 +08:00
John Ralls
cfa1625854 Merge Ferran Pallarès's CSV price-rounding fix into maint. 2020-03-14 13:56:56 -07:00
John Ralls
d188bca06a Merge branch 'bug797432bis' into maint. 2020-03-14 11:23:20 -07:00
John Ralls
d744b79bef Remove disabled code copied from utest-Account.c into utest-Budget.c. 2020-03-14 11:08:27 -07:00
John Ralls
8b61644978 Add more tests for neutral time. 2020-03-14 10:15:32 -07:00
Christopher Lam
6d9e7d9380 Bug 797139 - test-report-utilities failure after 10-march in travis
gnc_dmy2time64_neutral is TZ-insensitive whereas gnc_dmy2time64 and
gnc_dmy2time64_end are TZ-sensitive. Using _neutral mixed with others
will occasionally cause test failures when the dates straddle DST
boundary dates.

Please see bug report on bugzilla for full details.
2020-03-14 11:27:32 +08:00
Frank H. Ellenberger
82987e13f3 gnc-fq-dump: fix warning on argv
Scalar value @ARGV[0] better written as $ARGV[0] at gnc-fq-dump line
160.
2020-03-13 21:22:19 +01:00
Frank H. Ellenberger
56fa959ec0 Apply @PERL@ -w substitution on gnc-fq-dump, too 2020-03-13 20:53:15 +01:00
Christopher Lam
74e66acd50 [job-report] remove dead code 2020-03-11 22:44:04 +08:00
Christopher Lam
9e06345f2e [trep-engine] subtotals when cells have monetary only
Instead of accumulating subtotals from any non-#f value, ensure value
is a gnc-monetary before accumulating subtotals.

This paves the way to allow non-monetary in RHS custom-calculated-cells.
2020-03-11 22:44:04 +08:00
Frank H. Ellenberger
8fccde366a gnucash.desktop: bugzilla and help file moved
I don't know, if X-GNOME-* entries are still in use. Perhaps by MATE?
2020-03-11 11:29:55 +01:00
shastry
0654cb5a27
Remove unwanted space from xmlns sodipodi URI.
SVG icon doesn't open with latest librsvg (2.48) due to bad URI.
XML parse error: error code=99 (3) in (null):10:72: xmlns:sodipodi: 'http://inkscape.sourceforge.net/DTD/s odipodi-0.dtd' is not a valid URI
2020-03-09 09:42:06 +05:30
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
Ferran Pallarès
104519290d Fix rounding precision when importing prices from CSV 2020-02-29 18:51:45 +01: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