gnucash/libgnucash/app-utils
John Ralls 9e6760f7cb Bug 796527 - invalid currency on scheduled transactions
1. Don't even check for price/exchange rate on template transactions,
there's no point.

2. Extract function get_transaction_currency:
a. Check all split commodities are valid, abort transaction creation if
not.
b. If the template transaction's currency isn't used by any of the
splits set the new transaction's currency to the first-found currency if
there is one, otherwise to the first-found commodity.

3. Fix a minor typo in a comment.
2018-06-11 10:03:16 -07:00
..
calculation Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test test-date-utilities.scm: to SRFI64 2018-05-10 22:21:55 +08:00
app-utils.i Restructure the src directory 2017-08-10 18:45:00 +02:00
app-utils.scm html-utilities.scm: new home (gnc:html-render-options-changed) 2018-05-10 13:19:03 +08:00
business-helpers.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
business-helpers.h Restructure the src directory 2017-08-10 18:45:00 +02:00
business-options.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
business-options.h Restructure the src directory 2017-08-10 18:45:00 +02:00
business-options.scm Rename libgnucash/scm/main.scm to utilities.scm 2018-02-16 15:52:19 -08:00
business-prefs.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
c-interface.scm Add support for guile 2.2 2017-12-20 14:55:40 +01:00
CMakeLists.txt Work around a conflict between gcc 8.0 and swig 3.0 2018-05-09 22:18:29 +02:00
config-var.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
date-utilities.scm Merge branch 'maint' into unstable 2018-03-25 09:36:21 -07:00
file-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
file-utils.h Restructure the src directory 2017-08-10 18:45:00 +02:00
fin.scm Restore fin.scm, incorrectly removed earlier. 2018-02-19 10:50:38 -08:00
gettext.scm Drop guile 1.8 support 2017-12-20 14:55:40 +01:00
gfec.c Bug 795039 - Crash on startup using Technicolor Style sheet in report 2018-04-26 13:01:00 -07:00
gfec.h Rewrite several file path routines to use boost::filesystem 2017-08-26 21:38:21 +02:00
gnc-account-merge.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-account-merge.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-accounting-period.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-accounting-period.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-addr-quickfill.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-addr-quickfill.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-basic-gobject.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-component-manager.c Component not found error when accounts are deleted 2018-03-21 13:11:39 +00:00
gnc-component-manager.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-entry-quickfill.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-entry-quickfill.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-euro.c Replace the gnc:numeric pair with normal Scheme rationals. 2017-12-21 15:33:15 -08:00
gnc-euro.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-exp-parser.c Restore fin.scm, incorrectly removed earlier. 2018-02-19 10:50:38 -08:00
gnc-exp-parser.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-gettext-util.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-gettext-util.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-gsettings.c Change gsettings upgrade test so old_maj_min is < 207 2018-02-18 22:41:39 +00:00
gnc-gsettings.h Add infrastructure to handle preference schema migrations and use it to replace one preference 2017-12-11 21:56:23 +01:00
gnc-help-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-help-utils.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-helpers.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-helpers.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-prefs-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-prefs-utils.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-state.c When doing a file save from the a new start we have no key file 2018-03-12 06:48:01 +00:00
gnc-state.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-sx-instance-model.c Bug 796527 - invalid currency on scheduled transactions 2018-06-11 10:03:16 -07:00
gnc-sx-instance-model.h Merge branch 'maint' into unstable 2018-02-19 15:25:53 +01:00
gnc-ui-balances.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-ui-balances.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-ui-util.c Bug 795039 - Crash on startup using Technicolor Style sheet in report 2018-04-14 10:18:01 -07:00
gnc-ui-util.h Cache a couple of split register preferences 2018-02-21 00:54:49 +00:00
gncmod-app-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
guile-util.c Removing uses of timespec 2018-01-08 13:01:29 +11:00
guile-util.h Removing uses of timespec 2018-01-08 13:01:29 +11:00
hooks.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
make-prefs-migration-script.xsl Drop guile 1.8 support 2017-12-20 14:55:40 +01:00
migratable-prefs.xml.in Restructure the src directory 2017-08-10 18:45:00 +02:00
migrate-prefs.scm Rename libgnucash/scm/main.scm to utilities.scm 2018-02-16 15:52:19 -08:00
option-util.c Date option absolute now takes time64. 2018-01-08 13:01:29 +11:00
option-util.h Removing uses of timespec 2018-01-08 13:01:29 +11:00
options.scm html-utilities.scm: new home (gnc:html-render-options-changed) 2018-05-10 13:19:03 +08:00
prefs.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
QuickFill.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
QuickFill.h Restructure the src directory 2017-08-10 18:45:00 +02:00
README Restructure the src directory 2017-08-10 18:45:00 +02:00
simple-obj.scm Restructure the src directory 2017-08-10 18:45:00 +02:00

After loading this module, you must also call

  (gnc:setup-gettext)
  (setlocale LC_ALL "")

at some point to finish initializing the app.  This is not done
automatically from gncmod-app-utils.c via app-utils.scm because you
may need to handle setlocale yourself (or you may already have other
code that does).