CsvTransImp - drop obsolete sanity check

Incomplete transfer split data will now be used by
the generic import matcher to create the balancing split.
This commit is contained in:
Geert Janssens 2023-02-12 21:17:25 +01:00
parent 625978cc33
commit 6ada3822f2

View File

@ -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.