$ 0 0 The Sales Order table key is Document Type and No, so passing only 1063 is not enough. You need to pass also the Document Type.