No special reason for this, though, except that it still compiles.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22876 57a11ea4-9604-0410-9ed3-97b8803252fd
In struct tm, the weekday is in the range 0..6 with Sunday=0, but
in GDateTime the weekday is in the range 1..7 with Sunday=7. This should
better be added to the GDateTime documentation at g_date_time_get_day_of_week,
but apparently nobody documented this so far.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22830 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit reverts parts of r22399, because the gtk_init after
module_system_init caused some messed-up locale settings in dependent
modules (in particular, the aqbanking module).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22828 57a11ea4-9604-0410-9ed3-97b8803252fd
Once this compiles, the resulting binary can also run SEPA online transfers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22821 57a11ea4-9604-0410-9ed3-97b8803252fd
This is a result of the glorious idea of glade to have all widget names
in one file have unique names, but not verifying that we really can
continue to do the lookup as before. Oh well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22817 57a11ea4-9604-0410-9ed3-97b8803252fd
Also, apparently the iTAN authentication method doesn't work unless
one activates the GTK2_GUI code in gnc-gwen-gui.c:70 but I need to check
this further.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22816 57a11ea4-9604-0410-9ed3-97b8803252fd
The (SEPA) banks apparently only support multi-jobs, not single jobs, but the
former is not yet in aqbanking and not yet in gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22811 57a11ea4-9604-0410-9ed3-97b8803252fd
Eventually, the SEPA rules need to be implemented, but for now we
just allow any alphanumerics.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22786 57a11ea4-9604-0410-9ed3-97b8803252fd
Users regularly expect that date to be the online job execution date,
but that's not what is implemented. So we prevent editing here at all.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22784 57a11ea4-9604-0410-9ed3-97b8803252fd
Add direct debit. Make menu items sensitive correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22783 57a11ea4-9604-0410-9ed3-97b8803252fd
Needs testing, though - my bank doesn't offer it for me.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22445 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch alters packaging/win32/libbonoboui-2.24.2.patch to not look for glade and not
build libbonoboui-2.24.2/glade
Patch by Mark Jenkins.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22156 57a11ea4-9604-0410-9ed3-97b8803252fd
The windows build has been failing for several days due to this.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22146 57a11ea4-9604-0410-9ed3-97b8803252fd
The code will silently revert the entered date to the threshold and just
not allow any older date to be entered. I wonder whether we can display
some useful error message additionally, but unfortunately I didn't find
the place in the code where one single error message would have resulted,
only places where multiply (annoying) error messages would have resulted.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22124 57a11ea4-9604-0410-9ed3-97b8803252fd
(Initially I thought there were a relation to the "freeze" state of a
transaction, but this turned out to be not the case.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22118 57a11ea4-9604-0410-9ed3-97b8803252fd
The number of days for this read-only threshold can be chosen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22107 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Dmitry Smirnov:
Original taxinvoice template lacks flexibility necessary to make
legaly valid Australian Tax Invoices.
This patch introduces customisation options
useful to comply with Australian requirements, but not limited to.
* Functional changes
+ Reference number moved to the right side from under the invoice
owner address (improves visibility and makes invoice layout
more compact)
+ added option to show Job Name
+ added option to show Job Number
+ added options to enable/disable columns with dynamic adjustments
to the table layout.
+ added options to enable/disable display of some invoice elements
+ some spaces in Headings1 defaults replaced with non-breaking space
+ added "Thank you for your patronage" text as default value for
footnote to match other invoices' defaults
* Hardcoded messages in English are replaced with options and
default values to match original report.
This makes possible report localization, like changing
"Invoice" to "Tax Invoice" where required by law etc.
* New dialog element in [Report Options]:[General]
+ [Report Currency]
(Because dollar sign '$' is used by many countries for their national
currency, invoicing between Australia and New Zealand often
causing confusion unless invoice currency is stated in the
invoice.)
* New dialog elements in [Report Options]:[Headings2]
+ Invoice number text (string)
+ To text (string)
+ Ref text (string)
+ Job Name text (string)
+ Job Number text (string)
* New dialog elements page [Report Options]:[Elements]
+ column: Date (boolean)
+ column: Tax Rate (boolean)
+ column: Units (boolean)
+ row: Contact (boolean)
+ row: Address (boolean)
+ row: Invoice Number (boolean)
+ row: Company Name (boolean)
+ Invoice number next to title (boolean)
+ Show Job name (boolean)
+ Show Job number (boolean)
* Fixed bug when customer name is listed twice above invoice owner address.
(this change is hard to separate into standalone patch because fix
involving changes affected by new customisation options)
* Added modification date and copyright comments
* spancols* variables renamed to have more readable names
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22103 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Dmitry Smirnov:
Due to invoice limitations, Gnucash is not yet ready for small business use in
Australia. Lack of customisation options in taxinvoice do not allow to change
its presentation for compliance with legal requirements.
Those patches make taxinvoice practically useful for invoicing.
First patch introducing few changes to allow easy adjustments to report
presentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22102 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Sebastien Alborini:
On win32, gdk never sends GDK_KP_Decimal, so this key cannot be detected.
Work around this by watching the underlying virtual keycode VK_DECIMAL.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22101 57a11ea4-9604-0410-9ed3-97b8803252fd
Forwarded from debian http://bugs.debian.org/443774
Every time gnucash is started it prints the following message to the console:
"main: binreloc relocation support was disabled at configure time."
This unnecessarily worries people who usually take it as warning rather than
normal informational message.
It has been reported as especially annoying if gnucash is running
as cron job because it requires special workaround against sending
this message over email on each invocation.
The attached patch suppresses printing the worthless message.
Given the current status of binreloc we're unlikely to use it so there is no
need to remind that it was disabled (which is default).
Thanks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22100 57a11ea4-9604-0410-9ed3-97b8803252fd
A pure renaming is not the correct solution, I've been told.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22090 57a11ea4-9604-0410-9ed3-97b8803252fd
As usual, re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22089 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Robert Fewell:
There is an existing problem with the main matcher which can causes the
following errors if you have the relevant account register open:
CRIT <qof> qof_instance_get_editlevel: assertion `QOF_IS_INSTANCE(ptr)' failed
This is caused when you decide to not add all the transactions displayed on the
matcher dialog and then the system trying to delete the temporary transaction
twice. I think this patch comments out the offending lines, if correct I will
provide a patch to remove them.
The error below is only seen when the relevant account register is open and in
the preferences you have double line mode enabled. Not sure how it gets fired,
probably part of the register update process but it is because we do not have a
valid transaction any more.
CRIT <gnc.engine> xaccTransGetVoidReason: assertion `trans' failed
The function concerned is gnc_split_register_get_vnotes_entry and could be
solved by adding the following but not sure if this is a valid fix.
if(trans == NULL)
return g_strdup('\0');
else
return xaccTransGetVoidReason(trans);
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22087 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Robert Fewell:
Firstly, this patch allows for the creating and updating accounts based on the CSV file
being imported. New accounts are created if the commodity required exists and
existing accounts are updated for the four fields: code, description, notes and
colour. This can be used for doing bulk updates of these fields and also for
importing the account structure from another file.
The second part is the change of the existing CSV importer to use an assistant
to guide you through the import. Additional features added is the ability to
specify the start and end row to be imported allowing you to jump over a header
or footer or just import a few rows. A currency format option was added which
was requested in another bug to overcome a problem they were having with the
downloaded format from there bank. You can also associate the account name to a
GnuCash account using the 'online_id' kvp, not sure if this is Ok or whether it
should be a different one.
To achieve the above, I split the dialogs used in import_account_matcher and
import_main_matcher into the dialog and the content so I could load the content
into the assistant saving on duplication, hope this makes sense.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22086 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Robert Fewell:
I have put together a new feature to export the account tree and transactions
to a deliminated file. Both options allow you to select the deliminator and the
use of quotes. Every thing seems to work on the testing I have done but may be
some of the text and the headings in the output might need changing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22085 57a11ea4-9604-0410-9ed3-97b8803252fd
I thought this would reproduce the crash when unposting a real invoice
with G_SLICE=always-malloc set. However, apparently this test case isn't
complete enough and does not crash. Maybe one needs to add further GncEntries?
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22082 57a11ea4-9604-0410-9ed3-97b8803252fd
Those few source files do not justify an extra loadable module. They are
just compiled-in into app-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22075 57a11ea4-9604-0410-9ed3-97b8803252fd
To my surprise, this apparently also fixes a memory leak, but I don't know why.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22074 57a11ea4-9604-0410-9ed3-97b8803252fd
The strspn() call was added in r8500 but the usage of its return value
was removed in r10315, so it isn't neccesary anyway.
The macro GNC_DEPRECATED is defined nowhere and used nowhere else, so
we can remove that block altogether.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22071 57a11ea4-9604-0410-9ed3-97b8803252fd
The last contributors here, Josh Sled and Chris Lyttle, have put their
code under "GPLv2 and GPLv3" license, see r22063, but I'm too lazy to
look up the copyright holders on the file as a whole so I'd rather remove it.
If someone wants to add a similar packaging file again, feel free to do
so, but please don't use GPLv2-only code to do so.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22067 57a11ea4-9604-0410-9ed3-97b8803252fd
This has been granted by the gnumeric copyright holders.
See https://bugzilla.gnome.org/show_bug.cgi?id=670727#c7
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22066 57a11ea4-9604-0410-9ed3-97b8803252fd
gnc-dense-cal.h: License remark was forgotten in r19507, but the author
Josh Sled agreed on GPLv2 and GPLv3 licensing in his gnucash-devel
message on 2010-08-28.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22063 57a11ea4-9604-0410-9ed3-97b8803252fd
"amount-changed" is only emitted on KP_ENTER and thus doesn't help us while "changed" confuses the widget.
Patch by Johannes Schmid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22054 57a11ea4-9604-0410-9ed3-97b8803252fd
This seems to be have been broken all along since r7094.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22049 57a11ea4-9604-0410-9ed3-97b8803252fd
With this patch, files are correctly installed together.
Patch by Vincent Untz.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21905 57a11ea4-9604-0410-9ed3-97b8803252fd
As usual, re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21904 57a11ea4-9604-0410-9ed3-97b8803252fd
* Use expander to show/hide templates
* Disable execute button as long as field values are incorrect
* Use icons and tooltips in entries to indicate that an incorrect value was inserted
Patch by Johannes Schmid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21903 57a11ea4-9604-0410-9ed3-97b8803252fd
A buffer of fixed size PATH_MAX is created, but this constant is non-existent
on GNU/Hurd, so the package FTBFS on that architecture.
The fix consists in using a dynamically (re-)allocated buffer, as recommended
on: http://www.gnu.org/software/hurd/hurd/porting/guidelines.html
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21900 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Johannes Schmid (with indentation fixed by our usual astyle call):
The patch actually fixes two issues:
* Only allow digits in account/bank code field
* Filter spaces when pasting content.
This has annoyed me for a while because quite often I paste account
informations from the browser or some email into gnucash and people tend to
group the numbers like this:
BLZ: 763 510 40
The result of the paste is that the number looks like 763 510<end> because the
number of characters in the entry is limited. With the patch the spaces will be
removed and you will see
763 510 40 -> 76351040
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21874 57a11ea4-9604-0410-9ed3-97b8803252fd
Otherwise the old generated file complains about a missing declaration
from r21832.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21840 57a11ea4-9604-0410-9ed3-97b8803252fd