Plaza 365
Plaza 365

No results found for your search

RegisterLog in

1

Visit article

#copydocument

#lookupvalue

#restorearchivedsalesdocument

#salesheader

#testautomation

Dynamics 365 Finance

Category

Apr 20, 2023

Published date

Text

Article Type


AI Summary

  • The article discusses the data model and business logic changes for the Lookup Value business case in the book. These changes are covered by most test examples in the book, except for two business rules that were considered too elaborate and were set up as issues on the GitHub repo for the book.
  • The first outscoped business rule deals with restoring an archived sales document, where the Lookup Value Code field should be restored from Sales Header Archive to Sales Header. This issue is labeled as Issue 10 on GitHub.
  • The second outscoped business rule pertains to copying a sales document using the Copy Document feature, where the Lookup Value Code field should be inherited from the source Sales Header to the target Sales Header. This issue is labeled as Issue 2 on GitHub.
  • The Sales Archive subfeature in the first edition of the book only covered the archiving part and not the restoring part. In the second edition, the author decided to add the restoring part as an issue on GitHub.
  • Jules Jägers, an apprentice at 4PS, planned, designed, and coded seven scenarios related to the Lookup Value business case. These scenarios cover different scenarios for restoring archived sales orders, quotes, invoices, blanket orders, return orders, and credit memos.
  • The test scenarios have been assigned IDs starting at 0100 and have been added to the ATDD sheet.
  • The scenarios have been coded in a new test codeunit called LookupValueSalesArchive2.Codeunit.al as part of the Lookup Value extension.
  • The author mentions the need for refactoring due to the use of identical helper functions in both test codeunits but decides not to do it to avoid too many changes to the existing code. The author expresses gratitude to Jules Jägers for their contribution and Maarten Gerritsen for their reviews and feedback.

Registered users can view the full text for FREE!

Sign In Now!

Cookies Consent

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.