From 6ada3822f28bf14c199d704c410c180110c15862 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sun, 12 Feb 2023 21:17:25 +0100 Subject: [PATCH] CsvTransImp - drop obsolete sanity check Incomplete transfer split data will now be used by the generic import matcher to create the balancing split. --- gnucash/import-export/csv-imp/gnc-import-tx.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gnucash/import-export/csv-imp/gnc-import-tx.cpp b/gnucash/import-export/csv-imp/gnc-import-tx.cpp index bd8b2443a5..a295ff9217 100644 --- a/gnucash/import-export/csv-imp/gnc-import-tx.cpp +++ b/gnucash/import-export/csv-imp/gnc-import-tx.cpp @@ -504,16 +504,6 @@ void GncTxImport::verify_column_selections (ErrorList& error_msg) !check_for_column_type(GncTransPropType::AMOUNT_NEG)) error_msg.add_error( _("Please select a (negated) amount column.")); - /* Verify a transfer account is selected if any of the other transfer properties - * are selected. - */ - if ((check_for_column_type(GncTransPropType::TACTION) || - check_for_column_type(GncTransPropType::TMEMO) || - check_for_column_type(GncTransPropType::TREC_STATE) || - check_for_column_type(GncTransPropType::TREC_DATE)) && - !check_for_column_type(GncTransPropType::TACCOUNT)) - error_msg.add_error( _("Please select a transfer account column or remove the other transfer related columns.")); - /* In multisplit mode and where current account selections imply multi- * currency transactions, we require extra columns to ensure each split is * fully defined.