Repository navigation
[main] bug 661276 - EET Entry Card page editability - #14726
David Holuša (DavidHolusa) wants to merge 4 commits into
Conversation
|
When the nested SOAP HttpClient TryFunction returns false, this branch calls ProcessFaultResponse(), which immediately reads the response status and may inspect response content even though a platform or transport failure may have left no usable response. Stop or propagate the transport failure before accessing the response, otherwise a secondary response-access error can obscure the original failure. Knowledge: Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v10.0.7 |
Good Sense Reviewer - Round 1Recommendation: Request ChangesWhat this PR doesAllows corrections to six fields on unsuccessful EET entries while keeping amounts, receipt identifiers and technical fields read-only. Adds a persistent resend lock for registration attempts with uncertain outcomes. For new attempts, the response classification and true-only lock preserve uncertainty across retries, later local failures and verification. Successful entries and entries with confirmation codes stay locked. However, historical uncertain failures receive the new flag's default false and become editable after upgrade; the newly editable applied-document pair also lacks the validation used during simple registration. Problem-solution fitFit: Partial The six requested correction fields are enabled for the intended statuses, and new uncertain attempts are protected. Existing uncertain attempts are not protected on upgrade, and corrections can leave an invalid applied-document association. SuggestionsS1 (🔴 High): Keep earlier uncertain failures locked after upgrade S2 (🟠 Moderate): Validate applied document fields during entry corrections S3 (🟠 Moderate): Cover the new entry editability rules Risk assessment and necessityRisk: The main risk is overwriting taxpayer authorization data for a historical sale whose acknowledgement was lost. Table-wide read-only metadata also affects simple registration, though its affected direct inputs are explicitly enabled and its amounts use page variables. No existing public procedure or event signature changes, and no new transaction boundary is introduced. Validation here is source inspection only; no build, automated tests or runtime checks were run. Necessity: The correction workflow is justified: without it, users cannot repair these six fields on a genuinely unregistered failure through the entry card. The scope is reasonable, but historical attempts need a safe transition before the new editing capability is enabled.
|
Good Sense Reviewer - Round 2Recommendation: Request ChangesWhat this PR doesAllows corrections to six fields on unsuccessful EET entries while keeping amounts, receipt identifiers and technical fields read-only. This round replaces the resend lock with positive correction permission and moves local validation before sending. Existing entries now default to locked, which fixes the upgrade-default problem. However, a later failed attempt can unlock an earlier uncertain registration, and certificate failures now escape the normal failure-handling path. The correction workflow is therefore only partly safe. Status of previous suggestions
New observations (commits since round 1)S4 (🔴 High): Keep uncertain registrations locked across later failures S5 (🟠 Moderate): Handle certificate failures before leaving the batch Risk assessment and necessityRisk: Correction permission no longer preserves uncertainty across attempts. A pre-submission failure, including a local validation failure during verification, can allow changes to taxpayer data for a sale that may already be registered. Missing or invalid certificates can also interrupt the retry batch. Upgrade defaults are now conservative; existing public procedure and event signatures remain unchanged. Validation was source inspection only; no build, automated tests or runtime checks were run. Necessity: The correction workflow remains justified: without it, users cannot repair the six requested fields through the entry card. Preserve the outcome of earlier uncertain registrations while allowing changes to entries known not to have registered.
|
…661276-main-ResubmitEETEntryWithErrorStatus
|
The SOAP response is parsed as the expected business XML after only the transport Boolean has been checked. A successful HTTP exchange can still return a 4xx or 5xx response, so check GlobalHttpResponseMessage.IsSuccessStatusCode() and route non-success responses through explicit fault handling before reading the response as a success payload. Suggested fix (apply manually — could not be anchored as a one-click suggestion): if not GlobalHttpResponseMessage.IsSuccessStatusCode() then begin
CommunicationFailed := true;
SOAPWSRequestManagementCZL.ProcessFaultResponse();
exit;
end;
XmlDocument.ReadFrom(SOAPWSRequestManagementCZL.GetResponseAsText(), ResponseXmlDocument);
ResponseContentXmlDocument := SOAPWSRequestManagementCZL.GetResponseContent();Knowledge: Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v10.0.7 |
What & why
Allow users to correct selected fields on the EET Entry Card and resend entries that failed because of correctable errors.
Editing is limited to entries in Created or Failure status with Correction Allowed enabled and no POK/FIK. The six editable fields are Description, Applied Document Type, Applied Document No., Taxpayer ID, Authorizing Taxpayer ID, and Multiple Taxpayer Authorization. Amounts, receipt identifiers, and technical fields remain read-only. Creating and deleting entries from the card remains disabled.
Add Boolean field Correction Allowed:
Move entry validation before the Sent / Sent to Verification transition. Local validation failures set Failure and allow corrections without incrementing Failed Send Attempts.
Also:
Linked work
Fixes AB#661276
How I validated this
What I tested and the outcome
Scenarios to validate before requesting review:
Risk & compatibility