Close Sales Order
In the submitted Sales Orders, you will find the Stop option. Stopping Sales Order will restrict users from creating Delivery Note and Sales Invoice against it.
Scenario
An order is received for ten Wind Turbines. Sales Order is also created for ten units. Due to scarcity of stock, only seven units are delivered to the customer. Pending three units are to be delivered soon. The customer informs them that they don't need to deliver a pending item, as they have purchased it from another vendor.
In this case, the Delivery Note and Sales Invoice will be created only for the seven units. And the Sales Order should be set as stopped.
Once Sales Order is set as stopped, you will not have pending quantities (three in this case) reflecting in Pending to Deliver and Pending to Invoice reports. To make further transactions against Stopped Sales Order, you should first Unstop it.
You will find the same functionality in the Purchase Order as well.