make payment_method and due_date optional, closes #4616
Merge branch 'master' into my_page
set units on invoice_line by default