Pages

Tuesday, July 7, 2009

Document management on Return Order may apply documents to wrong record

The following bug applies to AX 2009 application build number 5.0.1500.809 and earlier.

When you attach a document or note through document management to a return order line, the document or note might be attached to the current inventory dimension record rather than the return order line.

Repro steps:

  1. Open a new or existing return order from Accounts Receivable / Common Forms / Return order details
  2. Go to the lines of the order
  3. Make one of the inventory dimension fields active, for example Configuration
  4. Activate document management and a note.
  5. Save and close the document management form.
  6. Make a non-inventory dimension field active.
  7. Activate document management, and observer that you don't see you note.
  8. Close document management again.
  9. Make again one of the inventory dimension fields active.
  10. Open document management, and observe that the note now is displayed.

To fix the issue, the ReturnTable form should have a docCursor method similar to the docCursor method on the SalesTable form.