Fix shipment method "On Invoice Paid"

Select lines only if invoice state is paid and not posted.

issue3269
review978002