* src/backend/postgres/Makefile.am: Changed the .sql.c target to
not echo the beginning and ending quotes. This is part of the
gcc 3.x compatibility changes.
* src/backend/postgres/PostgresBackend.c: Made some whitespace changes
for readability.
- (pgend_book_load_poll): Commented out a PWARN about the old book
list not being empty. See added comments for why.
- (pgend_book_load_poll): added a gnc_session_set_book() call so that
the session would have the correct book loaded (i.e., the book
that's stored in the DB).
* src/backend/postgres/*.sql: Enclosed each line in a set of
quotes "..". The "multi-line literals" were causing compile errors
for gcc 3.x.
* src/backend/postgres/gncquery.c: ran indent on the file.
- (STRING_TERM): Changed the comparison on STRING_MATCH_NORMAL to
STRING_MATCH_CASEINSENSITIVE for purposes of adding a '*' to the
comparison operator "~". The code was writing a "=*" which is
invalid, but "~*" is valid for case-insensitive regex searches.
- (sqlQuery_build): Added a "more_and = 0" to the final if statement
of the "for (il = qterms; il; il = il->next)" loop. This will
prevent a stray "AND" being appended to the end of the "WHERE" clause
of a dynamic query.
* src/backend/postgres/kvp-sql (store_cb): In "case KVP_TYPE_TIMESPEC",
changed the 'cb_data->stype = "timespec"' to 'cb_data->stype = "time"'.
The destination field in the database is defined as 4 characters, and
the extra chars in stype were causing an insertion error.
* src/backend/postgres/putil.h (FINISH_QUERY): Changed the error to use
PQresultErrorMessage() instead of PQerrorMessage().
* src/backend/postgres/test/db-control.sh (our_pg_ctl): Changed the
script to return -1 if pg_ctl was not found in PATH.
* src/backend/postgres/test/run-tests.sh: If db-control.sh returns
failure, the attempt to connect to $PGHOST on $PGPORT.
* src/backend/postgres/test/test-db.c: Included QueryNew.h. Added the
_dbinfo struct to pass host, port, dbname, and mode information
around. Everywhere that used db_name/mode is now using DbInfor->*.
- Ran indent on the file.
- Added a drop_database function to call dropdb on the database used
for the tests. This eventually needs to be changed so that every
"return FALSE" first calls gnc_session_destroy(session), before this
new function is called.
- (db_file_url): Changed the function to handle TCP connections as well
as socket connections.
- (load_db_file): Added a PGBackend object from which to get a PGconn
connection to store in DbInfo.
- (test_raw_query): Added a call to gncQueryPrint() if
gnc_should_log(MOD_TEST, GNC_LOG_DETAIL)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7894 57a11ea4-9604-0410-9ed3-97b8803252fd
are in the default account selection, tables use normal-row
and alternate-row
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7893 57a11ea4-9604-0410-9ed3-97b8803252fd
locations. In particular, AC_CHECK_HEADERS() uses CPPFLAGS, not
CFLAGS.
* src/backend/postgres/Makefile.am: use PGSQL_CFLAGS and PGSQL_LIBS
* src/backend/postgres/test/Makefile.am: use PGSQL_CFLAGS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7891 57a11ea4-9604-0410-9ed3-97b8803252fd
* po/it.po: Updated Italian translation by Lorenzo Cappelletti
<L.Cappelletti@mail.com>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7890 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/hbci/gnc-hbci-getbalance.c: Introduced yet
more user messages about what is supported by the bank.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7888 57a11ea4-9604-0410-9ed3-97b8803252fd
when testing for zvt. Use the (already aquired) $GTKHTML_LIBS
instead. Fixes Stan's problem from gc-devel.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7887 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/hbci/glade/hbci.glade: Some more GUI work for
HBCI setup, like clarifying some comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7886 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-scheduledxaction.c (gnc_sxed_update_cal): Fix
the Recurrence-Frequency example-calendar date calculation to show
upcoming instances correctly.
* src/engine/SchedXaction.c (xaccSchedXactionGetNextInstance):
Remove the validity check on the temporal-state-data's notion of
the last-occurance date; as invalidity means something important,
we must let it through; fixes Bug#103955.
* src/backend/file/gnc-schedxaction-xml-v2.c
(gnc_schedXaction_dom_tree_create): Make output of the
deferred-instance last-date node optional on it's validity.
* src/gnome/dialog-sxsincelast.c (cancel_check): Change assertion
into conditional-activity, allowing rational use-case and fixing
Bug #103182.
* src/gnome/dialog-scheduledxaction.c (editor_ok_button_clicked):
Correctly update available SX lists instead of the one we were
spawned from, which may have disappeared in the mean time. Fixes
Bug#103629 [and allows the future fix of not needing to open the
SX List Dialog when clicking "Advanced..." in the sx-from-transaction
SX Editor-open vector].
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7885 57a11ea4-9604-0410-9ed3-97b8803252fd
* po/en_GB.po: Updated British English translation by Nigel Titley
<nigel@titley.com>.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7881 57a11ea4-9604-0410-9ed3-97b8803252fd
It also indicates which data field gnucash requires, which are
optional, etc. Intended for troubleshooting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7877 57a11ea4-9604-0410-9ed3-97b8803252fd
let the user know that they can (should?) leave the ID blank
so the system will choose one for them.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7876 57a11ea4-9604-0410-9ed3-97b8803252fd
let the user know that they can (should?) leave the ID blank
so the system will choose one for them.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7875 57a11ea4-9604-0410-9ed3-97b8803252fd
accounts in the pull-down list to accounts that are NOT
placeholder, A/R, A/P, Cash, Bank, or Equity accounts. This
is also to encourage the user to "choose wisely" :)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7874 57a11ea4-9604-0410-9ed3-97b8803252fd
the "Account" column to "Income Account" or "Expense Account"
to better encourage the user to "choose wisely".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7873 57a11ea4-9604-0410-9ed3-97b8803252fd
load business-gnome module, which loads gnome-utils module, for
a couple HTML definitions (which should eventually be moved
elsewhere so that the reports themselves don't depend on
gnome... This fixes Wilddev's report problem.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7872 57a11ea4-9604-0410-9ed3-97b8803252fd
actually work with numbers that are not co-divisible but have
multiple-powers of co-factors. For example, the old algorithm
thought the LCM of 100,96875 was 3100, when it is really 387500,
because it was removing the factor of '5' too many times..
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7864 57a11ea4-9604-0410-9ed3-97b8803252fd
and on big queries the merge can appear to take a long time.
So, let's use g_list_prepend() and g_list_reverse() to speed
up the process significantly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7860 57a11ea4-9604-0410-9ed3-97b8803252fd
* doc/Makefile.am
* src/doc/Makefile.am
* src/doc/design/Makefile.am
* src/experimental/cgi-bin/Makefile.am
Added docs that were missing from dist.
Moved doxygen clean rules to maintainer-clean.
Moved texinfos to maintainer-clean.
* lib/libc/Makefile.am
Added sources needed for OS X to dist.
* src/app-utils/Makefile.am
* src/backend/postgres/Makefile.am
* src/business/business-core/Makefile.am
* src/business/business-gnome/Makefile.am
* src/business/dialog-tax-table/Makefile.am
* src/core-utils/Makefile.am
* src/engine/Makefile.am
* src/gnc-module/Makefile.am
* src/gnc-module/test/mod-bar/Makefile.am
* src/gnc-module/test/mod-baz/Makefile.am
* src/gnc-module/test/mod-foo/Makefile.am
* src/gnome/Makefile.am
* src/gnome-search/Makefile.am
* src/import-export/Makefile.am
* src/import-export/binary-import/Makefile.am
* src/import-export/qif-io-core/Makefile.am
* src/register/register-core/Makefile.am
* src/report/report-gnome/Makefile.am
* src/scm/Makefile.am
* src/app-file/Makefile.am
* src/gnome-utils/Makefile.am
Put generated headers into dist.
Moved symlinks to distclean.
Moved generated files to maintainer-clean.
Put generated gw-.*.scm files in dist for parity.
Put generated sources into dist.
Moved generated source to maintainer-clean.
* src/bin/overrides/Makefile
Made built scripts depend on config.status to ensure
they're rebuilt when paths change.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7859 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/app-utils/app-utils.scm -- export the 'post-ui-startup' hook
* src/scm/main.scm -- run the post-ui-startup hook after the UI
is up but before we run the ui-event-loop
* src/business/business-utils/business-prefs.scm -- create two
new global preferences: "Notify Bills Due?" and "Bills Due Days"
* src/business/business-gnome/business-gnome.scm -- create a dialog
are runtime (and via a new menu item) that displays all the bills
that are due withing "Bills Due Days" days from now. It's ugly,
but it's functional. Fixes#102439.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7856 57a11ea4-9604-0410-9ed3-97b8803252fd
properly in the case that it's called before the UI is up.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7855 57a11ea4-9604-0410-9ed3-97b8803252fd
* macros/autogen.sh
Use variables for programs so they can be overridden easily.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7853 57a11ea4-9604-0410-9ed3-97b8803252fd
'1' instead of zero, and change logic to <, rather than <=. All to fix
some descriptive language... Heh!
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7852 57a11ea4-9604-0410-9ed3-97b8803252fd
location. Then add the "New Search Limit" preference.
* src/gnome-search/dialog-search.c --Use the "New Search Limit" pref
to decide when to start a new search vs. when refine the search.
Really fix#97095.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7851 57a11ea4-9604-0410-9ed3-97b8803252fd
"New Search" if we end up displaying no results. Fixes bug #97095.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7850 57a11ea4-9604-0410-9ed3-97b8803252fd
on numbers of different denominators. In particular, convert
both numbers to the lcd and then operate on them, instead of
assuming that a "cross-multiply" is safe.
* src/app-utils/test/test-print-parse-amount.c -- add more tests for
PrintAmountInternal by checking force_fit and round. Excercises
a bug (fixed in this patch) where cross-multiplies were NOT safe.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7848 57a11ea4-9604-0410-9ed3-97b8803252fd
preferences, as they are no longer used by anything.
* src/report/standard/reports/register.scm: we're not using the
'invoice' portion anymore, so we don't need references to user
name and user address preferences. This removes the "User Info"
page from the Global Preferences.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7847 57a11ea4-9604-0410-9ed3-97b8803252fd
kvp-options from C (similar to the gnome-utils functions to
create an option dialog from a kvp-frame for a particular
object).
* src/business/business-utils/business-options.[ch]: add code to
lookup business options in an option database, from C.
* src/business/business-ledger/Makefile.am: include business-utils headers
* src/business/business-ledger/gncEntryLedgerLoad.c: load the tax-table
from the book-kvp options and use that as the default tax table
FIXES 93462.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7846 57a11ea4-9604-0410-9ed3-97b8803252fd
* Rename a bunch of files:
business-options to business-options-gnome
business-utils to business-gnome-utils
- this required changes to a bunch of files in business-gnome
* move business-options.scm and business-prefs.scm to business-utils
* create a business-utils gnc-module
- required changes to configure.in, business/Makefile.am
- added a bunch of files (generally moved from business-gnome)
* moved a bunch of other non-gnome definitions out of the gnome-specific
locations (gnome-utils -> app-utils, or business-gnome -> business-utils)
* gncEntryLedgerLoad.c: commented-out code to load tax-tables from
the options; waiting until code is actually written.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7844 57a11ea4-9604-0410-9ed3-97b8803252fd