mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
*** 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:
parent
fb82419ce2
commit
5e5d52bbba
@ -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 ******************************************************/
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user