mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace GNCBook with QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18203 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7bec19eef9
commit
3bc9f56800
@ -732,7 +732,7 @@ static void trans_property_list_add(TransProperty* property)
|
||||
* @param book The book where the split should be stored
|
||||
* @param amount The amount of the split
|
||||
*/
|
||||
static void trans_add_split(Transaction* trans, Account* account, GNCBook* book,
|
||||
static void trans_add_split(Transaction* trans, Account* account, QofBook* book,
|
||||
gnc_numeric amount)
|
||||
{
|
||||
Split* split = xaccMallocSplit(book);
|
||||
@ -842,7 +842,7 @@ static GncCsvTransLine* trans_property_list_to_trans(TransPropertyList* list, gc
|
||||
{
|
||||
GncCsvTransLine* trans_line = g_new(GncCsvTransLine, 1);
|
||||
GList* properties_begin = list->properties;
|
||||
GNCBook* book = gnc_account_get_book(list->account);
|
||||
QofBook* book = gnc_account_get_book(list->account);
|
||||
gnc_commodity* currency = xaccAccountGetCommodity(list->account);
|
||||
gnc_numeric amount = double_to_gnc_numeric(0.0, xaccAccountGetCommoditySCU(list->account),
|
||||
GNC_RND_ROUND);
|
||||
|
@ -44,14 +44,14 @@ static QofLogModule log_module = GNC_MOD_IMPORT;
|
||||
struct _GncImportMatchMap {
|
||||
kvp_frame * frame;
|
||||
Account * acc;
|
||||
GNCBook * book;
|
||||
QofBook * book;
|
||||
};
|
||||
|
||||
#define IMAP_FRAME "import-map"
|
||||
#define IMAP_FRAME_BAYES "import-map-bayes"
|
||||
|
||||
static GncImportMatchMap *
|
||||
gnc_imap_create_from_frame (kvp_frame *frame, Account *acc, GNCBook *book)
|
||||
gnc_imap_create_from_frame (kvp_frame *frame, Account *acc, QofBook *book)
|
||||
{
|
||||
GncImportMatchMap *imap;
|
||||
|
||||
@ -84,7 +84,7 @@ GncImportMatchMap * gnc_imap_create_from_account (Account *acc)
|
||||
return gnc_imap_create_from_frame (frame, acc, NULL);
|
||||
}
|
||||
|
||||
GncImportMatchMap * gnc_imap_create_from_book (GNCBook *book)
|
||||
GncImportMatchMap * gnc_imap_create_from_book (QofBook *book)
|
||||
{
|
||||
kvp_frame * frame;
|
||||
|
||||
|
@ -37,7 +37,7 @@ typedef struct _GncImportMatchMap GncImportMatchMap;
|
||||
/** @{
|
||||
Obtain an ImportMatchMap object from an Account or a Book */
|
||||
GncImportMatchMap * gnc_imap_create_from_account (Account *acc);
|
||||
GncImportMatchMap * gnc_imap_create_from_book (GNCBook *book);
|
||||
GncImportMatchMap * gnc_imap_create_from_book (QofBook *book);
|
||||
/*@}*/
|
||||
|
||||
/** Destroy an import map. But all stored entries will still continue
|
||||
|
@ -360,7 +360,7 @@ static void process_trans_record( FILE *log_file)
|
||||
Transaction * trans = NULL;
|
||||
Split * split = NULL;
|
||||
Account * acct = NULL;
|
||||
GNCBook * book = gnc_get_current_book();
|
||||
QofBook * book = gnc_get_current_book();
|
||||
|
||||
DEBUG("process_trans_record(): Begin...\n");
|
||||
|
||||
|
@ -112,7 +112,7 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data, void * transaction_u
|
||||
gnc_commodity *currency=NULL;
|
||||
gnc_commodity *investment_commodity=NULL;
|
||||
gnc_numeric gnc_amount, gnc_units;
|
||||
GNCBook *book;
|
||||
QofBook *book;
|
||||
Transaction *transaction;
|
||||
Split *split;
|
||||
gchar *notes, *tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user