-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[E-Documents Core] - Manual multiple files import #8
base: main
Are you sure you want to change the base?
Conversation
[E-Document Core] - Code workspace
Apps/W1/EDocument/app/src/Integration/EDocIntegrationManagement.Codeunit.al
Show resolved
Hide resolved
Apps/W1/EDocument/test/src/Receive/EDocReceiveManualTest.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocument/test/src/Receive/EDocReceiveManualTest.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocument/test/src/Receive/EDocReceiveManualTest.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocument/test/src/Receive/EDocReceiveManualTest.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocument/test/src/Receive/EDocReceiveManualTest.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocument/app/src/Integration/EDocIntegrationManagement.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocument/app/src/Integration/EDocIntegrationManagement.Codeunit.al
Outdated
Show resolved
Hide resolved
EDocument: Record "E-Document"; | ||
EDocGetBasicInfo: Codeunit "E-Doc. Get Basic Info"; | ||
begin | ||
// Commit before getting basic info with error handling (if Codeunit.Run then ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No no, just one space symbol need to be removed before the last bracket :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Good work! :D
EDocGetBasicInfo: Codeunit "E-Doc. Get Basic Info"; | ||
begin | ||
// Commit before getting basic info with error handling (if Codeunit.Run then) | ||
Commit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is from another PR, but this commit in here makes me a bit nervous. Because seeing a procedure like HasDuplicates doesn't make you think that the transaction will be commited in here...
You don't have to change anything, because I know you have other fires to fight, and I know MS is quite liberal with their commits as well, but just something to think about...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually tried to avoid this commit, but happened to me while testing manually to get this error. Will keep this in my mind so if there will be some time left will try to handle this :)
Implementation With this update users can generate multiple incoming E-Documents when manually uploading multiple attachments from vendor documents.
The system will generate a warning message to prevent duplication. |
CurrPage.Update(); | ||
if EDocImport.ChooseEDocumentService(EDocumentService) then begin | ||
EDocImport.UploadDocument(Rec, EDocumentService); | ||
CurrPage.Update(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add explicit RunTrigger. Very recommend using false if that's enough for the solution
PurchaseHeader.DeleteAll(false); | ||
DocumentAttachment.DeleteAll(false); | ||
|
||
EDocument.DeleteAll(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDocument.DeleteAll(true); or EDocument.DeleteAll(false);
Manual multiple files import
This pull request contains changes that make possible to upload multiple files at once if user choose to create E-Documents using manual Import Files action on E-Documents page.
MS PR: microsoft#27975