None 'line' type sale lines not invoiced prevents sale from completing correctly
We're having some difficulties with non 'line' type sale lines (like comments) that are not retained in the final invoice. Processing the sale seems to always generate an null invoice (amount=0) with only these non line type lines.
Perhaps a simple check when regenerating the invoice to see if there is at least 1 real line (type = 'line').
In any event, currently, there are many sales in processing whereas if clicking 'process', the invoice state is changed to 'partially paid' whereas the amount due is totally paid and the sale state should be 'done' instead of in process.