Commit Graph

7967 Commits

Author SHA1 Message Date
Linas Vepstas
f8f1a31b9b remove wacky loop that can be executed only once
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10247 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:28:34 +00:00
Linas Vepstas
2a28f52f84 fix null-pointer deref; fix more bad indentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10246 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:23:18 +00:00
Linas Vepstas
3efa30588b fix possible null-pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10245 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:20:59 +00:00
Linas Vepstas
5689a952e8 fix usage of uninitialized variable (by initializing it)
and also some more wacky indentation fixes


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10244 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:19:41 +00:00
Linas Vepstas
7c24c9b18b fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10243 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:15:55 +00:00
Linas Vepstas
d2d1df7052 fix memory leak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10242 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:15:18 +00:00
Linas Vepstas
8394ae7a3b make sure return values are completely initialized
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10241 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 22:07:10 +00:00
Linas Vepstas
13841d9390 fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10240 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:59:39 +00:00
Linas Vepstas
1e37023609 fix a seriously nasty junk-memory reference.
This particular nasty could actually mangle-ify QIF import
in a bad way, and goof people up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10239 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:58:34 +00:00
Linas Vepstas
b3078d3234 remove old-fashioned block style
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10238 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:46:59 +00:00
Linas Vepstas
f5b37208cd clarify fall-through condition; fix indentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10237 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:42:41 +00:00
Linas Vepstas
824bac37ed replace insane algorithm (which always returned last iterm in array)
with something real.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10236 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:37:20 +00:00
Linas Vepstas
8926814468 fix potential null-pointer deref; fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10235 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:23:23 +00:00
Linas Vepstas
2efc2f1f60 make sure that function doesn't return while structure is
holding pointer to a stack variable.  Also, simplify logic.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10234 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:17:54 +00:00
Linas Vepstas
dc020bfec8 remove null-pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10233 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 21:10:16 +00:00
Linas Vepstas
07c7d35d31 fix bad indentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10232 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 19:02:39 +00:00
Linas Vepstas
da37f28375 fix divide by zero
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10231 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 18:52:31 +00:00
Linas Vepstas
fc4e7fec9e fix null-pointer deref/memory leak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10230 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 18:49:44 +00:00
Linas Vepstas
8113c9ccaf fix null pointer deref
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10229 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-27 18:46:44 +00:00
Derek Atkins
3335a2a14f Add option to advanced portfolio to include $0 splits (#143772).
* 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
2004-08-21 16:34:18 +00:00
Derek Atkins
4ae7a36f35 Perry Smith's Null Account patch.
* 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
2004-08-19 19:59:10 +00:00
Derek Atkins
0bc9bfb411 Neil Williams's "QOF create: functionality added" patch.
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
2004-08-19 19:47:34 +00:00
Derek Atkins
ac4a718807 Check for newer gtkhtml first (#84707).
* 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-19 18:36:54 +00:00
Derek Atkins
259e01d5c1 David's patch to handle merchandising businesses (#150008).
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
2004-08-13 17:29:46 +00:00
Derek Atkins
c97527bcba Make the gnucash desktop HIG compliant (#145545).
* src/gnome/gnucash.desktop.in: make the desktop HIG compliant.
	  Fixes #145545


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10215 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-08-11 23:30:14 +00:00
Linas Vepstas
a0c11f2f12 add some to-do notes for later
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10210 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-26 22:44:10 +00:00
Linas Vepstas
3eaaeffd24 documentation cleanup; merge from qof sources
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10209 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-26 22:10:19 +00:00
Linas Vepstas
48df8b8884 Apply patch from Neil Williams <linux@codehelp.co.uk>
Extended the QofSetterFunc to business objects, for those set_fcn 's that
exist.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10207 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-26 12:41:43 +00:00
Linas Vepstas
43765025d7 Apply patch from Neil Williams <linux@codehelp.co.uk>
Added QofSetterFunc to Account, Transaction and gnc_pricedb to aid
gncBookMerge and SQL backend


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10206 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-25 15:12:50 +00:00
Derek Atkins
24b8a65adf Priit Laes' patch for C90 compliance.
* src/engine/Scrub.c
	* src/engine/Scrub2.c
	* src/engine/gnc-numeric.c
	* src/engine/gnc-pricedb.c
	* src/engine/kvp-util.c
	* src/engine/qofid.c
	* src/engine/qofmath128.c
	* src/engine/qofquery.c
	* src/engine/qofsession.c
	* src/engine/test/test-numeric.c
	  Priit Laes' patch for C90 compliance.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10205 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-20 22:49:58 +00:00
Linas Vepstas
8c83c4fb0f raw data for number of lines of code in gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10202 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-17 04:06:22 +00:00
Linas Vepstas
abcabc7436 small gnuplot script to graph the total number of lines of code in
gnucash (historical data)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10201 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-17 03:52:30 +00:00
Derek Atkins
acf2bb7412 David Montenegro's General Journal (bug #109738).
* 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
2004-07-15 03:06:21 +00:00
Derek Atkins
6632fc7584 David Montenegro's patch to fix the pnl (income statement) #105330.
* 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
2004-07-14 18:49:50 +00:00
Derek Atkins
6f2540506d David Montenegro's General Ledger patch (bug #155268).
* 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
2004-07-14 15:30:16 +00:00
Derek Atkins
a107a9af22 Forgot to add trial-balance.scm.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10197 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-14 00:20:31 +00:00
Derek Atkins
2c5f97a8a7 David Montenegro's patch for trial-balance (bug #144265).
* src/report/standard-reports/trial-balance.scm:
        * src/report/standard-reports/standard-reports.scm:
        * src/report/standard-reports/Makefile.am
          added Trial Balance/Work Sheet report

        * src/report/standard-reports/balance-sheet.scm:
          added drop-down choices missing in previous version
          added support for adjusting/closing entries

        * src/report/standard-reports/equity-statement.scm:
          added support for adjusting/closing entries
          fixed "For Period Covering" label
          fixed handling of unrealized gains
          investment/draw discrimination based on shares sign
          omit unrealized gains when zero

        * src/report/report-system/html-acct-table.scm:
        * src/report/report-system/html-table.scm:
          null reference bug fixes

        * src/report/report-system/report-utilities.scm:
          added utility functions for accessing splits
          and creating double-column balance HTML
          gnc:double-col,
          gnc:account-get-trans-type-balance-interval,
          gnc:account-get-pos-trans-total-interval

        * src/report/report-system/commodity-utilities.scm:
        * src/report/report-system/html-acct-table.scm:
        * src/report/report-system/report-utilities.scm:
          moved gnc:commodity-collector-commodity-count and
          gnc:uniform-commodity? into commodity-utilities.scm

        * src/report/report-system/report-system.scm:
          added some additional exports


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10196 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-13 16:07:55 +00:00
Linas Vepstas
fb8273bc80 add overview, cut and pasted from recently revised texinfo docs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10193 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 15:20:57 +00:00
Linas Vepstas
ae31849309 Tweaks - Derek, can you upgrade the version of doxygen on cvs.gnucash.org?
doxygen --version 1.3.6 seems to handle grouping of functions correctly,
whereas version 1.3.4 does not.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10192 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 15:17:28 +00:00
Linas Vepstas
af15b1bfd8 edit/corect old and incorrect statements about how transactions work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10191 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:57:59 +00:00
Linas Vepstas
d184068f27 copy and edit transaction overview from the texinfo documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10190 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:56:53 +00:00
Linas Vepstas
0d5411a571 sync with German Wiki (I'm copying the description I wrote there to here).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10189 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:33:09 +00:00
Linas Vepstas
667f1becce sync overview notes with German wiki
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10188 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-10 14:22:51 +00:00
Derek Atkins
eafd96227c Make the bug#147025 failure reproducible.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10187 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 15:01:07 +00:00
Linas Vepstas
b3cea34b4b too many price-dbs are being created ... causing tests to fail
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10186 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:22:21 +00:00
Linas Vepstas
4515ea6514 tweak messages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10185 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:13:52 +00:00
Linas Vepstas
52c40919ff get rid of the srand
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10184 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:13:33 +00:00
Linas Vepstas
465828827a style tweak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10183 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:11:32 +00:00
Linas Vepstas
656e03fb96 add check for null pointer
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10182 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:09:32 +00:00
Linas Vepstas
e1807cad13 port over to new typenames.
Make sure that accounts are properly anchored in a book.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10181 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-07-09 03:07:34 +00:00