- Fixes for handling reciprocal values.
- Mark a lot of places where potential overflow bugs
are not handled.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13107 57a11ea4-9604-0410-9ed3-97b8803252fd
(the tests fail on amd64). Since this code isn't used,
yet, there's no need to actually run these tests. But let's
distribute the code anyways....
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13073 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-search/dialog-search.c:
* src/gnome-search/dialog-search.h:
Modify the gnc_search_dialog_create() API to add an optional
"type label" parameter, so you can manually set the string
presented to the user for what they are searching for...
* src/business/business-gnome/dialog-order.c:
* src/business/business-gnome/dialog-vendor.c:
* src/business/business-gnome/dialog-customer.c:
* src/business/business-gnome/dialog-job.c:
* src/business/business-gnome/dialog-employee.c:
* src/gnome/dialog-find-transactions.c:
Pass NULL into new search API parameter
* src/business/business-gnome/dialog-invoice.c:
Modify how we call the search dialog. Send in different
sets of parameters depending on whether we're searching for
a Customer Invoice, Vendor Bill, or Employee Expense Voucher.
Pass in a type_label as well so the dialog can properly label
the "new" button. This fixes the UI Bug #117354.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13071 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/gncInvoice.[ch]:
Add new API: gncInvoiceSortEntries()
* src/business/business-core/gncEntry.c:
re-sort the parent when the entry date changes.
Only re-sort when the existing date is non-zero (i.e.
don't re-sort on the initial setting of the date).
Fixes#320566.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13069 57a11ea4-9604-0410-9ed3-97b8803252fd
before we call xaccSplitSetBaseValue(). Fixes#325890.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13068 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: include gmodule in GLIB_LIBS
* lib/libqof/qof/Makefile.am: link libqof against glib.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13058 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/gncInvoice.c:
Make sure to insert new splits into an account before we
set the Base Value.. Otherwise it will fail to set the
value properly. Closer to fixing 325890, but it's still
not completely fixed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13053 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/file/gnc-bill-term-xml-v2.c:
* src/business/business-core/file/gnc-bill-term-xml-v2.h:
Add a new API to "find-or-create" a billterm so all the
code is collated in one location.
Add more debugging during the scrub phases.
* src/business/business-core/file/gnc-invoice-xml-v2.c:
* src/business/business-core/file/gnc-vendor-xml-v2.c:
* src/business/business-core/file/gnc-customer-xml-v2.c:
Use the new bill-term find-or-create API
* src/business/business-core/gncBillTerm.c:
add some additional debugging
* src/business/business-core/gncBillTerm.h:
The Billterm Type ENUM must start at 1, not zero. The data file
now appears to properly save itself without destroying data.
Fixes rest of #328790.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13049 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/file/gnc-owner-xml-v2.c:
GncOwner is not a QOF_INSTANCE. Get the GUID correctly.
Fixes part of #328790 (but not all of it).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13000 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/test/Makefile.am:
Added src/scm directory to test environment
* lib/goffice-0.0.4/Makefile.am:
Don't install libgoffice-1.pc, but distribute it
* lib/libgsf-1.12.3/tests/Makefile.am:
Link to the proper location of libgsf-1.la
* lib/libgsf-1.12.3/Makefile.am:
Don't install the gsf .pc files, but distribute them.
* lib/Makefile.am:
Use DIST_SUBDIRS to distribute qof, gsf, and goffice
* configure.in:
fix QOF_LIBS to use builddir, not srcdir
* Makefile.am:
add po/POTFILES.in to the dist
link gsf into the srcdir, not the builddir
* src/report/report-system/Makefile.am:
make sure we distribute gw-report-system.h
* src/bin/Makefile.am:
clean i18n.h in distclean
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12992 57a11ea4-9604-0410-9ed3-97b8803252fd
This is instead of configure succeeding and then failing the
build later.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12983 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/app-utils/prefs.scm: replace an API needed by old scheme
config files. It was removed in r11565. Replace it now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12926 57a11ea4-9604-0410-9ed3-97b8803252fd
Granted, this has no effect because the splash screen isn't
/UP/ when we're loading the modules. But still, once we
initialize the gnome application earlier this will let us
update the splash screen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12925 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/bin/gnucash-bin.c: Load config.auto AND config.user files.
Load the .user file first, and then load the .auto.
* src/scm/Makefile.am: paths.scm was removed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12913 57a11ea4-9604-0410-9ed3-97b8803252fd
Fixes a crash trying to reload a file with empty windows.
(there's still another bug which is that we should ignore empty windows)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12903 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-gnome/dialog-invoice.c:
need to #include gkeyfile.h for glib24 systems
* src/business/business-gnome/Makefile.am:
link against glib26 compatibility library.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12896 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/bin/gnucash-bin.c:
* src/gnome-utils/gnc-splash.c:
Always print the SVN version and build date.
Make "development version" based on GNUCASH_SVN
* src/gnome-utils/Makefile.am:
Define GNUCASH_SVN whenever the source is not a dist tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12880 57a11ea4-9604-0410-9ed3-97b8803252fd
- Need to #include "config.h" first.
- Need to make gnucash_command_line static.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12840 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/bin/Makefile.am: Fix some srcdir/builddir issues
with #includes and libraries.
* src/Makefile.am: Move 'bin' last so that it's built
after gnome-utils so Chris' change works.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12839 57a11ea4-9604-0410-9ed3-97b8803252fd
Make sure you rebuild qofla-dir.h when the Makefile changes,
which would imply re-configuration. You never know, the
user might have changed --prefix which means you want to
rebuild the header.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12349 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/Makefile.am: revert 12296 and handle the
case of an svn checkout without .svn subdirs (gentoo ebuild).
In particular, we want to use $(srcdir)/gnc-svninfo.h
so that a build from a dist tarball has the svn version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12344 57a11ea4-9604-0410-9ed3-97b8803252fd
At least, --version works now.
* src/bin/overrides/gnucash-build-env.in:
Change core-utils to a gnc-module-dir so it loads both
the .scm and the .so properly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12340 57a11ea4-9604-0410-9ed3-97b8803252fd
- move PKG_CONFIG check early in the process
- use --silence-errors more
* macros/pkg.m4: work around a pkg-config bug that outputs
errors to stderr even when you tell it to output to stdout.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12332 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/gnc-tree-view-account.c:
* src/gnome/gnc-plugin-page-budget.c:
need to #include gkeyfile.h if we don't have glib26.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12236 57a11ea4-9604-0410-9ed3-97b8803252fd
* lib/goffice-0.0.4/plugins/plot_radar/gog-radar.c:
rename 'fmin()' to 'gogi_fmin()' to prevent double
declaration on MacOS. It's an internal (static) function
so we can safely rename the function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12184 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: g-wrap 1.9.6 can define the module-dir as
share/guile/site -- we want to make sure to get rid of
the /site when computing the libdir from this. Otherwise
the runtime will fail to find the g-wrap runtime libraries.
* src/gnome-utils/gnc-currency-edit.c:
* src/business/business-gnome/business-urls.c:
include <strings.h> to compile on Solaris.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12154 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: remove libgsf/po/Makefile and goffice/po/Makefile
because we never build these directories.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12136 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/Makefile.am: Grab svn version using
svnversion instead of parsing "svn info". Also make it
so that it doesn't force a rebuild if the version does
not change.
* src/gnome-utils/gnc-splash.c: changed svn version
from an integer into a string. Handle that in the
splash screen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12098 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: fix some of the output strings
* lib/libgsf-1.12.3/gsf/glib24_26-compat.c:
make g_get_filename_charsets static because it's not
needed outside this file.
* lib/goffice-0.0.4/goffice/glib24_26-compat.c:
make _g_compute_locale_variants static because it's
not needed outside this file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12097 57a11ea4-9604-0410-9ed3-97b8803252fd
configure with zero arguments. Autogen doesn't run
configure anymore. This confused a user.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12091 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/core-utils/gnc-gkeyfile-utils.c: cast the
printf so we don't warn when sizeof(ssize_t) !=
sizeof(int). In this case the cast is safe because
we can only write an int-size of data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11925 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: don't need GNUCASH_CVS anymore
* src/gnome-utils/Makefile.am:
build gnc-version.h and gnc-svninfo.h. add the
latter to EXTRA_DIST. Only build svninfo if
$(srcdir)/.svn exists. #define GNUCASH_SVN
when that directory exists (at buildtime).
* src/gnome-utils/gnc-splash.h: use new SVN info.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11787 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/business-core.scm: need to
properly recurse in gnc:owner-get-owner-id. there is no
gnc:owner-get-id API.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11263 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/dialog-utils.c: When trying to load the symbol
from a glade file, Fall back to dlsym() if g_module_symbol()
fails. This is necessary to find the symbols on on certain *BSD
systems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10899 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/date.c: Fix the last-day-of-month computation for
leap years. Need to use modulo, not divide. (Patch by
Neil Williams.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10454 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/date.c: Fix the last-day-of-month computation for
leap years. Need to use modulo, not divide. (Patch by
Neil Williams.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10453 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/locale-specific/us/Makefile.am: make sure the
scheme reports are part of the DIST.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10449 57a11ea4-9604-0410-9ed3-97b8803252fd
* This patch updates the QOF merge code to current QOF to bring
the HEAD branch into sync. This update also makes
qof_book_merge_param_as_string output strings that are
compatible with QSF: using false instead of FALSE in string
output and using the QSF_XSD_TIME for the datestrings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10440 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/Account.c:
This patch fixes: (QofAccessFunc)xaccAccountSetNonStdSCU in
src/engine/Account.c - that's a Set routine allocated as a
QofAccessFunc - the patch changes it to the appropriate Get
routine - the QofSetterFunc is OK.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10439 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/backend/file/gnc-backend-file.c:
When working on the file foo.xac, backups are named
foo.DATE.xac. But the backup file pruner will prune any old
file named foo.DATE.anything.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10435 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/account-summary.scm:
Rewrote account summary report. Now has fields for
more account metadata. Properly handles mixed
asset/liability subaccounts.
* src/report/standard-reports/html-acct-table.scm:
Added functionality (account-type &c) and bug fixes
(lone zb subtotals, spurious 'recursive-bal, typos)
needed to make the new account-summary.scm work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10434 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/gncInvoice.c: Properly accumulate
splits (bug #165053). Also fixes a (related) memory leak
(caused by the same lack-of-reference to accumulated splits).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10424 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/gnc-trace.[ch]:
- Recent use of malloc in gnc-trace breaks my compile, use g_malloc
- Fix leak of filename mem
- add indenting of trace file according to ENTER/LEAVE stack depth
- have ENTER report file name of function along with function name
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10398 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/test/test-book-merge.c: targetEnt is always NULL
during MERGE_NEW so don't test it in that case.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10362 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/test/test-numeric.c:
Make sure we use gint64 instead of gint when trying to test
values > 2^32.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10361 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/backend/file/Makefile.am:
* src/backend/file/test/Makefile.am:
* src/business/business-core/file/Makefile.am:
Need to include GNOME_XML_CFLAGS to make sure the libxml includes
are found during the compile. Fixes#121026.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10360 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/glade/register.glade:
Increase "number" spin box to a maximum of 1billion. Fixes#152772.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10358 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/gncInvoice.c:
send an event when a payment is processed so the invoice gets
updated as "paid" in the search window.
Fixes#139092.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10356 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-gnome/dialog-vendor.c:
Make sure we set the proper search-type when we create the
query, otherwise the search will fail later.
Fixes#141526.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10353 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/gnc-trace.c: Try a few different filenames for
the trace log and if all else fails fall back to stderr.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10347 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/gw-engine-spec.scm:
Fix parameter order to match C file (thanks for Erwin Rieger).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10318 57a11ea4-9604-0410-9ed3-97b8803252fd
Includes
qof_book_merge.c
qof_book_merge.h
test-book-merge.c test routine
New Account Hierarchy druid
Sundry adjustments to QOF support.
Tweaks to several Makefile.am files to support new files.
Tweaks to window-main.c to support new menu item
Changes to druid-hierarchy.c to support the merge druid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10306 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/gncInvoice.[ch]
* src/business/business-gnome/dialog-date-close.[ch]
* src/business/business-gnome/dialog-invoice.c
* src/business/business-gnome/glade/date-close.glade
* src/business/business-utils/business-prefs.scm
Daniel Lindenaar's patch to implement a check-box in the Invoice Post
Dialog (with a default in the File Preferences) to choose to accumulate
splits when posting an invoice, or post a 1:1 mapping.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10305 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/qif-import/qif-object.scm:
provide a default account name so we don't crash when someone
imports a broken QIF that has a !Account without an account name.
Fixes bug #155244.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10303 57a11ea4-9604-0410-9ed3-97b8803252fd
* engine/gw-engine-spec.scm:
* gnome-search/dialog-search.h:
* report/report-gnome/dialog-column-view.h:
Andreas Rottmann's patch to support g-wrap 1.9.
- don't wrap non-existent objects
- protect headers from multiple inclusion
- include gtk.h header when we use gtk objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10298 57a11ea4-9604-0410-9ed3-97b8803252fd