The option to edit the number and expiration dates by batch on invoices are unavailable. You'll want to manually open each transaction and enter the additional information from there. Also, if you enter this information directly from the item's profile, it'll take effect on future transactions.
Here are a few articles that will help you in handling your sales forms and product/services items: