SAN FRANCISCO — Shartsis Friese squared off against JP Morgan Retirement Services in San Francisco federal court Monday over who was responsible for six years of miscalculated contributions to the San Francisco firm’s deferred compensation and profit-sharing plan.

The firm says its plan contributions didn’t meet IRS rules because of bad advice from its outside benefits consultant. The firm said it has had to spend $1.2 million to bring the fund back into compliance.