This would result in double accounting, effectively duplicating the original invoice. A receipt against a sales invoice or payment against a purchase invoice is not a repetition of the original sale or purchase. It is a receipt for the obligation in Accounts receivable or payment of that in Accounts payable: different account(s), no item(s) to reference, different quantities (if any), possibly a different amount from any line item on the invoice.
This would require implementation of an idea languishing in the ideas category for years: Improvement to payment and receipt forms.