[assistant-stock-txn] clear warnings/errors/infos before preparing last page

otherwise the messages will accumulate when nagivating back to the
last page.
This commit is contained in:
Christopher Lam 2023-06-27 23:38:37 +08:00
parent fa3043a631
commit 165fcce8f5

View File

@ -935,6 +935,9 @@ StockAssistantModel::generate_list_of_splits() {
if (!m_txn_types || !m_txn_type)
return { false, "Error: txn_type not initialized", {} };
m_warnings.clear();
m_errors.clear();
m_infos.clear();
m_list_of_splits.clear();
gnc_numeric debit = gnc_numeric_zero ();