* 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
* src/engine/Account.c: fix xaccAccountGetBalanceAsOfDate() to properly
compute the balance at the end of the split list. Fixes#150757.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10255 57a11ea4-9604-0410-9ed3-97b8803252fd
test-core/test-stuff: remove unused variable.
register/ledger-core/split-register-control: insert do .. while
because the code still uses "break"s to exit out.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10253 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/advanced-portfolio.scm:
Add option to include zero-amount splits in computations.
Fixes#143722.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10224 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/qif-import/qif-dialog-utils.scm:
Perry Smith's Null Account Patch. Make sure the security is
a real string before appending an account separator, so we
don't try to create a "null" account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10222 57a11ea4-9604-0410-9ed3-97b8803252fd
QOF create: adding functions to be used with
qof_object_new_instance for new qof_book_merge objects, including
business objects.
Small documentation tweak to make QofEntity and QofParam
structures visible to doxygen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10220 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: change the gtkhtml order to search for >= 1.1 before
< 1.1, in order to try to fix#84707 on systems with multiple
versions of gtkhtml.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10219 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-12 David Montenegro <sunrise2000@comcast.net>
* src/report/standard-reports/trial-balance.scm:
src/report/standard-reports/equity-statement.scm:
src/report/report-system/report-utilities.scm:
Added to the work sheet special handling of
inventory and income summary accounts for
merchandising businesses. Fixes#150008.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10217 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/general-journal.scm:
src/report/standard-reports/standard-reports.scm:
src/report/standard-reports/Makefile.am:
Added General Journal report, a Register Report
with a pre-set set of options.
* Bug #109738.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10200 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/income-statement.scm:
src/report/standard-reports/pnl.scm:
src/report/standard-reports/standard-reports.scm:
src/report/standard-reports/Makefile.am:
Rewrote pnl.scm, renamed it to income-statement.scm.
Can now create a meaningful statement post-closing.
* src/report/report-system/html-acct-table.scm:
Updated to include ability to "see through" closing
and/or adjusting entries.
* Fixes#105330.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10199 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/general-ledger.scm:
src/report/standard-reports/standard-reports.scm:
src/report/standard-reports/Makefile.am:
Added General Ledger report, a Transaction Report
with a pre-set set of options.
* src/report/standard-reports/transaction.scm:
FIXME - All accounts now selected by default, avoids
confusing error message. Error message also clarified.
Fixed "Totals" option so that it works.
* src/report/standard-reports/balance-sheet.scm:
* src/report/standard-reports/equity-statement.scm:
* src/report/standard-reports/trial-balance.scm:
Updated comments
* Fixes#144268
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10198 57a11ea4-9604-0410-9ed3-97b8803252fd
* acinclude.m4: create a SCANF_QD_CHECK and make sure both
that and SCANF_LLD_CHECK are "long long" constant-safe
* configure.in: use the new SCANF_QD_CHECK and use it
earlier in the configuration.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10161 57a11ea4-9604-0410-9ed3-97b8803252fd
- Set the rng to a known seed.
- Loop the test so it fails.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10159 57a11ea4-9604-0410-9ed3-97b8803252fd
PERR() when xaccTransGetSharePrice() overflows.
Loop test-query, and start the rng to fail consistently.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10156 57a11ea4-9604-0410-9ed3-97b8803252fd
an overflow condition in the function being tested that needs to be fixed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10096 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnc-module/gnc-module.scm: create (and export) a re-export macro
is guile doesn't already provide one. Then re-export the symbols
instead of exporting them. Fixes some deprecated guile warnings.
* src/guile-mappings.h: convert scm_gc_{un,}protect_object() back
to its pre-1.6 type for earlier guiles, but upconvert to the new
type to fix a deprecated warning. Note that g-wrap is still
outputting deprecated code.
* lots of other files:
convert scm_{un,}protect_object -> scm_gc_{un,}protect_object because
the former is now deprecated in guile. Fixes a bunch of
GUILE_WARN_DEPRECATED warnings (but probably not all of them).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10094 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/gnc-numeric.c: small change to the 128-bit math
routines to actually mark a 'carry bit' to denote numbers
>= 2^63 to fix bug #144980.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10080 57a11ea4-9604-0410-9ed3-97b8803252fd
* Makefile.am: be sure to rebuild make-gnucash-patch and
make-gnucash-potfiles when the Makefile changes (which means the
PERL paths might have changed).
* src/scm/paths.scm: change the default config file to 1.9, so we
don't screw up users of 1.8.
* src/report/report-system/html-acct-table.scm:
Added file implementing gnc:html-acct-table utility
object for easier creation of HTML reports.
* src/report/standard-reports/balance-sheet.scm:
Updated to use the new gnc:html-acct-table object.
Added many new options, including report/account
form option.
* src/report/standard-reports/equity-statement.scm:
Created Statement of Owner's Equity.
(Unsure if correct exchange-fn's are being used.)
* src/report/report-system/commodity-utilities.scm:
* src/report/report-system/html-table.scm:
* src/report/report-system/html-utilities.scm:
* src/report/report-system/report-system.scm:
* src/report/report-system/report-utilities.scm:
miscellaneous small additions and/or fixes
Fixes#144243.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10078 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/paths.scm: create gnc:current-saved-reports, as
the file to store saved reports from cstim. Autoload the
saved-reports file at startup (after config.user/config.auto
is loaded).
* src/scm/main.scm: export gnc:current-saved-reports
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10066 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/Transaction.c:
Don't recompute balances or write to the translog when we're
shutting down. Destroy the parent transaction from xaccSplitDestroy()
if we're shutting down.
* src/engine/qofbook-p.h:
* src/engine/qofbook.h:
* src/engine/qofbook.c:
add "shutting_down" parameter and getter-method, so that
objects can detect when the book is shutting down and
ignore non-necessary reprocessing. Fixes a memory corruption
bug during book-closing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9972 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/transaction.cm: applied Vasil's
patch to improve the transaction report for HTML export
purposes. Fixes bug #142942.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9968 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/locale-specific/us/taxtxf.scm: guile-1.6 complains
about string->symbol when passed a symbol. Fixes#131201
Also add some code to handle accounts that are expected to
have parents but do not (also described in #131201).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9963 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/iso-currencies-to-c: don't automatically try to
(require 'format), so gnucash will build on an slib-3 system.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9935 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/report-system/html-utilities.scm:
Fix a broken recursion problem. Don't call show-acct? from
use-acct? so we don't recurse ad flictum. This recursive
call isn't necessary, just have use-acct? recurse unto itself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9904 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/balance-sheet.scm:
* src/report/standard-reports/pnl.scm:
Fabien COELHO's zero-balance patch to remove accounts of
zero balance from the report.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9901 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/Transaction.c: fix a comment to better explain why
we have no-op functions for some parameters.
* src/engine/qof*: Revert Linas' patch from last night which
is broken is way too many ways to count. First, the code didn't
compile. Second it was calling functions that took one argument
with two due to broken casting. Third, it had repurcusions in
other sections of the code that Linas needs to take into account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9898 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/macros/autogen.sh: Add MORE warnings around gettext because
some users STILL don't "get it".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9894 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/hbci/dialog-hbcitrans.c: Don't use C++/C99
declarations. Declare variables at the top of the function.
Fixes#140070
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9893 57a11ea4-9604-0410-9ed3-97b8803252fd
* macros/autogen.sh: make sure we always have intl and po Makefiles
in the configure script. Sometimes it was ripped out without being
replaced. Reported by twunder.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9877 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-scheduledxaction.c: Move variable declaration
to the top of the block.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9876 57a11ea4-9604-0410-9ed3-97b8803252fd
* accounts/hu_HU/Makefile.am: don't include files in the DIST that
we don't have in CVS.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9874 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: move m4/Makefile to its own line
* macros/autogen.sh: add code to remove "intl/Makefile po/Makefile"
from AC_OUTPUT in configure.in prior to calling gettextize
to make sure that you can build from CVS with recent versions
of gettextize. Tested with both RH9 and RH7.3 to make sure
it works with both old and new. Fixes#120206.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9871 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/utility-reports/iframe-url.scm:
don't need to require format; main.scm handles it, and
the default "format" (simple-format) is sufficient to
handle everything we need. This allows gnucash to work
with slib3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9869 57a11ea4-9604-0410-9ed3-97b8803252fd
little cleaner by not re-using (and re-defining!) the same
variable name inside a block of code and "over-riding" an
existing variable. Unlikely to actually fix anything, but
you never know what a compiler might do.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9841 57a11ea4-9604-0410-9ed3-97b8803252fd
argument in SetOwner() in revision 1.40 thereby causing ALL new
jobs to fail to work. Check the new owner, not the original.
Fixes#133392.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9827 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/transfer.glade: rename from_xxx and to_xxx account
tree widgets to left_xxx and right_xxx
* src/gnome-utils/dialog-transfer.c: if in "accountant mode" call
"transfer from" "credit account" and "transfer to" "debit account"
and interchange account trees
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9806 57a11ea4-9604-0410-9ed3-97b8803252fd
and hbci which should allow running with ofx and hbci in the
build tree.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9796 57a11ea4-9604-0410-9ed3-97b8803252fd
We probably need a better mechanism to search for a working db
library, like defining our own macro and just supplying a list.
We probably can get rid of the prefer-db1 option as well, maybe?
Fixes#131506
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9784 57a11ea4-9604-0410-9ed3-97b8803252fd