Commit Graph

525 Commits

Author SHA1 Message Date
Christopher Lam
db085ec457 [csv-transactions-export.cpp] convert to cpp, use fstream
- using std::ofstream
2023-04-05 20:37:12 +08:00
Christopher Lam
cb8cdd1b99 [csv-tree-export.cpp] convert to cpp, use fstream 2023-04-05 20:37:12 +08:00
Christopher Lam
e6352f5497 [csv-export-helpers.cpp] helper function and full test suite 2023-04-05 20:37:12 +08:00
Geert Janssens
d75ab275f1 Eliminate gnc-csv-account-map.[ch]
The code is was only used by the csv import assistant and forced
gtk as a dependency on gnc-imp-props-tx

Part has been moved to Account, other bits have
been moved to the importer code where they were
used.
2023-03-13 19:58:10 +01:00
John Ralls
c9f8137ca2 Merge branch 'maint' 2023-03-03 11:23:55 -08:00
John Ralls
931b102312 [stock-txn-asst] Enable translations, slightly fewer strings.
Remove context from strings that are mostly unique to the assistant.
2023-03-03 09:58:01 -08:00
John Ralls
3686ad4174 Update POTFILE.in for sample-report.scm. 2023-02-12 15:19:32 -08:00
Geert Janssens
60209a766f Merge branch 'csv_import' 2023-02-04 19:13:16 +01:00
Geert Janssens
376f0bfae9 Convert import-backend.c to cpp
Allows even more concise code.
2023-02-04 16:53:20 +01:00
John Ralls
12db8eaaf2 Merge Bob Fewell's 'bug753307master' into master. 2023-02-02 13:58:26 -08:00
John Ralls
f6919e60a7 Merge Richard Cohen's 'cleanup' into master. 2023-01-24 12:05:47 -08:00
Richard Cohen
925fcbc3fd Remove unused gnc-jalali.{c,h} 2023-01-24 13:36:23 +00:00
Geert Janssens
b3fa876da3 Drop ui path specifier from resources paths
They were only there due to how the source directories
are organized and not really adding useful detail.
Removing it from the resource paths gives more freeedom
wrt to the organization of source files.
2023-01-01 16:34:29 +01:00
Geert Janssens
a543143689 Generate the gresource xml file based on a list of resources
This inverts the logic from
- having an xml file and extracting dependencies
  from it to
- having a list of dependencies and generating
  an xml file from it

In the original configuration adding or removing a
resource to/from the gresources.xml file would not
be detected by cmake as a change in dependencies.
The user would have to remember to rerun cmake manually.
By explicitly listing the dependencies, cmake will
properly recongifure and regenerate if that list is
updated. The remainder of the dependency configuration
also ensures proper rebuilds of gnucash, libaqbanking
and libofx if any of the resource files change, a new
one is added or an existing one is removed.

For reusability the code to generate the gresource related
files as been extracted into a separate function.
2023-01-01 15:06:42 +01:00
Geert Janssens
57294d7e16 Keep ui files for optional modules within the module
This goes for ofx and aqbanking. If either
module is not part of the build, the ui files
should not be part of the resource of gnucash.
It turns out each compilation unit can have
its proper resource though, so the build system
was changed to include the ui files in a local resource
for the aqbanking and ofx modules instead of to
the gnucash global resource.
2022-12-31 13:13:40 +01:00
John Ralls
5c17950a59 Merge Bob Fewell's 'mainwin2' into master. 2022-12-30 13:56:54 -08:00
mcbridebt
ea026ff4ee Add investment-lots.scm report
Add investment-lots.scm report

cleanup code comments

add start date, fix end date, add stats collector

Fix format errors (breaks on Guile 3.0, but not 2.2?)

Fix build warnings

Fix bugs

Reduce set! usage, add new validation warning, misc code cleanup

fix bug where value display strings were wrongly respecting the show-mnemonics option that should only apply to amount display strings

misc bug fixes

gain age: use last bought date instead of first

change basis calculation to be more like cap-gains.c

Move report to Assets & Liabilities menu

fix chart bug, add option to group sales by age

Add support for alternate-row style

resolve code review comments
2022-12-23 10:33:43 -08:00
John Ralls
6c7e50efb2 Merge John Ralls's 'aqb-file-import' into master. 2022-10-29 17:29:06 -07:00
John Ralls
5a0455462c Implement AQBanking import selection dialog directly in Gtk. 2022-10-29 17:23:57 -07:00
Christopher Lam
fc94b41c81 Merge branch 'maint' 2022-10-29 21:53:57 +08:00
John Ralls
cf088f2a70 Merge John Ralls's 'Bug798614' into maint. 2022-10-28 15:27:28 -07:00
Christopher Lam
8192deff37 [gnc-features.cpp] convert to cpp
- don't need to create/destroy GHashTable for each feature query
- plugs leak: g_hash_table_unref (features_used) not always called properly
- to check 1 feature, don't need to traverse whole GHashTable
2022-10-28 20:50:35 +08:00
Geert Janssens
e97fc3e408 Drop price-quotes.scm, gnc-fq-helper.in and gnc-fq-check.in - no longer used 2022-10-02 11:50:26 -07:00
Geert Janssens
8896d61c7a Build dialog-price-edit-db as C++ 2022-10-02 11:50:26 -07:00
Geert Janssens
1a0be99bc6 Build dialog-transfer as C++
Preparation to use GncQuotes instead of price-quotes.scm
2022-10-02 11:50:26 -07:00
Geert Janssens
466db526b2 Move source files for GncQuotes to app-utils
It will depend on functions in that library. This can probably be
fixed by cleaning up app-utils, but that's not the topic of
this feature.
2022-10-02 11:50:25 -07:00
Geert Janssens
2f7ed7f25d Initial version of libgnc-quotes
This library intends to wrap Finance::Quote the way price-quotes.scm currently does.
In this first commit the library replaces price-quotes.scm's library to install
quote sources. In addition it exposes a new command line parameter  in gnucash-cli
to show which version of Finance::Quote is installed on the system (if any) and
which quotes sources that verions exposes.
2022-10-02 11:50:25 -07:00
John Ralls
d8417c3cfa Move gnc-euro.[ch] to engine and unit test it. 2022-09-30 15:12:12 -07:00
John Ralls
4c85757b1f [options]Separate the option widgets from the option dialog. 2022-08-25 22:09:56 -07:00
John Ralls
4ae17d12c7 [options] Move options from app-utils to engine.
Options is required for book options that are stored as part of the data
 file and so belongs in engine.
2022-08-25 22:09:56 -07:00
John Ralls
f4c27d4494 Move gnc_ui_account_get_tax_info_string to gnc-locale-tax.c
To prevent a circular dependency between libgnc-app-utils and
libgnucash-guile.
2022-07-17 10:00:23 -07:00
John Ralls
1f174a1108 Merge branch 'maint' 2022-06-21 09:43:53 -07:00
Frank H. Ellenberger
c272bc45d9 I18N: Add POTFILES.ignore
assistant-stock-transaction needs polishing before
translation
2022-06-21 00:26:19 +02:00
John Ralls
abd1a0b3f1 Merge branch 'c++options' 2022-03-29 15:58:22 -07:00
John Ralls
572cb6b1d1 Banish gnc_get_optiondb_from_dispatcher to gnc-report.cpp.
Puts it closer to its points of use and removes it with its Scheme
dependency from libgnucash.
2022-03-14 10:32:08 -07:00
Christopher Lam
193a7aae5d Merge branch 'maint' 2022-03-12 15:18:43 +08:00
Christopher Lam
2f9963b708 Bug 798004 - Next gen UI for stock transactions
A new assistant to create stock transactions
2022-03-11 22:11:11 +08:00
John Ralls
aa5a268e60 [i18n] Update all translation files to a new potfile.
Needed to get Weblate to stop whining about the recently removed bindings/guile/commodity-table.scm.
2022-03-09 20:38:31 -08:00
Frank H. Ellenberger
09296dfb96 Drop commodity-table.scm, no longer required after adjusting qif-dialog-utils 2022-03-01 19:58:11 -08:00
Christopher Lam
9088acabd8 [gnc-budget.cpp] convert to c++ 2022-03-02 07:13:24 +08:00
Mike Alexander
3161df6fb8 Delete Register2 code, it can be retrieved from Git if needed. 2022-02-21 18:54:17 -05:00
John Ralls
c1c75e8f81 Revert "Revert "Merge Stefan Bayer's 'SepaInternalTransfer' into maint.""
The original merge was of a PR based on master into maint, bringing
along all of the development changes in master along with it. We don't
want that so the merge was reverted and the PR's two changes
cherry-picked in. That fixed maint, but then the next regular merge of
maint into master naturally included that revert commit undoing the
changes in master. Not so good. Reverting the revert, this commit,
restores the changes, albeit with messed up history.
2022-01-08 15:10:53 -08:00
Christopher Lam
5603acba31 Merge branch 'maint' 2022-01-06 21:32:41 +08:00
John Ralls
5c7967c4a5 Revert "Merge Stefan Bayer's 'SepaInternalTransfer' into maint."
This reverts commit 17a3f7fef2, reversing
changes made to b8458d0732.
2021-12-03 13:58:07 -08:00
Christopher Lam
73822f97a9 [1/2][Scrubbudget.c] use heuristics to scrub budget signs
If book has budgets, and GNC_FEATURE_BUDGET_UNREVERSED isn't set,
check and fix budget amount signs. Previously budgets were created
with assumption that sign reversal was set to credit amounts. A
heuristic approach is used:

- if budgeted expense is negative, conclude sign reversal is
"Income and Expense"

- if budgeted liability is positive, conclude sign reversal is
"None"

- otherwise conclude sign reversal is "Credit Accounts"

The above is calibrated to (hopefully) prefer sign reversal of Credit
Accounts.
2021-12-03 17:40:21 +08:00
John Ralls
cf5da9fffd Resolve merge conflicts. 2021-11-12 19:56:29 -08:00
Christopher Lam
984d816a58 Merge branch 'maint' 2021-11-06 21:41:17 +08:00
Christopher Lam
f813f7cd14 [gnc-autoclear] Move autoclear algorithm into gnome-utils 2021-10-28 21:41:46 +08:00
Frank H. Ellenberger
7d2245c25c L10N: Patch PR 1156 into existing translatons 2021-10-15 17:47:24 +02:00
John Ralls
67191203ae Merge branch 'maint' 2021-09-26 10:46:06 -07:00