-
Notifications
You must be signed in to change notification settings - Fork 624
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
#27057 EDocument Connector for Tietoevry #27233 #27626
base: main
Are you sure you want to change the base?
Conversation
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.
New interface will break build as we discussed. The filenames do not follow code convention :)
@Groenbech96 I know. Work in progress here. Will update next week. |
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.
Very cool, good start. Will review further later.
Apps/W1/EDocumentConnectors/Tietoevry/app/src/ConnectionSetup.Table.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/ConnectionSetupCard.Page.al
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Upgrade.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/IntegrationImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
Error: AA0215 The file Objects.PermissionSet.al has an incorrect name. The valid name is TietoevryObjects.PermissionSet.al. |
In file /Formats/TietoevryEDocImport.Codeunit I have an issue with the fact that the protection level on EDocumentAttachmentGen.Insert() procedure makes me unable to use it from this app. Can you consider changing the protection level (from internal to public), allowing me to complete the format implementation without duplicating code? "pragma warning disable AA0137" is there to suppress all warnings related to this. @Groenbech96 |
… Connector with External Endpoints
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.
Pull the commit i made above.
Left comments on the rest.
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Formats/TietoevryEDocImport.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Extensions/EDocFormat.EnumExt.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Extensions/EDocument.TableExt.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Extensions/EDocument.TableExt.al
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Extensions/EDocument.TableExt.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/HttpExecutor.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/HttpExecutor.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/HttpExecutor.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Integration.EnumExt.al
Outdated
Show resolved
Hide resolved
Apps/W1/EDocumentConnectors/Tietoevry/app/src/Requests.Codeunit.al
Outdated
Show resolved
Hide resolved
EDocumentService: Record "E-Document Service"; | ||
ConnectionSetup: Record "Connection Setup"; | ||
begin | ||
if not IsBISBilling 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.
If I understand this event subscriber correctly then this will always change the content as soon as a connectionsetup exists and an e-document service exists for tietoevry.
Is there any chance to find out if this document will be transferred via this e document service?
If this isn't possible then there should be other mechanism to prevent conflicts with other e document services that might be installed in parallel.
No, the code exits if there is no Service Integration to Tietoevry..
if not IsBISBilling then
exit;
if not ConnectionSetup.Get() then
exit;
EDocumentService.SetRange("Service Integration V2", EDocumentService."Service Integration V2"::Tietoevry);
if not EDocumentService.FindFirst() then
exit;
From: Kilian Seizinger ***@***.***>
Sent: Wednesday, December 18, 2024 8:02 AM
To: microsoft/ALAppExtensions ***@***.***>
Cc: Roger Larsson ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/ALAppExtensions] #27057 EDocument Connector for Tietoevry #27233 (PR #27626)
@pri-kise commented on this pull request.
________________________________
In Apps/W1/EDocumentConnectors/Tietoevry/app/src/Formats/FormatEvents.Codeunit.al<#27626 (comment)>:
+ EDocumentService.SetRange("Service Integration V2", EDocumentService."Service Integration V2"::Tietoevry);
+ if not EDocumentService.FindFirst() then
+ exit;
+ ServiceParticipant.Get(EDocumentService.Code, ServiceParticipant."Participant Type"::Customer, SalesHeader."Bill-to Customer No.");
+ this.SplitId(ServiceParticipant."Participant Identifier", CustomerSchemeID, CustomerEndpointID);
+ this.SplitId(ServiceParticipant."Participant Identifier", CustomerPartyIDSchemeID, CustomerPartyIdentificationID);
+ end;
+
+ [EventSubscriber(ObjectType::Codeunit, Codeunit::"PEPPOL Management", OnAfterGetAccountingCustomerPartyLegalEntityByFormat, '', false, false)]
+ local procedure "PEPPOL Management_OnAfterGetAccountingCustomerPartyLegalEntityByFormat"(SalesHeader: Record "Sales Header"; var CustPartyLegalEntityRegName: Text; var CustPartyLegalEntityCompanyID: Text; var CustPartyLegalEntityIDSchemeID: Text; IsBISBilling: Boolean)
+ var
+ ServiceParticipant: Record "Service Participant";
+ EDocumentService: Record "E-Document Service";
+ ConnectionSetup: Record "Connection Setup";
+ begin
+ if not IsBISBilling then
If I understand this event subscriber correctly then this will always change the content as soon as a connectionsetup exists and an e-document service exists for tietoevry.
Is there any chance to find out if this document will be transferred via this e document service?
If this isn't possible then there should be other mechanism to prevent conflicts with other e document services that might be installed in parallel.
-
Reply to this email directly, view it on GitHub<#27626 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZCUPSGNJ4IBFPWQ2BN4RFT2GEMU3AVCNFSM6AAAAABRWNAJHWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKMJQHE3DEMJSGE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
@Roglar01 Your response seems rather quick. In What happens if a customer uses multiple integrations? Will your code still be executed inappropriately in such cases? |
"Your response seems rather quick"
Your point?
The code is based on your Avalara-connector.
Best regards,
Roger Larsson
Application Development Lead
Tietoevry Tech Services, Sweden
Mobile +46 72 181 7087
Storgatan 19, 753 31 Uppsala
***@***.******@***.***>
From: Daniel Göhler ***@***.***>
Sent: Monday, December 23, 2024 1:47 PM
To: microsoft/ALAppExtensions ***@***.***>
Cc: Roger Larsson ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/ALAppExtensions] #27057 EDocument Connector for Tietoevry #27233 (PR #27626)
No, the code exits if there is no Service Integration to Tietoevry.. if not IsBISBilling then exit; if not ConnectionSetup.Get() then exit; EDocumentService.SetRange("Service Integration V2", EDocumentService."Service Integration V2"::Tietoevry); if not EDocumentService.FindFirst() then exit;
@Roglar01<https://github.com/Roglar01> Your response seems rather quick. In FormatEvents.Codeunit.al, there are several cases where checks are missing in "PEPPOL Management_OnAfterGetAccountingSupplierPartyLegalEntityByFormat" and "PEPPOL Management_OnAfterGetAccountingSupplierPartyInfoByFormat". Additionally, you should verify whether the export is intended for your specific service.
What happens if a customer uses multiple integrations? Will your code still be executed inappropriately in such cases?
-
Reply to this email directly, view it on GitHub<#27626 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZCUPSD6XALYLQSKNEAA6OL2HAA57AVCNFSM6AAAAABRWNAJHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJZGY2DMNJWGM>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
@Roglar01 The situation is even worse. You blindly copied this poor design and refuse to take responsibility for your code. |
As per suggested by you at Microsoft, we created used your code as a baseline for our connector.
@magnus Hartvig ***@***.***>
I really don't understand why you are so hostile to us for contributing to your product?
Best regards,
Roger Larsson
Application Development Lead
Tietoevry Tech Services, Sweden
Mobile +46 72 181 7087
Storgatan 19, 753 31 Uppsala
***@***.******@***.***>
From: Daniel Göhler ***@***.***>
Sent: Monday, December 23, 2024 1:57 PM
To: microsoft/ALAppExtensions ***@***.***>
Cc: Roger Larsson ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/ALAppExtensions] #27057 EDocument Connector for Tietoevry #27233 (PR #27626)
@Roglar01<https://github.com/Roglar01> The situation is even worse. You blindly copied this poor design and refuse to take responsibility for your code.
-
Reply to this email directly, view it on GitHub<#27626 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZCUPSB5GBQD4FWUPKMU4DD2HACANAVCNFSM6AAAAABRWNAJHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJZGY3DAOJSGI>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
@Roglar01 My remarks are not meant to be hostile; I apologize if they came across that way. However, I am indeed frustrated because if this code, as it stands, ends up in Business Central, and my customers experience issues, I will be the one dealing with troubleshooting, creating a Microsoft support case, and waiting for a fix. Meanwhile, my customers will be upset, questioning why there isn’t better quality control at Microsoft for updates. |
@Roglar01 You mentioned that you used the Avalara Connector as a baseline. I took a quick look and didn’t notice any problematic event subscribers. (If I had, I would have suggested to the product team that those should be fixed as well.) |
@Groenbech96 Will the Tietoevry Conncetor App be automatically installed in the next update after the pull request is completed, or will it require manual installation via AppSource? |
E-Documents connector interface implementation between Business Central and Tietoevry
Work Item(s)
Fixes #27057
Fixes AB#541808