mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* .../business-ledger/gncEntryLedgerLayout.c: change the order
of columns in order to get page-up/page-down to work without going into an infinite loop. * .../business-ledger/gncEntryLedgerLoad.c: suspend events when we're creating a new entry. Unfortunately the gnucash-sheet still never counts the blank entry, and I don't know why. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7823 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f931ae8c42
commit
7482f3b07f
@ -49,6 +49,13 @@
|
|||||||
* .../business-gnome/glade/vendor.glade:
|
* .../business-gnome/glade/vendor.glade:
|
||||||
* .../business-gnome/glade/employee.glade:
|
* .../business-gnome/glade/employee.glade:
|
||||||
Add ability to edit currency in the UI. Fixes #101001
|
Add ability to edit currency in the UI. Fixes #101001
|
||||||
|
|
||||||
|
* .../business-ledger/gncEntryLedgerLayout.c: change the order
|
||||||
|
of columns in order to get page-up/page-down to work without going
|
||||||
|
into an infinite loop.
|
||||||
|
* .../business-ledger/gncEntryLedgerLoad.c: suspend events
|
||||||
|
when we're creating a new entry. Unfortunately the gnucash-sheet
|
||||||
|
still never counts the blank entry, and I don't know why.
|
||||||
|
|
||||||
2003-01-12 David Hampton <hampton@employees.org>
|
2003-01-12 David Hampton <hampton@employees.org>
|
||||||
|
|
||||||
|
@ -1828,7 +1828,7 @@ gnc_invoice_new_window (GNCBook *bookp, InvoiceDialogType type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gnc_table_realize_gui (gnc_entry_ledger_get_table (entry_ledger));
|
gnc_table_realize_gui (gnc_entry_ledger_get_table (entry_ledger));
|
||||||
|
|
||||||
/* Show the dialog */
|
/* Show the dialog */
|
||||||
gtk_widget_show_all (iw->dialog);
|
gtk_widget_show_all (iw->dialog);
|
||||||
|
|
||||||
|
@ -143,8 +143,8 @@ static void gnc_entry_ledger_set_cells (GncEntryLedger *ledger,
|
|||||||
case GNCENTRY_INVOICE_VIEWER:
|
case GNCENTRY_INVOICE_VIEWER:
|
||||||
|
|
||||||
curs = gnc_table_layout_get_cursor (layout, "cursor");
|
curs = gnc_table_layout_get_cursor (layout, "cursor");
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_INV_CELL, 0, 0);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_DATE_CELL, 0, 0);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_DATE_CELL, 0, 1);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_INV_CELL, 0, 1);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_DESC_CELL, 0, 2);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_DESC_CELL, 0, 2);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_ACTN_CELL, 0, 3);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_ACTN_CELL, 0, 3);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_IACCT_CELL, 0, 4);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_IACCT_CELL, 0, 4);
|
||||||
@ -165,8 +165,8 @@ static void gnc_entry_ledger_set_cells (GncEntryLedger *ledger,
|
|||||||
case GNCENTRY_BILL_VIEWER:
|
case GNCENTRY_BILL_VIEWER:
|
||||||
|
|
||||||
curs = gnc_table_layout_get_cursor (layout, "cursor");
|
curs = gnc_table_layout_get_cursor (layout, "cursor");
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_INV_CELL, 0, 0);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_DATE_CELL, 0, 0);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_DATE_CELL, 0, 1);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_INV_CELL, 0, 1);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_DESC_CELL, 0, 2);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_DESC_CELL, 0, 2);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_ACTN_CELL, 0, 3);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_ACTN_CELL, 0, 3);
|
||||||
gnc_table_layout_set_cell (layout, curs, ENTRY_BACCT_CELL, 0, 4);
|
gnc_table_layout_set_cell (layout, curs, ENTRY_BACCT_CELL, 0, 4);
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include "combocell.h"
|
#include "combocell.h"
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
#include "global-options.h"
|
#include "global-options.h"
|
||||||
|
#include "gnc-component-manager.h"
|
||||||
|
|
||||||
#include "gncEntry.h"
|
#include "gncEntry.h"
|
||||||
#include "gncEntryLedger.h"
|
#include "gncEntryLedger.h"
|
||||||
@ -179,10 +180,15 @@ void gnc_entry_ledger_load (GncEntryLedger *ledger, GList *entry_list)
|
|||||||
case GNCENTRY_ORDER_ENTRY:
|
case GNCENTRY_ORDER_ENTRY:
|
||||||
case GNCENTRY_INVOICE_ENTRY:
|
case GNCENTRY_INVOICE_ENTRY:
|
||||||
case GNCENTRY_BILL_ENTRY:
|
case GNCENTRY_BILL_ENTRY:
|
||||||
|
|
||||||
|
gnc_suspend_gui_refresh ();
|
||||||
|
|
||||||
blank_entry = gncEntryCreate (ledger->book);
|
blank_entry = gncEntryCreate (ledger->book);
|
||||||
gncEntrySetDate (blank_entry, ledger->last_date_entered);
|
gncEntrySetDate (blank_entry, ledger->last_date_entered);
|
||||||
ledger->blank_entry_guid = *gncEntryGetGUID (blank_entry);
|
ledger->blank_entry_guid = *gncEntryGetGUID (blank_entry);
|
||||||
|
|
||||||
|
gnc_resume_gui_refresh ();
|
||||||
|
|
||||||
{
|
{
|
||||||
GncOwner *owner = gncInvoiceGetOwner (ledger->invoice);
|
GncOwner *owner = gncInvoiceGetOwner (ledger->invoice);
|
||||||
GncTaxTable *table;
|
GncTaxTable *table;
|
||||||
@ -246,6 +252,7 @@ void gnc_entry_ledger_load (GncEntryLedger *ledger, GList *entry_list)
|
|||||||
gncEntrySetBillTaxIncluded (blank_entry, taxincluded);
|
gncEntrySetBillTaxIncluded (blank_entry, taxincluded);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ledger->blank_entry_guid = *xaccGUIDNULL ();
|
ledger->blank_entry_guid = *xaccGUIDNULL ();
|
||||||
|
Loading…
Reference in New Issue
Block a user