added invoice business rules
Merge remote-tracking branch 'origin/master' into remote-master