General clean-up in Transaction.[ch].

* Regularization of 'trans' as variable name.
 * Whitespace and linewraps
 * lots of control-flow simplification
 * factor one chunk out into get_any_account()
 * Comment some things that are bogus or need improvement



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12231 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-01-01 22:26:15 +00:00
parent 6a38aca6f2
commit ece1abe680
2 changed files with 386 additions and 492 deletions

File diff suppressed because it is too large Load Diff

View File

@ -613,9 +613,8 @@ void xaccSplitSetBaseValue (Split *split, gnc_numeric value,
/** Depending on the base_currency, return either the value or the
* amount of this split: If the base_curreny is the transaction's
* commodity, return the value. If it is the account's commodity,
* return the amount. If it is neither and the force_double_entry flag
* is false, return the value. If is is neither and force_double_entry
* is true, print a warning message and return gnc_numeric_zero().
* return the amount. If it is neither print a warning message and
* return gnc_numeric_zero().
*/
gnc_numeric xaccSplitGetBaseValue (const Split *split,
const gnc_commodity * base_currency);