mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
small hacks to add price support
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4266 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
641055dcf3
commit
c21002abac
@ -1296,10 +1296,21 @@ pgendGetAllTransactions (PGBackend *be, AccountGroup *grp)
|
||||
/* ============================================================= */
|
||||
/* ============================================================= */
|
||||
|
||||
static gboolean
|
||||
foreach_price_cb (GNCPrice *pr, gpointer bend)
|
||||
{
|
||||
PGBackend *be = (PGBackend *) bend;
|
||||
|
||||
pgendPutOnePriceOnly (be, pr);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
pgendStorePriceDBNoLock (PGBackend *be, GNCPriceDB *prdb)
|
||||
{
|
||||
PERR ("not implemented");
|
||||
gnc_pricedb_foreach_price (prdb, foreach_price_cb,
|
||||
(gpointer) be, FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -2288,7 +2299,7 @@ pgend_session_begin (GNCBook *sess, const char * sessionid,
|
||||
/* check the connection status */
|
||||
if (CONNECTION_BAD == PQstatus(be->connection))
|
||||
{
|
||||
PERR("Can't connect to database 'gnucash':\n"
|
||||
PERR("Can't connect to database 'template1':\n"
|
||||
"\t%s",
|
||||
PQerrorMessage(be->connection));
|
||||
PQfinish (be->connection);
|
||||
|
@ -17,8 +17,10 @@ compare_one_only(account)
|
||||
compare_one_only(modity)
|
||||
compare_one_only(split)
|
||||
compare_one_only(transaction)
|
||||
compare_one_only(price)
|
||||
|
||||
put_one_only(account)
|
||||
put_one_only(modity)
|
||||
put_one_only(split)
|
||||
put_one_only(transaction)
|
||||
put_one_only(price)
|
||||
|
Loading…
Reference in New Issue
Block a user