Commit Graph

16898 Commits

Author SHA1 Message Date
John Ralls
0b03328143 Check for an existing price before adding one in split_reg.
To make the behavior the same as in xfer_dialog.
2015-09-15 12:06:27 -07:00
John Ralls
c6a67f4eac In the transfer dialog use the price_edit value for the saved price.
Instead of computing it separately and differently from to_amt and from_amt.
2015-09-15 12:06:27 -07:00
John Ralls
407d61cbb6 Fix up whitespace in dialog-transfer.c. 2015-09-15 12:06:27 -07:00
John Ralls
47f91c0227 Refactor gnc_xfer_dialog_response_cb with several extract-functions. 2015-09-15 12:06:27 -07:00
John Ralls
e1b4e45de5 Don't store prices of source invoice.
They're intended to be temporary, for creating splits. They're also already
stored from the transfer dialog.
2015-09-15 12:06:27 -07:00
John Ralls
9a611a2aca Replace the price source and type strings with defines. 2015-09-15 12:06:26 -07:00
John Ralls
e921de8b6f Correct the Stock, Bond, Market Index, and Mutual Fund account types.
STOCK and MUTUAL are not compatible with currency.
2015-09-15 12:05:23 -07:00
John Ralls
44d4365046 Bug 754617 - Gnucash should use PKG_PROG_PKG_CONFIG
Actually we already do, making this fragment unnecessary. What's more
Ximian Desktop is long gone so the work-around is redundant as well.
2015-09-12 18:01:36 -07:00
Geert Janssens
10d81d653b Small doxigen improvements to previous commit 2015-09-09 14:03:54 +02:00
Matt
de3ca9d7d8 Bug754764Fix
Adds Doxygen Comments to file 'gnc-budget-view.c'.
2015-09-09 12:27:46 +02:00
Daniel Kraft
deab75a5ba Fix progress reporting for securities piechart. 2015-09-01 20:24:15 +02:00
Daniel Kraft
4a3a8be186 Add piechart report grouping by commodity.
Add a new piechart report that groups by commodity and not by the
account hierarchy.  This also refactors the existing piechart report
file a bit, to reuse code where possible and only abstract-out the
pieces that need to be generalised.
2015-08-30 22:14:37 +02:00
Daniel Kraft
c9feb7df87 Define build-report! function instead of loop.
The existing code uses tuples to define the properties of the individual
reports created.  Replace that by a function to build one of them which
gets the properties passed as arguments, and use a series of calls to
replace the old loop.  This makes the properties much more easier to
read.
2015-08-30 18:54:04 +02:00
Daniel Kraft
0ceb09ada6 Replace for-each by tail recursion.
Replace the use of for-each and set! by tail-recursive calls with
accumulator variables.  This is a more "Schematic" way to do the loops.
2015-08-30 18:03:14 +02:00
yomlogs
eed42580f4 Bug 724738 - Value in "Display Symbol" field not saved
Updated gnc_ui_commodity_dialog_to_object() to call
gnc_commodity_set_user_symbol() for non-currency commodities.

https://bugzilla.gnome.org/show_bug.cgi?id=724738
2015-08-27 16:09:27 +02:00
Alex Aycinena
7e07e6ce9b Merge branch 'maint' 2015-08-19 11:18:35 -07:00
Alex Aycinena
18073f6163 Remove e-mail form AUTHORS and DOCUMENTERS 2015-08-19 11:13:22 -07:00
John Ralls
8b66590631 Sort the source list from gnc-fq-check. 2015-08-17 10:12:22 +01:00
Alex Aycinena
558cae3d9c Book-Currency Feature step 4
Set feature flag if book-currency option selected and initiate registered
callbacks when currency accounting book option changes to book-currency so that registers/reports can update themselves.

The changes made are:

    app-utils/gnc-ui-util.c & h - define gnc_book_option_book_currency_selected_cb
    core-utils/gnc-features.c & h - define GNC_FEATURE_BOOK_CURRENCY
    engine/engine-helpers.c & h - define gnc_book_option_book_currency_selected
        to call registered callbacks and set feature
    gnome-utils/gnc-main-window.c & h - add checking of book-currency option to
        gnc_book_options_dialog_apply_cb function; refactor common code with
        assistant-hiearchy.c by creating gnc_book_options_dialog_apply_helper
    gnome/assistant-hierarchy.c - use gnc_book_options_dialog_apply_helper
2015-08-13 17:16:02 -07:00
Geert Janssens
fa6fbc5585 Small wording improvements to the gnucash command line options
This is based on a suggestion by Daniel GOUJOT on the devel mailing list
2015-08-13 12:34:19 +02:00
Alex Aycinena
6c2c1ce3d3 Merge branch 'maint' 2015-08-10 12:17:02 -07:00
Alex Aycinena
e47cc8ff13 Correct wording on AUTHORS and DOCUMENTERS 2015-08-10 12:01:01 -07:00
Mike Alexander
38bea1035e Merge branch 'maint' 2015-08-10 03:29:13 -04:00
Mike Alexander
054e6f7a22 Avoid passing invalid arguments to functions to get rid of some non-fatal asserts. 2015-08-10 03:16:45 -04:00
John Ralls
05fdefa306 Add note at the top to disuade users from contacting authors directly for support. 2015-08-10 07:58:55 +01:00
Mike Alexander
1e16ba6c14 Quote the date returned by get_quote_time so Scheme can read it. 2015-08-07 19:57:17 -04:00
Mike Alexander
655c04bd68 Avoid passing invalid arguments to functions to get rid of some non-fatal asserts. 2015-08-07 19:57:17 -04:00
Mike Alexander
7e95ac28a7 Check for a null pointer for a credit or debit formula in gnc_sxed_check_consistent.
This got dropped when qof_instance_get replaced direct KVP access and it makes
it impossible to edit a scheduled transaction since splits can't have both a credit
and debit value.
2015-08-07 19:56:52 -04:00
Mike Alexander
82f0e28685 Make it possible to set variables in SX "since last run" dialog.
When gnc-numeric.c was converted to C++, gnc_numeric_equal was changed so
that an invalid number is equal to anything.  The SX since last run dialog
initializes unset variables to invalid numbers which means that whatever you
type is equal to what is already there and is ignored.
2015-08-07 19:50:01 -04:00
Geert Janssens
9240c1b4aa Partially revert 'Drop some unused parameters from business reports'
Instead have gnc:company-info and gnc:fancy-date-info use the book
parameter again (which got lost in the kvp refactoring).
This preserves some code for potentially being able to have two
books open at once.
2015-08-04 21:32:13 +02:00
Geert Janssens
8fd103602b Minor debug message fixup 2015-08-04 17:04:45 +02:00
Geert Janssens
aa6b538ecb Merge branch 'maint'
Resolved conflicts:
	src/engine/Split.c
	src/engine/test/utest-Split.cpp
2015-08-04 15:54:27 +02:00
Geert Janssens
42710c7e6c Drop some unused parameters from business reports
They are no longer used since the introduction of gnc:company-info
2015-08-04 15:31:40 +02:00
Geert Janssens
c031d5cc6d Drop 'Today Date Format' option from business reports
Use 'Fancy Date Format' option instead for a more
consistent date display on the reports and to reduce
the number of semi-overlapping options
2015-08-04 15:23:02 +02:00
Geert Janssens
678cc189a3 Bug 645786 - Fancy invoice report still doesn't use fancy date format preference
Use fancy date consistently for all invoice reports
2015-08-04 15:02:28 +02:00
Geert Janssens
c64f58f54f Introduce new function to query fancy date format 2015-08-04 15:02:06 +02:00
Geert Janssens
21069b5e9a Fix missing parameter in fancy date option definition 2015-08-04 15:02:05 +02:00
John Ralls
20242c5a3d Put the quotes back around the date string in gnc-fq-helper. 2015-08-02 08:38:12 -07:00
John Ralls
18196171ad Bug 753146 - free(): invalid pointer on duplicate transaction
when Use Split Action Field for Number is set.
2015-08-01 16:26:53 -07:00
Mechtilde
b41c86da31 More new German translation 2015-08-01 12:24:01 -07:00
Mechtilde
9d16d969ea New German translations - after sending the others to Frank 2015-08-01 12:24:00 -07:00
Mechtilde
373b1e8b4e some more German translations 2015-08-01 12:24:00 -07:00
Mechtilde
226b1b29f1 even more German translation 2015-08-01 12:24:00 -07:00
Mechtilde
2a775024a3 added more German translation 2015-08-01 12:24:00 -07:00
Mechtilde
1bf8326f54 add translation for reports 2015-08-01 12:24:00 -07:00
John Ralls
567f61fe3c Add make_testfile suggestion to test-templates README. 2015-07-30 09:56:37 -07:00
Mike Evans
9333344ee0 Fix apparent typo preventing build. 2015-07-30 13:01:02 +01:00
John Ralls
a4b0519303 Fix up and improve the Doxygen documentation in unittest-support.h. 2015-07-28 12:44:25 -07:00
John Ralls
2663dc96e2 Improve the test-templates README and update the templates to current practice. 2015-07-28 11:45:34 -07:00
Geert Janssens
124a2479ef Bug 752035 - Transaction Report Filter By not Always Working
Make sure the internal split function get_corr_account_split
behaves consistently on multi-split transactions. The transaction
report depends on this.

Add test case to catch potential regressions

Simplify filter test function in transaction report.
2015-07-28 17:13:06 +02:00