MT#8401 Use common invoice data preprocessing for generation script.