Issue #24249:check privs for showing prices and costs

Both here and below, the validators and precision are appropriate whether the widgets are visible or not. The code would be more robust if these are always set.