Add Delivered Qty to Sales Inv from Delivery Note, fix issues