add external_ref for line items