Electronic Remittance (835) Fix

We fixed an error in calculating the “contractual obligation” aka “write off” that occurred in certain “edge” cases with some insurance payments. This happens when there were multiple write-offs without any corresponding payments. This is a rare problem, as we had been using the ERA payment module for over a year and had only encountered the problem for the first time a week ago.