*** empty log message ***

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2322 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-05-15 01:32:37 +00:00
parent fb82419ce2
commit 5e5d52bbba
3 changed files with 5 additions and 5 deletions

View File

@ -24,9 +24,9 @@
#ifndef __XACC_LEDGER_UTILS_H__
#define __XACC_LEDGER_UTILS_H__
#include "gnc-common.h"
#include "config.h"
#include "gnc-common.h"
#include "Account.h"
/** PROTOTYPES ******************************************************/

View File

@ -585,7 +585,7 @@ xaccSplitSetBaseValue (Split *s, double value, const char * base_currency)
double
xaccSplitGetBaseValue (Split *s, char * base_currency)
xaccSplitGetBaseValue (Split *s, const char * base_currency)
{
double value;
if (!s) return 0.0;
@ -604,7 +604,7 @@ xaccSplitGetBaseValue (Split *s, char * base_currency)
}
}
/* be more precise -- the value depends on the curency
/* be more precise -- the value depends on the currency
* we want it expressed in.
*/
if (!safe_strcmp(s->acc->currency, base_currency)) {
@ -613,7 +613,7 @@ xaccSplitGetBaseValue (Split *s, char * base_currency)
if (!safe_strcmp(s->acc->security, base_currency)) {
value = s->damount;
} else
if ((0x0==base_currency) && (0 == force_double_entry)) {
if ((NULL==base_currency) && (0 == force_double_entry)) {
value = s->damount * s->share_price;
} else
{

View File

@ -401,7 +401,7 @@ double xaccSplitGetClearedBalance (Split *);
double xaccSplitGetReconciledBalance (Split *);
double xaccSplitGetShareBalance (Split *);
double xaccSplitGetCostBasis (Split *);
double xaccSplitGetBaseValue (Split *s, char *base_currency);
double xaccSplitGetBaseValue (Split *s, const char *base_currency);
/* return the parent transaction of the split */