Home
last modified time | relevance | path

Searched refs:QOF_INSTANCE (Results 1 – 25 of 157) sorted by relevance

1234567

/dports/finance/gnucash/gnucash-4.9/libgnucash/engine/test/
H A Dtest-engine-kvp-properties.c151 qof_instance_set (QOF_INSTANCE (fixture->acct), in test_account_kvp_properties()
164 qof_instance_get (QOF_INSTANCE (fixture->acct), in test_account_kvp_properties()
295 qof_begin_edit (QOF_INSTANCE (fixture->lot)); in test_lot_kvp_properties()
296 qof_instance_set (QOF_INSTANCE (fixture->lot), in test_lot_kvp_properties()
305 qof_instance_get (QOF_INSTANCE (fixture->lot), in test_lot_kvp_properties()
329 qof_begin_edit (QOF_INSTANCE (fixture->cust)); in test_customer_kvp_properties()
365 qof_begin_edit (QOF_INSTANCE (fixture->emp)); in test_employee_kvp_properties()
366 qof_instance_set (QOF_INSTANCE (fixture->emp), in test_employee_kvp_properties()
375 qof_instance_get (QOF_INSTANCE (fixture->emp), in test_employee_kvp_properties()
398 qof_begin_edit (QOF_INSTANCE (fixture->job)); in test_job_kvp_properties()
[all …]
H A Dgtest-import-map.cpp136 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
143 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
148 qof_instance_reset_editlevel(QOF_INSTANCE(t_bank_account)); in TEST_F()
173 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
179 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
186 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
194 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
199 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
288 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
295 qof_instance_mark_clean(QOF_INSTANCE(t_bank_account)); in TEST_F()
[all …]
H A Dtest-job.c75 do_test (qof_instance_get_book(QOF_INSTANCE(job)) == book, in test_job()
98 do_test (guid_equal (&guid, qof_instance_get_guid(QOF_INSTANCE(job))), "guid compare"); in test_job()
159 do_test (!qof_instance_is_dirty (QOF_INSTANCE(job)), "test if start dirty"); in test_string_fcn()
163 do_test (qof_instance_is_dirty (QOF_INSTANCE(job)), "test dirty later"); in test_string_fcn()
184 do_test (!qof_instance_is_dirty (QOF_INSTANCE(job)), "test if start dirty"); in test_numeric_fcn()
188 do_test (qof_instance_is_dirty (QOF_INSTANCE(job)), "test dirty later"); in test_numeric_fcn()
209 do_test (!qof_instance_is_dirty (QOF_INSTANCE(job)), "test if start dirty"); in test_bool_fcn()
215 do_test (qof_instance_is_dirty (QOF_INSTANCE(job)), "test dirty later"); in test_bool_fcn()
237 do_test (!qof_instance_is_dirty (QOF_INSTANCE(job)), "test if start dirty");
241 do_test (qof_instance_is_dirty (QOF_INSTANCE(job)), "test dirty later");
H A Dutest-Transaction.cpp157 qof_instance_set_slots (QOF_INSTANCE (txn), frame); in setup()
164 qof_instance_mark_clean (QOF_INSTANCE (split1)); in setup()
165 qof_instance_mark_clean (QOF_INSTANCE (split2)); in setup()
166 qof_instance_mark_clean (QOF_INSTANCE (txn)); in setup()
320 TestSignal sig2 = test_signal_new (QOF_INSTANCE (lot), in test_gen_event_trans()
963 QofInstance *inst = QOF_INSTANCE (txn); in test_xaccTransLookup()
1029 qof_instance_set (QOF_INSTANCE (book), in test_xaccTransGetImbalance_trading()
1116 qof_instance_set (QOF_INSTANCE (book), in test_xaccTransIsBalanced_trading()
1520 qof_instance_set_dirty (QOF_INSTANCE (destr_split)); in test_trans_cleanup_commit()
1521 qof_instance_set_dirty (QOF_INSTANCE (bogus_split)); in test_trans_cleanup_commit()
[all …]
H A Dutest-Split.cpp97 qof_instance_mark_clean (QOF_INSTANCE (fixture->split)); in setup()
98 qof_instance_mark_clean (QOF_INSTANCE (acc)); in setup()
99 qof_instance_mark_clean (QOF_INSTANCE (txn)); in setup()
166 QofInstance *instance = QOF_INSTANCE (split); in test_gnc_split_dispose()
216 qof_commit_edit (QOF_INSTANCE (txn)); in test_gnc_split_set_get_property()
663 sig1 = test_signal_new (QOF_INSTANCE (txn1), in test_xaccSplitRollbackEdit()
665 sig2 = test_signal_new (QOF_INSTANCE (txn2), in test_xaccSplitRollbackEdit()
667 sig3 = test_signal_new (QOF_INSTANCE (txn1), in test_xaccSplitRollbackEdit()
1155 qof_instance_set (QOF_INSTANCE (book), in test_xaccSplitOrder()
1171 qof_instance_set (QOF_INSTANCE (book), in test_xaccSplitOrder()
[all …]
H A Dtest-qofbook.c442 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_trading_accounts()
448 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_trading_accounts()
473 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
489 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
505 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
521 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
524 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
540 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
543 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
547 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
[all …]
/dports/finance/gnucash/gnucash-4.9/libgnucash/engine/
H A Dqofbook.cpp746 qof_instance_set_dirty (QOF_INSTANCE (book)); in qof_book_increment_and_format_counter()
994 qof_instance_get (QOF_INSTANCE (book), in qof_book_get_book_currency_name()
1009 qof_instance_get (QOF_INSTANCE (book), in qof_book_get_default_gains_policy()
1024 qof_instance_get (QOF_INSTANCE (book), in qof_book_get_default_gain_loss_acct_guid()
1053 qof_instance_get (QOF_INSTANCE (book), in qof_book_use_split_action_for_num_field()
1101 qof_instance_get (QOF_INSTANCE (book), in qof_book_get_num_days_autoreadonly()
1172 qof_instance_set_dirty (QOF_INSTANCE (book)); in qof_book_set_string_option()
1197 qof_instance_set_dirty (QOF_INSTANCE (book)); in qof_book_option_frame_delete()
1253 qof_instance_set_dirty (QOF_INSTANCE (book)); in qof_book_set_feature()
1282 if (!qof_commit_edit (QOF_INSTANCE(book))) return; in qof_book_commit_edit()
[all …]
H A DSplit.c575 qof_instance_copy_kvp (QOF_INSTANCE (split), QOF_INSTANCE (s)); in xaccDupeSplit()
626 qof_instance_copy_kvp (QOF_INSTANCE (to), QOF_INSTANCE (from)); in xaccSplitCopyKvp()
786 same_book = qof_instance_get_book(QOF_INSTANCE(sa)) == qof_instance_get_book(QOF_INSTANCE(sb)); in xaccSplitEqual()
811 if (qof_instance_compare_kvp (QOF_INSTANCE (sa), QOF_INSTANCE (sb)) != 0) in xaccSplitEqual()
954 qof_instance_set_dirty(QOF_INSTANCE(s)); in xaccSplitSetAccount()
1181 qof_instance_set_dirty(QOF_INSTANCE(s)); in xaccSplitSetSharePriceAndAmount()
1208 qof_instance_set_dirty(QOF_INSTANCE(s)); in xaccSplitSetSharePrice()
1250 qof_instance_set_dirty(QOF_INSTANCE(s)); in xaccSplitSetAmount()
1286 qof_instance_set_dirty(QOF_INSTANCE(s)); in xaccSplitSetValue()
1369 qof_instance_set_dirty(QOF_INSTANCE(s)); in xaccSplitSetBaseValue()
[all …]
H A Dgnc-lot.c281 qof_event_gen (QOF_INSTANCE(lot), QOF_EVENT_CREATE, NULL); in gnc_lot_new()
337 qof_begin_edit(QOF_INSTANCE(lot)); in gnc_lot_begin_edit()
358 if (!qof_commit_edit (QOF_INSTANCE(lot))) return; in gnc_lot_commit_edit()
376 return qof_instance_get_book(QOF_INSTANCE(lot)); in gnc_lot_get_book()
498 qof_begin_edit(QOF_INSTANCE(lot)); in gnc_lot_set_title()
502 qof_instance_set_kvp (QOF_INSTANCE (lot), &v, 1, "title"); in gnc_lot_set_title()
503 qof_instance_set_dirty(QOF_INSTANCE(lot)); in gnc_lot_set_title()
517 qof_begin_edit(QOF_INSTANCE(lot)); in gnc_lot_set_notes()
522 qof_instance_set_dirty(QOF_INSTANCE(lot)); in gnc_lot_set_notes()
635 qof_instance_set_dirty(QOF_INSTANCE(lot)); in gnc_lot_add_split()
[all …]
H A DTransaction.c633 qof_instance_copy_kvp (QOF_INSTANCE(to), QOF_INSTANCE(from)); in dupe_trans()
673 qof_instance_set_dirty(QOF_INSTANCE(to)); in xaccTransCloneNoKvp()
693 qof_instance_copy_kvp (QOF_INSTANCE (to), QOF_INSTANCE (from)); in xaccTransClone()
892 same_book = qof_instance_get_book(QOF_INSTANCE(ta)) == qof_instance_get_book(QOF_INSTANCE(tb)); in xaccTransEqual()
949 if (qof_instance_compare_kvp (QOF_INSTANCE (ta), QOF_INSTANCE (tb)) != 0) in xaccTransEqual()
1445 qof_instance_set_dirty(QOF_INSTANCE(trans)); in xaccTransSetCurrency()
1658 if (!qof_commit_edit (QOF_INSTANCE(trans))) in xaccTransCommitEdit()
1708 qof_commit_edit_part2(QOF_INSTANCE(trans), in xaccTransCommitEdit()
1761 qof_instance_swap_kvp (QOF_INSTANCE (trans), QOF_INSTANCE (orig)); in xaccTransRollbackEdit()
1786 qof_instance_copy_kvp (QOF_INSTANCE (s), QOF_INSTANCE (so)); in xaccTransRollbackEdit()
[all …]
H A Dgnc-budget.c275 qof_begin_edit(QOF_INSTANCE(bgt)); in gnc_budget_begin_edit()
281 if (!qof_commit_edit(QOF_INSTANCE(bgt))) return; in gnc_budget_commit_edit()
282 qof_commit_edit_part2(QOF_INSTANCE(bgt), commit_err, in gnc_budget_commit_edit()
446 return qof_instance_get_guid(QOF_INSTANCE(budget)); in gnc_budget_get_guid()
498 qof_instance_set_kvp (QOF_INSTANCE (budget), NULL, 2, path_part_one, path_part_two); in gnc_budget_unset_account_period_value()
530 qof_instance_set_kvp (QOF_INSTANCE (budget), NULL, 2, path_part_one, path_part_two); in gnc_budget_set_account_period_value()
536 qof_instance_set_kvp (QOF_INSTANCE (budget), &v, 2, path_part_one, path_part_two); in gnc_budget_set_account_period_value()
563 qof_instance_get_kvp (QOF_INSTANCE (budget), &v, 2, path_part_one, path_part_two); in gnc_budget_is_account_period_value_set()
585 qof_instance_get_kvp (QOF_INSTANCE (budget), &v, 2, path_part_one, path_part_two); in gnc_budget_get_account_period_value()
647 …qof_instance_get_kvp (QOF_INSTANCE (budget), &v, 3, GNC_BUDGET_NOTES_PATH, path_part_one, path_par… in gnc_budget_get_account_period_note()
[all …]
H A DAccount.cpp1283 qof_instance_copy_kvp (QOF_INSTANCE (ret), QOF_INSTANCE (from)); in xaccCloneAccount()
1693 if (qof_instance_compare_kvp (QOF_INSTANCE (aa), QOF_INSTANCE (ab)) != 0) in xaccAccountEqual()
4754 qof_instance_get_path_kvp (QOF_INSTANCE(acc), &v1, in xaccAccountGetReconcileLastInterval()
4756 qof_instance_get_path_kvp (QOF_INSTANCE(acc), &v2, in xaccAccountGetReconcileLastInterval()
4809 qof_instance_get_path_kvp (QOF_INSTANCE(acc), &v, in xaccAccountGetReconcilePostponeDate()
4836 qof_instance_set_path_kvp (QOF_INSTANCE (acc), &v, in xaccAccountSetReconcilePostponeDate()
4854 qof_instance_get_path_kvp (QOF_INSTANCE(acc), &v, in xaccAccountGetReconcilePostponeBalance()
4882 qof_instance_set_path_kvp (QOF_INSTANCE (acc), &v, in xaccAccountSetReconcilePostponeBalance()
5080 qof_instance_set_path_kvp (QOF_INSTANCE (acc), &v, in xaccAccountSetReconcileChildrenStatus()
5100 qof_instance_get_path_kvp (QOF_INSTANCE (acc), &v, in xaccAccountGetReconcileChildrenStatus()
[all …]
H A DgncJob.c123 qof_instance_get_kvp (QOF_INSTANCE (job), value, 1, OWNER_EXPORT_PDF_DIRNAME); in gnc_job_get_property()
151 qof_instance_set_kvp (QOF_INSTANCE (job), value, 1, OWNER_EXPORT_PDF_DIRNAME); in gnc_job_set_property()
315 qof_instance_set_kvp (QOF_INSTANCE (job), &v, 1, GNC_JOB_RATE); in gncJobSetRate()
320 qof_instance_set_kvp (QOF_INSTANCE (job), NULL, 1, GNC_JOB_RATE); in gncJobSetRate()
420 if (qof_instance_has_kvp (QOF_INSTANCE (job))) in gncJobCommitEdit()
421 … gnc_features_set_used (qof_instance_get_book (QOF_INSTANCE (job)), GNC_FEATURE_KVP_EXTRA_DATA); in gncJobCommitEdit()
423 if (!qof_commit_edit (QOF_INSTANCE(job))) return; in gncJobCommitEdit()
455 qof_instance_get_kvp (QOF_INSTANCE (job), &v, 1, GNC_JOB_RATE); in gncJobGetRate()
482 return QOF_INSTANCE(qofOwnerGetOwner(&job->owner)); in qofJobGetOwner()
H A DgncJob.h114 #define gncJobGetBook(x) qof_instance_get_book(QOF_INSTANCE(x))
115 #define gncJobGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x))
116 #define gncJobRetGUID(x) (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null()))
/dports/finance/gnucash/gnucash-4.9/gnucash/import-export/aqb/
H A Dgnc-ab-kvp.c42 qof_instance_get (QOF_INSTANCE (a), in gnc_ab_get_account_accountid()
52 qof_instance_set (QOF_INSTANCE (a), in gnc_ab_set_account_accountid()
62 qof_instance_get (QOF_INSTANCE (a), in gnc_ab_get_account_bankcode()
72 qof_instance_set (QOF_INSTANCE (a), in gnc_ab_set_account_bankcode()
82 qof_instance_get (QOF_INSTANCE (a), in gnc_ab_get_account_uid()
92 qof_instance_set (QOF_INSTANCE (a), in gnc_ab_set_account_uid()
102 qof_instance_get (QOF_INSTANCE (a), in gnc_ab_get_account_trans_retrieval()
113 qof_instance_set (QOF_INSTANCE (a), in gnc_ab_set_account_trans_retrieval()
/dports/finance/gnucash/gnucash-4.9/gnucash/import-export/
H A Dimport-utilities.c46 qof_instance_get (QOF_INSTANCE (account), "online-id", &id, NULL); in gnc_import_get_acc_online_id()
56 qof_instance_set (QOF_INSTANCE (account), "online-id", id, NULL); in gnc_import_set_acc_online_id()
63 qof_instance_get (QOF_INSTANCE (transaction), "online-id", &id, NULL); in gnc_import_get_trans_online_id()
72 qof_instance_set (QOF_INSTANCE (transaction), "online-id", id, NULL); in gnc_import_set_trans_online_id()
86 qof_instance_get (QOF_INSTANCE (split), "online-id", &id, NULL); in gnc_import_get_split_online_id()
95 qof_instance_set (QOF_INSTANCE (split), "online-id", id, NULL); in gnc_import_set_split_online_id()
/dports/finance/gnucash/gnucash-4.9/libgnucash/backend/sql/
H A Dgnc-book-sql.cpp90 return (gpointer)qof_instance_get_guid (QOF_INSTANCE (root)); in get_root_account_guid()
105 qof_instance_set_guid (QOF_INSTANCE (root), guid); in set_root_account_guid()
118 return (gpointer)qof_instance_get_guid (QOF_INSTANCE (root)); in get_root_template_guid()
141 qof_instance_set_guid (QOF_INSTANCE (root), guid); in set_root_template_guid()
162 gnc_sql_slots_load (sql_be, QOF_INSTANCE (pBook)); in load_single_book()
165 qof_instance_mark_clean (QOF_INSTANCE (pBook)); in load_single_book()
187 commit (sql_be, QOF_INSTANCE (sql_be->book())); in load_all()
H A Dgnc-owner-sql.cpp196 inst = QOF_INSTANCE (gncOwnerGetCustomer (owner)); in add_to_query()
200 inst = QOF_INSTANCE (gncOwnerGetJob (owner)); in add_to_query()
204 inst = QOF_INSTANCE (gncOwnerGetVendor (owner)); in add_to_query()
208 inst = QOF_INSTANCE (gncOwnerGetEmployee (owner)); in add_to_query()
/dports/finance/gnucash/gnucash-4.9/bindings/
H A Dbusiness-core.i38 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); } in gncTaxTableReturnGUID()
41 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); } in gncInvoiceReturnGUID()
44 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); } in gncJobReturnGUID()
47 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); } in gncVendorReturnGUID()
50 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); } in gncCustomerReturnGUID()
53 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); } in gncEmployeeReturnGUID()
56 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); } in gncLotReturnGUID()
H A Dengine-common.i23 { return qof_instance_get_guid(QOF_INSTANCE(x)); } in gncSplitGetGUID()
25 { return qof_instance_get_guid(QOF_INSTANCE(x)); } in gncTransGetGUID()
27 { return qof_instance_get_guid(QOF_INSTANCE(x)); } in gncAccountGetGUID()
/dports/finance/gnucash/gnucash-4.9/libgnucash/app-utils/test/
H A Dtest-gnc-ui-util.c80 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
97 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
100 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
104 qof_instance_set (QOF_INSTANCE (fixture->book), in test_book_use_book_currency()
105 "default-gain-loss-account-guid", qof_entity_get_guid(QOF_INSTANCE(acc)), in test_book_use_book_currency()
H A Dtest-option-util.cpp65 slots = qof_instance_get_slots (QOF_INSTANCE (book)); in setup_kvp()
66 qof_begin_edit (QOF_INSTANCE (book)); in setup_kvp()
67 qof_instance_set (QOF_INSTANCE (book), in setup_kvp()
75 qof_commit_edit (QOF_INSTANCE (book)); in setup_kvp()
110 KvpFrame *slots = qof_instance_get_slots (QOF_INSTANCE (book)); in test_option_save()
/dports/finance/gnucash/gnucash-4.9/libgnucash/backend/sql/test/
H A Dutest-gnc-backend-sql.cpp315 g_assert (!qof_instance_get_dirty_flag (QOF_INSTANCE (book))); in test_gnc_sql_commit_edit()
318 sql_be->commit(QOF_INSTANCE (book)); in test_gnc_sql_commit_edit()
319 g_assert (!qof_instance_get_dirty_flag (QOF_INSTANCE (book))); in test_gnc_sql_commit_edit()
324 qof_instance_set_dirty_flag (QOF_INSTANCE (book), TRUE); in test_gnc_sql_commit_edit()
326 g_assert (qof_instance_get_dirty_flag (QOF_INSTANCE (book))); in test_gnc_sql_commit_edit()
329 sql_be->commit(QOF_INSTANCE (book)); in test_gnc_sql_commit_edit()
330 g_assert (!qof_instance_get_dirty_flag (QOF_INSTANCE (book))); in test_gnc_sql_commit_edit()
/dports/finance/gnucash/gnucash-4.9/libgnucash/backend/xml/
H A Dgnc-bill-term-xml-v2.cpp87 maybe_add_guid (ret, billterm_guid_string, QOF_INSTANCE (term)); in billterm_dom_tree_create()
100 QOF_INSTANCE (term))); in billterm_dom_tree_create()
105 QOF_INSTANCE (gncBillTermGetChild (term))); in billterm_dom_tree_create()
108 QOF_INSTANCE (gncBillTermGetParent (term))); in billterm_dom_tree_create()
403 return dom_tree_create_instance_slots (node, QOF_INSTANCE (pdata->term)); in billterm_slots_handler()
591 guid_to_string_buff (qof_instance_get_guid (QOF_INSTANCE (term)), guidstr); in billterm_scrub_cb()
663 guid_to_string_buff (qof_instance_get_guid (QOF_INSTANCE (cust)), custstr); in billterm_scrub_cust()
664 guid_to_string_buff (qof_instance_get_guid (QOF_INSTANCE (term)), termstr); in billterm_scrub_cust()
689 guid_to_string_buff (qof_instance_get_guid (QOF_INSTANCE (term)), termstr); in billterm_scrub_vendor()
704 guid_to_string_buff (qof_instance_get_guid (QOF_INSTANCE (term)), termstr); in billterm_reset_refcount()
[all …]
H A Dgnc-book-xml-v2.cpp77 QOF_INSTANCE (book))); in gnc_book_dom_tree_create()
100 QOF_INSTANCE (book)); in write_book_parts()
123 qof_instance_set_guid (QOF_INSTANCE (book), guid); in book_id_handler()
137 success = dom_tree_create_instance_slots (node, QOF_INSTANCE (book)); in book_slots_handler()

1234567