X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fhb-transaction.h;h=8648577f6f26120dd433d4af3f0fecc82ff5ff4e;hp=c6d6a0b18667a7a062689f441a8c1af733999639;hb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6;hpb=b84403141a4c3a32a594800eb3fcabdc856461f8 diff --git a/src/hb-transaction.h b/src/hb-transaction.h index c6d6a0b..8648577 100644 --- a/src/hb-transaction.h +++ b/src/hb-transaction.h @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2017 Maxime DOYEN + * Copyright (C) 1995-2018 Maxime DOYEN * * This file is part of HomeBank. * @@ -35,7 +35,7 @@ struct _transaction gushort flags; guint32 kpay; guint32 kcat; - gchar *wording; + gchar *memo; guint32 date; gushort pos; @@ -44,13 +44,14 @@ struct _transaction guint32 *tags; guint32 kxfer; //strong link xfer key guint32 kxferacc; - + Split *splits[TXN_MAX_SPLIT+1]; /* unsaved datas */ - GList *same; //used for import todo: change this guint32 kcur; gdouble balance; + gboolean overdraft; + GList *same; //used for import todo: change this }; #include "hb-archive.h" @@ -102,15 +103,17 @@ enum guint da_transaction_length(void); -void transaction_add_treeview(Transaction *ope, GtkWidget *treeview, guint32 accnum); -void transaction_add(Transaction *ope, GtkWidget *treeview, guint32 accnum); + +void transaction_remove(Transaction *ope); +gboolean da_transaction_insert_memo(Transaction *item); +Transaction *transaction_add(Transaction *ope); gboolean transaction_acc_move(Transaction *txn, guint32 okacc, guint32 nkacc); Transaction *transaction_xfer_child_strong_get(Transaction *src); void transaction_xfer_search_or_add_child(GtkWindow *parentwindow, Transaction *ope, gboolean manual); void transaction_xfer_change_to_child(Transaction *ope, Transaction *child); -void transaction_xfer_sync_child(Transaction *ope, Transaction *child); +void transaction_xfer_child_sync(Transaction *s_txn, Transaction *child); void transaction_xfer_remove_child(Transaction *src); Transaction *transaction_old_get_child_transfer(Transaction *src);