Exit gracefully if transactions do not balance or try to post to a
period in chartdetails that doesn't exist
Ricard: Extend the sanity check to 100% discount