Issue #21628: Fixed issue with asof parameter
Issue #21628: Fixed Document Number autonumber