Fixes defects regarding issues with WO_NO and Inv_NO