Honor errors when reading/writing from/to a compressed file or the pipe
to the main thread.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18598 57a11ea4-9604-0410-9ed3-97b8803252fd
qof_book_set_string_option() also handles saving the book so that the kvp is updated in the db.
In the future, qof_book_set_<type>_option() and qof_book_get_<type>_option() should be created, where type is
boolean, int, double, ... In addition, other places which handle options in the book should use these routines.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18594 57a11ea4-9604-0410-9ed3-97b8803252fd
Check the return value of fprintf and use ferror where libraries as
libxml do the write.
The change may not be perfect yet and a review would be nice. Still, it
detects quite a few errors that, without it, slip through and may
destroy valuable data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18593 57a11ea4-9604-0410-9ed3-97b8803252fd
values for the book, and the dirty flag does *not* need to be set.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18590 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Thomas Troesch: The patch does three things:
1. Adds the ability to print an address on checks. The Print Check dialog is
changed to have 5 address lines.
The first field is filled in with the same data as the PAYEE check item. The
other lines are blank. The check format keys
have a new check-item type 'ADDRESS'. It behaves like other text check-item
types. The address fields on the dialog are set 'not-sensitive'
if the current format does not have an ADDRESS check item defined. The Custom
Field tab has a new line for the address
location.
2. Added new check format key - Blocking_Chars. This is to put the blocking
character feature into the check format file. It is currently
only in the preferences dialog in the printing tab, and therefore currently
applies (or not) to all text fields in th_e check format. By
adding the key Blocking_Chars_n to the check format, the blocking characters
can be applied to text type check-items individually. Its
really useful when printing stubs and so on. (NOTE: blocking characters are
printed around a field to protect against alteration
e.g. ***$100.00*** vs $100.00)
3. Included a Voucher check template. This is a full page check with the check
on top and which has two stubs below. There
are other voucher formats ( middle and bottom ) , but the check printing
functionality would require separate templates for
the different formats. Also changed the Quicken/Quickbooks US-Letter check
format to include the ADDRESS check item and blocking
around the AMOUNT_NUMBER field. I made a change to the Quicken-wallet check to
add blocking characters around the
AMOUNT_NUMBER field, and I added a clipping rectangle definition to the NOTES
and PAYEE fields the were placed in the
check stub area ( if the fields were too long, they would print into the check
area ).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18581 57a11ea4-9604-0410-9ed3-97b8803252fd
loading problem for invoices, this extends it to bills.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18580 57a11ea4-9604-0410-9ed3-97b8803252fd
Otherwise, transaction number 0108 (octal 010=8) will sort before 0107 (octal 0107=71).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18578 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by "meo":
If for whatever reason finance-quote is unable to get a date for a quote or to
convert it to the standardized form, gnucash is unable to use the otherwise
correct quote. With web pages being updated definitively more frequently than
finance-quote, this is quite a nuisance.
Up to now, gnc-fq-helper emits an error message + the quote, a combination
gnucash is unable to process. This patch presents a workaround.
I would prefer using the current date + 12 hours rather than current date +
time, but this is open for discussion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18575 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Peter Selinger:
OK, the attached patch fixes part of this problem. Specifically, it applies the
specified transform (from ./configure option --program-suffix,
--program-prefix, or --program-transform-name) to the files
src/bin/gnucash-valgrind
src/bin/gnucash-gdb
src/bin/gnucash
This is done in the Makefile at compile time.
In the end, I am not sure why the GnuCash configure.in provides the
--program-suffix mechanism at all, since apparently it hasn't been used in 10
years. According to info autoconf, these are supposed to be enabled by the
macro AC_ARG_PROGRAM, but I don't see this in configure.in. So perhaps it has
been enabled by accident and shouldn't really be there.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18572 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Jean-Baptiste: " The instance counter is now incremented into increment_sx_state function."
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18571 57a11ea4-9604-0410-9ed3-97b8803252fd
This fix reverts changeset r7200, which caused some currency symbols to be replaced with the EURO sign.
This replacement was a workaround for gtkhtml1 and no longer needed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18563 57a11ea4-9604-0410-9ed3-97b8803252fd
of Scheme functions to get account commodity balances. This idea is borrowed
from the EGuile version of the balance sheet report.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18555 57a11ea4-9604-0410-9ed3-97b8803252fd
account so attempts to get the balance of the register's account pass a null account pointer
to functions that won't accept that. Also stop leaking a GList in the functions that get account
balances.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18553 57a11ea4-9604-0410-9ed3-97b8803252fd
report. Instead compute unrealized gains and losses only if the current book
does not use trading accounts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18552 57a11ea4-9604-0410-9ed3-97b8803252fd