24 #ifndef GNC_ENTRY_LEDGER_H 25 #define GNC_ENTRY_LEDGER_H 40 GNC_ENTRY_ORDER_NONE = -1,
42 GNCENTRY_ORDER_VIEWER,
43 GNCENTRY_INVOICE_ENTRY,
44 GNCENTRY_INVOICE_VIEWER,
45 GNCENTRY_CUST_CREDIT_NOTE_ENTRY,
46 GNCENTRY_CUST_CREDIT_NOTE_VIEWER,
49 GNCENTRY_VEND_CREDIT_NOTE_ENTRY,
50 GNCENTRY_VEND_CREDIT_NOTE_VIEWER,
51 GNCENTRY_EXPVOUCHER_ENTRY,
52 GNCENTRY_EXPVOUCHER_VIEWER,
53 GNCENTRY_EMPL_CREDIT_NOTE_ENTRY,
54 GNCENTRY_EMPL_CREDIT_NOTE_VIEWER,
55 GNCENTRY_NUM_REGISTER_TYPES
58 #define ENTRY_IACCT_CELL "inv-account" 59 #define ENTRY_BACCT_CELL "bill-account" 60 #define ENTRY_ACTN_CELL "action" 61 #define ENTRY_DATE_CELL "date" 62 #define ENTRY_DESC_CELL "description" 63 #define ENTRY_DISC_CELL "discount" 64 #define ENTRY_DISTYPE_CELL "discount-type" 65 #define ENTRY_DISHOW_CELL "discount-how" 66 #define ENTRY_PRIC_CELL "price" 67 #define ENTRY_QTY_CELL "quantity" 68 #define ENTRY_TAXABLE_CELL "istaxable" 69 #define ENTRY_TAXTABLE_CELL "taxtable" 70 #define ENTRY_TAXINCLUDED_CELL "taxincluded" 71 #define ENTRY_BILLABLE_CELL "isbillable" 73 #define ENTRY_INV_CELL "isinvoiced" 74 #define ENTRY_VALUE_CELL "line-value" 75 #define ENTRY_TAXVAL_CELL "line-tax-val" 77 #define ENTRY_PAYMENT_CELL "payment" 103 void gnc_entry_ledger_display_refresh (GncEntryLedger *ledger);
108 void gnc_entry_ledger_set_parent (GncEntryLedger *ledger, GtkWidget *
parent);
110 void gnc_entry_ledger_set_readonly (GncEntryLedger *ledger, gboolean readonly);
112 gboolean gnc_entry_ledger_changed (GncEntryLedger *ledger);
114 void gnc_entry_ledger_cancel_cursor_changes (GncEntryLedger *ledger);
122 void gnc_entry_ledger_reset_query (GncEntryLedger *ledger);
127 VirtualCellLocation vcell_loc);
137 const GncEntry *entry,
138 VirtualCellLocation *vcell_loc);
140 void gnc_entry_ledger_delete_current_entry (GncEntryLedger *ledger);
141 void gnc_entry_ledger_duplicate_current_entry (GncEntryLedger *ledger);
153 QofQuery * gnc_entry_ledger_get_query (GncEntryLedger *ledger);
155 void gnc_entry_ledger_set_prefs_group (GncEntryLedger *ledger,
const gchar *
string);
GncEntry * gnc_entry_ledger_get_entry(GncEntryLedger *ledger, VirtualCellLocation vcell_loc)
Returns the GncEntry at the given location, or NULL if the location is not valid. ...
void gnc_entry_ledger_move_current_entry_updown(GncEntryLedger *ledger, gboolean move_up)
This implements the command of moving the current entry (where the cursor is currently located) one r...
GncEntryLedger * gnc_entry_ledger_new(QofBook *book, GncEntryLedgerType type)
Create and return a new GncEntry Ledger.
GncEntry * gnc_entry_ledger_get_current_entry(GncEntryLedger *ledger)
Returns the Entry where the cursor is currently located.
GtkWidget * parent
A Hint for where to display.
void gnc_entry_ledger_set_default_order(GncEntryLedger *ledger, GncOrder *order)
Set the default order for this ledger.
gboolean gnc_entry_ledger_check_close(GtkWidget *parent, GncEntryLedger *ledger)
This will ask the user if they really want to make a change.
void gnc_entry_ledger_destroy(GncEntryLedger *ledger)
Destroy the GncEntry Ledger.
Declarations for the Table object.
void gnc_entry_ledger_set_default_invoice(GncEntryLedger *ledger, GncInvoice *invoice)
Set the default invoice for this ledger.
Table * gnc_entry_ledger_get_table(GncEntryLedger *ledger)
Get the Table.
void gnc_entry_ledger_load(GncEntryLedger *ledger, GList *entry_list)
Copy GncEntry information from the list to the rows of the Ledger.
Business Entry Interface.
gboolean gnc_entry_ledger_get_entry_virt_loc(GncEntryLedger *ledger, const GncEntry *entry, VirtualCellLocation *vcell_loc)
Looks up the cell location of the given "entry" and writes the location into the variable pointed to ...
GncEntry * gnc_entry_ledger_get_blank_entry(GncEntryLedger *ledger)
Returns the GncEntry that represents the blank new line at the bottom of the ledger.
gboolean gnc_entry_ledger_commit_entry(GncEntryLedger *ledger)
This will act just like hitting 'return' to record an entry.