Create invoice for sales order with cancelled linked purchase order

Purchase To Pay: Purchase Order Version 9.39

Earlier, when you had cancelled a purchase order that was linked to a sales order, you could not create a sales invoice for that sales order. This has now been fixed.