Several fixes for sales and purchases being calibrated.

Could not calibrate a sale or purchase when one action was already in a closed FYE.