Hi,
Follow this steps
1.If AR invoice Qty > Delivery Qty
Create one delivery document for excess qty and add AR invoice document based on the two delivery document
2.If AR invoice Qty < Delivery Qty
Create sales return document based on delivery document and create AR invoice based on the open qty of delivery document.