mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix credit note duplication. It was not possible to duplicate a credit
note as an invoice (aka voiding a credit note). git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22211 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
ed6cdb175c
commit
4d81214bf2
@ -2422,6 +2422,14 @@ gnc_invoice_window_new_invoice (InvoiceDialogType dialog_type, QofBook *bookp,
|
||||
break;
|
||||
}
|
||||
|
||||
if (dialog_type == DUP_INVOICE)
|
||||
{
|
||||
GtkWidget *invoice_radio = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_invoice_type"));
|
||||
GtkWidget *cn_radio = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_creditnote_type"));
|
||||
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(cn_radio), gncInvoiceGetIsCreditNote (invoice));
|
||||
}
|
||||
|
||||
iw->id_entry = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_id_entry"));
|
||||
iw->billing_id_entry = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_billing_id_entry"));
|
||||
iw->terms_menu = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_terms_menu"));
|
||||
|
Loading…
Reference in New Issue
Block a user