only one discount per line, and only one per invoice, refs #4738
remove invoice_line notes when removing invoice_line
Merge branch 'master' into discount_per_line