mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix a backend bug. Hope this is the last change for a while ...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4397 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1bd38548a3
commit
9d2f5a1969
@ -64,12 +64,15 @@ typedef enum {
|
|||||||
LOOKUP_LATEST = 1,
|
LOOKUP_LATEST = 1,
|
||||||
LOOKUP_ALL,
|
LOOKUP_ALL,
|
||||||
LOOKUP_AT_TIME,
|
LOOKUP_AT_TIME,
|
||||||
LOOKUP_NEAREST_IN_TIME
|
LOOKUP_NEAREST_IN_TIME,
|
||||||
|
LOOKUP_LATEST_BEFORE,
|
||||||
|
LOOKUP_EARLIEST_AFTER
|
||||||
} PriceLookupType;
|
} PriceLookupType;
|
||||||
|
|
||||||
|
|
||||||
struct _GNCPriceLookup {
|
struct _GNCPriceLookup {
|
||||||
PriceLookupType type;
|
PriceLookupType type;
|
||||||
|
GNCPriceDB *prdb;
|
||||||
gnc_commodity *commodity;
|
gnc_commodity *commodity;
|
||||||
gnc_commodity *currency;
|
gnc_commodity *currency;
|
||||||
Timespec date;
|
Timespec date;
|
||||||
|
@ -642,6 +642,7 @@ gnc_pricedb_lookup_latest(GNCPriceDB *db,
|
|||||||
{
|
{
|
||||||
GNCPriceLookup pl;
|
GNCPriceLookup pl;
|
||||||
pl.type = LOOKUP_LATEST;
|
pl.type = LOOKUP_LATEST;
|
||||||
|
pl.prdb = db;
|
||||||
pl.commodity = commodity;
|
pl.commodity = commodity;
|
||||||
pl.currency = currency;
|
pl.currency = currency;
|
||||||
(db->backend->price_lookup) (db->backend, &pl);
|
(db->backend->price_lookup) (db->backend, &pl);
|
||||||
@ -678,6 +679,7 @@ gnc_pricedb_get_prices(GNCPriceDB *db,
|
|||||||
{
|
{
|
||||||
GNCPriceLookup pl;
|
GNCPriceLookup pl;
|
||||||
pl.type = LOOKUP_ALL;
|
pl.type = LOOKUP_ALL;
|
||||||
|
pl.prdb = db;
|
||||||
pl.commodity = commodity;
|
pl.commodity = commodity;
|
||||||
pl.currency = currency;
|
pl.currency = currency;
|
||||||
(db->backend->price_lookup) (db->backend, &pl);
|
(db->backend->price_lookup) (db->backend, &pl);
|
||||||
@ -715,6 +717,7 @@ gnc_pricedb_lookup_at_time(GNCPriceDB *db,
|
|||||||
{
|
{
|
||||||
GNCPriceLookup pl;
|
GNCPriceLookup pl;
|
||||||
pl.type = LOOKUP_AT_TIME;
|
pl.type = LOOKUP_AT_TIME;
|
||||||
|
pl.prdb = db;
|
||||||
pl.commodity = c;
|
pl.commodity = c;
|
||||||
pl.currency = currency;
|
pl.currency = currency;
|
||||||
pl.date = t;
|
pl.date = t;
|
||||||
@ -762,6 +765,7 @@ gnc_pricedb_lookup_nearest_in_time(GNCPriceDB *db,
|
|||||||
{
|
{
|
||||||
GNCPriceLookup pl;
|
GNCPriceLookup pl;
|
||||||
pl.type = LOOKUP_NEAREST_IN_TIME;
|
pl.type = LOOKUP_NEAREST_IN_TIME;
|
||||||
|
pl.prdb = db;
|
||||||
pl.commodity = c;
|
pl.commodity = c;
|
||||||
pl.currency = currency;
|
pl.currency = currency;
|
||||||
pl.date = t;
|
pl.date = t;
|
||||||
|
Loading…
Reference in New Issue
Block a user