[T2299] fix _prepare_invoice_line function

Merged Joel Maglioni requested to merge T2299 into 15.0-stage

Merge request reports