[T1748] Avoid duplicate retentions on those that are configured as 'invoice_subtotal'

Merged Macarena Meldi requested to merge 15.0-hf-T1748 into 15.0

Merge request reports