Commit Graph

17 Commits

Author SHA1 Message Date
Geert Janssens
7d6bc3fac8 Hide some now internal-only functions from the public GncEntry interface
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21993 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:43 +00:00
Geert Janssens
45d0b1d19b Introduce two convenience functions to simplify quantity handling for invoice/credit note entries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21990 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:15 +00:00
Geert Janssens
2197c038fd Introduce entry getters that return the balance value as opposed to
internal value and document value.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21986 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:38 +00:00
Geert Janssens
3c8ae9506c Rework entry value getters
Make it clear when the values are rounded or not and that the values are
as on the document (opposed to how they impact the balance).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21985 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:27 +00:00
Geert Janssens
a748f123dd Use better variable name to avoid confusion with is_cn
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21984 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:16 +00:00
Geert Janssens
3f6629d853 Small cleanups:
- improve comments, fix spelling
- fix some static code analysis warnings
- expand and remove a macro that wasn't adding much other than reduced
code readability

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21983 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:07 +00:00
John Ralls
eeaa897be1 [Cruft Reduction] Remove unused functions from src/engine
Nothing in gnc-session-scm.c was being used, so deleted it and its corresponding header.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21579 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:04:01 +00:00
Christian Stimming
6a0f3b5a57 Add accessor/setter for the date of a GncEntry as a GDate.
This is much more suitable to avoid any ambiguities due to differently
chosen time-of-day in various parts of the code.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21560 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:04 +00:00
John Ralls
c318a112a5 Delete qofinstance_gemini and all related functions; they were left over from the clone-the-book-when-closing code abandoned in 2005
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21203 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 03:58:10 +00:00
Christian Stimming
bb18641d0c Win32: Fix compiler warnings about potentially uninitialized functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20657 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-18 18:52:32 +00:00
John Ralls
f25c53bf36 Bug #648554: SQL backend doesn't correctly save taxable flag on bills.
Nicely illustrates why copying and pasting code leads to errors.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20655 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-17 18:24:18 +00:00
Phil Longstaff
516175b9e2 When book is being closed, destroy objects to free their memory. Doesn't matter too much when closing gnucash,
but when closing one book to open another, all memory from the old book should be freed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20010 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-31 01:42:39 +00:00
Geert Janssens
a0c19b4c71 Bug #502853 - Incorrent tax rounding in invoice (rounding of .5)
This patch changes the default rounding behaviour in GnuCash from
"Round to nearest even" to "Round away to infinity". See the bugreport
for more details on these different rounding methods.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19695 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-23 10:38:48 +00:00
Geert Janssens
b56930b2b6 Revert r19475. That revision fixed one rounding error, but introduced another one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19568 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-09-11 09:55:05 +00:00
Geert Janssens
081b91fd64 Refactoring: replace all GNC_RND_* and GNC_DENOM_* occurences with their GNC_HOW_RND_* and GNC_HOW_DENOM_* equivalents
And then remove the deprecated definitions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19476 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-26 17:22:06 +00:00
Geert Janssens
645be3a163 Bug #504954 - Wrong calculation of TAX
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19475 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-26 16:35:12 +00:00
Christian Stimming
76b764582a Move the business object implementations from separate module into the main gnucash engine.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19329 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-03 21:53:22 +00:00