Commit ca4e954f authored by Maxime Doyen's avatar Maxime Doyen

bugfix #1088259

parent 9dcdc014
......@@ -658,7 +658,7 @@ Account *acc;
/* todo:move this to transaction add
store a new cheque number into account ? */
if( (newope->info) && (newope->paymode == PAYMODE_CHECK) && !(newope->flags & OF_INCOME) )
if( (newope->paymode == PAYMODE_CHECK) && (newope->info) && !(newope->flags & OF_INCOME) )
{
guint cheque;
......@@ -668,12 +668,15 @@ Account *acc;
//DB( g_printf(" -> should store cheque number %d to %d", cheque, newope->account) );
if( newope->flags & OF_CHEQ2 )
acc->cheque2 = cheque;
{
acc->cheque2 = MAX(acc->cheque2, cheque);
}
else
acc->cheque1 = cheque;
{
acc->cheque1 = MAX(acc->cheque1, cheque);
}
}
/* add normal transaction */
acc = da_acc_get( newope->kacc);
if(acc != NULL)
......
......@@ -1329,7 +1329,7 @@ GtkWidget *window, *mainbox, *notebook, *label, *page;
notebook = gtk_notebook_new();
//gtk_notebook_set_tab_pos(notebook, GTK_POS_LEFT);
gtk_notebook_set_tab_pos(notebook, GTK_POS_LEFT);
gtk_box_pack_start (GTK_BOX (mainbox), notebook, TRUE, TRUE, 0);
data.notebook = notebook;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment