Another bug fix in appointment report
Merge remote branch 'origin/release' into lightweight_queue