You should add the same material in two line items.
First Line item will be as normal procurement with payment to vendor
Second line item you should tick the field free in that Line item beside of returns item, so you can take the material as free without paying to vendor.