diff --git a/gnucash/gnome/dialog-customer.c b/gnucash/gnome/dialog-customer.c index 6f61fc8750..f356bfa172 100644 --- a/gnucash/gnome/dialog-customer.c +++ b/gnucash/gnome/dialog-customer.c @@ -329,23 +329,10 @@ gnc_customer_window_ok_cb (GtkWidget *widget, gpointer data) /* Check for valid company name */ if (check_entry_nonempty (cw->company_entry, - _("You must enter a company name. " - "If this customer is an individual (and not a company) " - "you should enter the same value for:\nIdentification " - "- Company Name, and\nPayment Address - Name."))) + _("The Company Name field cannot be left blank, please " + "enter a company name or a person's name."))) return; - /* Make sure we have an address */ - if (check_entry_nonempty (cw->addr1_entry, NULL) && - check_entry_nonempty (cw->addr2_entry, NULL) && - check_entry_nonempty (cw->addr3_entry, NULL) && - check_entry_nonempty (cw->addr4_entry, NULL)) - { - const char *msg = _("You must enter a billing address."); - gnc_error_dialog (gnc_ui_get_gtk_window (widget), "%s", msg); - return; - } - /* Verify terms, discount, and credit are valid (or empty) */ min = gnc_numeric_zero (); max = gnc_numeric_create (100, 1); diff --git a/gnucash/gnome/dialog-employee.c b/gnucash/gnome/dialog-employee.c index ee71cdbfbd..9244c66f9d 100644 --- a/gnucash/gnome/dialog-employee.c +++ b/gnucash/gnome/dialog-employee.c @@ -208,26 +208,11 @@ gnc_employee_window_ok_cb (GtkWidget *widget, gpointer data) GNCPrintAmountInfo print_info; gnc_commodity *currency; - /* Check for valid username */ - if (check_entry_nonempty (ew->username_entry, - _("You must enter a username."))) - return; - - /* Check for valid username */ + /* Check for valid employeename */ if (check_entry_nonempty (ew->name_entry, - _("You must enter the employee's name."))) + _("You must enter a Payment-Address Name."))) return; - /* Make sure we have an address */ - if (check_entry_nonempty (ew->addr1_entry, NULL) && - check_entry_nonempty (ew->addr2_entry, NULL) && - check_entry_nonempty (ew->addr3_entry, NULL) && - check_entry_nonempty (ew->addr4_entry, NULL)) - { - const char *msg = _("You must enter an address."); - gnc_error_dialog (gnc_ui_get_gtk_window (widget), "%s", msg); - return; - } /* Set the employee id if one has not been chosen */ if (g_strcmp0 (gtk_entry_get_text (GTK_ENTRY (ew->id_entry)), "") == 0) diff --git a/gnucash/gnome/dialog-vendor.c b/gnucash/gnome/dialog-vendor.c index 0d24ace42f..3d5e02903f 100644 --- a/gnucash/gnome/dialog-vendor.c +++ b/gnucash/gnome/dialog-vendor.c @@ -211,23 +211,10 @@ gnc_vendor_window_ok_cb (GtkWidget *widget, gpointer data) /* Check for valid company name */ if (check_entry_nonempty (vw->company_entry, - _("You must enter a company name. " - "If this vendor is an individual (and not a company) " - "you should enter the same value for:\nIdentification " - "- Company Name, and\nPayment Address - Name."))) + _("The Company Name field cannot be left blank, please " + "enter a company name or a person's name."))) return; - /* Make sure we have an address */ - if (check_entry_nonempty (vw->addr1_entry, NULL) && - check_entry_nonempty (vw->addr2_entry, NULL) && - check_entry_nonempty (vw->addr3_entry, NULL) && - check_entry_nonempty (vw->addr4_entry, NULL)) - { - const char *msg = _("You must enter a payment address."); - gnc_error_dialog (gnc_ui_get_gtk_window (widget), "%s", msg); - return; - } - /* Check for valid id and set one if necessary */ if (g_strcmp0 (gtk_entry_get_text (GTK_ENTRY (vw->id_entry)), "") == 0) { diff --git a/gnucash/import-export/customer-import/dialog-customer-import.c b/gnucash/import-export/customer-import/dialog-customer-import.c index adc7bea1cc..793ae5ae06 100644 --- a/gnucash/import-export/customer-import/dialog-customer-import.c +++ b/gnucash/import-export/customer-import/dialog-customer-import.c @@ -246,15 +246,7 @@ gnc_customer_import_fix_customers (GtkListStore *store, guint *fixed, guint *del } } - // At least one of the address fields must have a value. - // If not, then delete the row. - if (strlen(addr1) == 0 && strlen(addr2) == 0 && strlen(addr3) == 0 && strlen(addr4) == 0) - { - valid = gtk_list_store_remove (store, &iter); - (*deleted)++; - continue; - } - + g_free (company); g_free (name); g_free (addr1);