Use split SCU when borking random split pairs.

Reduces likelihood of a zero value in the transaction currency.
This commit is contained in:
John Ralls 2018-11-10 08:13:11 +09:00
parent 2667ee7d98
commit 4c1c485db6

View File

@ -913,7 +913,7 @@ add_random_splits(QofBook *book, Transaction *trn, GList *account_list)
/* Other split should have equal and opposite value */
if (do_bork())
{
val = get_random_gnc_numeric(GNC_DENOM_AUTO);
val = get_random_gnc_numeric(s2_scu);
g_log ("test.engine.suff", G_LOG_LEVEL_DEBUG, "Borking second %" PRIu64
" / %" PRIu64 ", scu %d\n", val.num, val.denom, s2_scu);
}