Only pay invoice if there is an amount due
Fix bug where current period end wasn't getting recorded on cancel
2.0b31