Fix for bug #4999

This commit implements changes suggested in #4999:
- Invoice Date is set to current date when generating invoice
- Date printed on invoice is the set invoice date instead of printing
date
- Due date is calculated from invoice date
- Due date removed from delivery note