You can partially or fully credit both in the periodic invoice view and in the direct invoice view.
It is only with full crediting that you can invoice the period again.
Select the desired invoice line and press the "Credit" button.
The direct invoice view on the order:
The invoice view: