* src/engine/Transaction.c: fix the ISO_DATELEN to be "long enough"
Fixes#123558
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9437 57a11ea4-9604-0410-9ed3-97b8803252fd
* configure.in: Add correct configure test for openhbci version
required by mt940 module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9352 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/hbci/gnc-hbci-kvp.c: Fix broken compile due to
Linas' change of the kvp_frame_get_frame() arguments. By
Jan-Pascal van Best <j.p.vanbest@tbm.tudelft.nl>
* src/import-export/hbci/gnc-hbci-gettrans.[hc]: Code
refactorization so that the mt940 importer can re-use the existing
import functions from the hbci module. By Jan-Pascal van Best
<j.p.vanbest@tbm.tudelft.nl>
* src/import-export/mt940/gncmod-mt940-import.[hc]: Import module
for SWIFT MT940 files added. By Jan-Pascal van Best
<j.p.vanbest@tbm.tudelft.nl>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9345 57a11ea4-9604-0410-9ed3-97b8803252fd
hawkfan to get tests to work when building outside srcdir.
* src/backend/postgres/putil.c: fix a bug introduced by Matthew --
ANSI C does not allow you to declare a variable in the middle
of an expression. Move the declaration to the top of the function.
* src/backend/postgres/functions.sql:
* src/backend/postgres/table-audit.sql:
We don't need the trailing semi-colon because the #include adds
one. The double semi-colon causes build failures in some cases.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9311 57a11ea4-9604-0410-9ed3-97b8803252fd
instead of "libofx/libofx.h" as it's not part of our system.
Fixes a dependency problem in 1.8.6 release.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9304 57a11ea4-9604-0410-9ed3-97b8803252fd
Add a "slots" parameter to allow for future expansion. Right
now this is completely ignored (which will allow future releases
to add a kvp-frame slots to any business function and allow that
file to be read by older versions). Right now the slot is ignored,
but that's better than barfing on the data file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9285 57a11ea4-9604-0410-9ed3-97b8803252fd
during query->scm and scm->query conversion. It shaves about 50%
off the test-scm-query-string tests.
* src/engine/test-core/test-engine-stuff.c: add some code to help
track down what the get_random_query() is doing. Turned off by
default.
* src/app-utils/test/test-scm-query-string.c: make the test
deterministic by seeding the RNG with a known value. There is a
known "delay" at #245 with a seed of 1 on Linux systems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9273 57a11ea4-9604-0410-9ed3-97b8803252fd
tries to build the transfer rate. This crashes on Solaris because
during startup one commodity is still NULL when it tries to print
it.
Fixes bug #121677
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9271 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/register/register-core/basiccell.c:
- add some debugging messages
- don't kill ourself if we're asked to set the value to our own value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9224 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/import-backend.c: Workaround for
multi-currency importing bug as discussed on gnucash-devel.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9076 57a11ea4-9604-0410-9ed3-97b8803252fd
Here's the HEAD patch we talked about on #gnucash. Fixes the
transaction handling for upgrades. Also made some changes to
newtables.h. I fixed the multibook_support() upgrade too, as it
was broken. The only upgrade currently that does not work is the
1.0.0 --> 1.1.1 upgrade. That one doesn't work due to missing SQL
for the gncGUIDcache table (which I asked about in a different
message). Perhaps we can remove that upgrade? 1.1.1 -> 1.2.1 ->
1.3.1 -> 1.4.1 -> 1.5.1 all work normally now, though, with this
patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9069 57a11ea4-9604-0410-9ed3-97b8803252fd
distclean. Rebuild it whenever the .in, Makefile, or config.status
changes. Fixes#119446.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9043 57a11ea4-9604-0410-9ed3-97b8803252fd
The attached patch and new file fix bug 90768. I'm pretty sure I've
done "The Right Thing (tm)" everywhere. This patch is against HEAD.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9036 57a11ea4-9604-0410-9ed3-97b8803252fd
a clist. Fix a bug so we properly call the parent destroy function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9031 57a11ea4-9604-0410-9ed3-97b8803252fd
invoice transactions to "now" instead of the post date. This
lets us know when an invoice was actually posted, or a payment
was actually made.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8980 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/Transaction.c: fix xaccSplitGetPrice() to return '0'
if 'amount' is zero but 'value' is non-zero
* src/register/ledger-core/split-register-model-save.c: if we've
already handled the debcred cell then DON'T handle the price cell
as it will override the debcred's value.
* src/register/ledger-core/split-register.c: if #shares == 0,
price == 0, and value (buy/sell) != 0 then allow this entry;
it's an income/expense balancing split.
* src/register/ledger-core/split-register-control.c: if the exchange
rate cell is 0 but this is NOT the blank split, then don't run
the exchange-rate dialog unless specifically requested.
* src/register/ledger-core/split-register-model.c: when trying to
find the conversion rate for a split, remember if we found
a matching split (even if the amount is 0). If all matching
splits are 0, then return 0, not 1.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8979 57a11ea4-9604-0410-9ed3-97b8803252fd
to the various columns displayed in the report currency.
Partial fix for #118695.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8977 57a11ea4-9604-0410-9ed3-97b8803252fd
of used QifAccount and QifCategory objects from the set of
transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8970 57a11ea4-9604-0410-9ed3-97b8803252fd
qif file contexts into a single parent context while retaining
the ability to add/remove new files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8969 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/hbci/druid-hbci-initial.c: Add button for
manual adding of HBCI accounts. Fixes#117760. Requires latest
OpenHBCI CVS -- next openhbci-0.9.13 will be out this weekend.
* src/import-export/hbci/gnc-hbci-{getbalance,gettrans,transfer}.c:
Add saving of the HBCI_API so that bank's status changes will now
be remembered immediately. However this might save some
unnecessary information to disk, but hopefully we will have fixed
that in OpenHBCI soon.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8965 57a11ea4-9604-0410-9ed3-97b8803252fd
on enter/return keypress events (in addition to ESC).
Fixes#118500
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8962 57a11ea4-9604-0410-9ed3-97b8803252fd
to retrieve the QofBook from the session, instead of storing the
book in the backend object.
- Where be->book was used, use pgendGetBook() instead.
- Enhanced debug messages.
* src/backend/postgres/PostgresBackend.h: Added the qofbook.h
include, and the pgendGetBook() prototype
* src/backend/postgres/book.c: Changed pgendGetBook to
pgendBookRestore() to reflect its functionality of restoring
the book's data to the engine.
* src/backend/postgres/price.c: In pgendPriceFind(), couched the
currenct portion of the SQL statement in an "if" statement,
because gnc_pricedb_lookup_latest_any_currency() can pass in
a NULL currency, and stpcpy() doesn't like NULLs.
* src/backend/postgres/escape.c: enhanced debug messages.
Fixes bug #116546
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8953 57a11ea4-9604-0410-9ed3-97b8803252fd
when we hit a READONLY error.
* src/backend/file/gnc-backend-file.c: return ERR_BACKEND_READONLY
on save if the XML write fails and the unlink() fails with
ENOENT, EPERM, EROFS, or EACCES.
* src/engine/qofsession.c: don't call end_session just because
there's an error.
Fixes#117657
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8949 57a11ea4-9604-0410-9ed3-97b8803252fd
chown() functions fatal errors. Warn the user if they fail, but
don't fail to save. In the long run we need some way to pop up
warning messages from a backend, but until then we'll have to
stick with PWARN() and hope users see the console.
Fixes#118258
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8947 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/gw-engine-spec.scm: add new error type
* src/backend/file/gnc-backend-file.c: differentiate between
"file is already locked" and "we can't create the lockfile"
so we can let the user know.
* src/app-file/gnc-file.c: handle the new ERR_BACKEND_READONLY
error message by changing the error dialog presented to the
user.
Fixes#117665
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8941 57a11ea4-9604-0410-9ed3-97b8803252fd
more work on the new qif importer. structure it into a parent
context that contains a "list of files" (each file has its own
context). Add some tests to actually test the code. It
actually loads a basic qif file, now. Still need to perform
merging (internal and into GNC) as well as the qif-to-gnc maps.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8913 57a11ea4-9604-0410-9ed3-97b8803252fd
backend error directly after calling gnc_file_be_get_file_lock(),
as get_file_lock will set the backend error itself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8901 57a11ea4-9604-0410-9ed3-97b8803252fd
add more text to make it more clear what's going on. Hopefully
fixes#104878.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8888 57a11ea4-9604-0410-9ed3-97b8803252fd
and action of Invoice and Payement Transactions/Splits, to make
it easier to print a check off the posted transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8887 57a11ea4-9604-0410-9ed3-97b8803252fd
errors, and add more precision to the price. There is still a
problem when acquiring a high-precision price out of the pricedb
where it will get truncated in the AmountEdit widget.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8880 57a11ea4-9604-0410-9ed3-97b8803252fd
(written-in-C) QIF importer. The code compiles but has not
been tested. Yet to do: merging, conversion to gnc, and UI.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8873 57a11ea4-9604-0410-9ed3-97b8803252fd
and dates in a mostly-locale-agnostic way.
* src/import-export/import-format-dialog.c: a dialog to ask the user
to choose a format, when parsing just isn't enough.
* src/import-export/generic-import.glade: add the format_match dialog
* src/import-export/test/test-import-parse.c: test the import-parse
routines.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8851 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/gncTaxTable.c:
Fix a crash where removing items in the wrong order could
cause "Bad Things" to happen -- referencing an invalid
object. When being destroyed, an object should remove itself
from it's parent's list of children, in addition to removing
itself from it's children's pointer-to-parent.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8848 57a11ea4-9604-0410-9ed3-97b8803252fd
with the caller providing all the locale-specific information
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8847 57a11ea4-9604-0410-9ed3-97b8803252fd
* macros/acx_pthread.m4: change pthread search (should be removed)
* src/engine/guid.c: remove pthread code and just use a static buffer.
(pthread code is kept within some #ifdef's, just in case we decide to
put it back in later).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8846 57a11ea4-9604-0410-9ed3-97b8803252fd