Create invoice line for non-line only once

issue3292
review1043003
Add test for creation of invoice line for non-line only once

issue3292
review1043003