BCApps icon indicating copy to clipboard operation
BCApps copied to clipboard

[Bug]: Project Journal - Project Description cleared

Open kristjano opened this issue 2 months ago • 3 comments

Describe the issue

When navigating between lines with same Project No., then the Project Description field (in footer) is cleared.

Expected behavior

Project Description should always have value except no Project No. selected in line. Field should not be updated when navigating between lines with same Project No.

Steps to reproduce

  1. Open Project Journal.
  2. Insert line with Project No. = A
  3. Insert second line with Project No. = A
  4. Navigate back to the previous line

Now the Project Description is empty.

Additional context

Image

No response

I will provide a fix for a bug

  • [x] I will provide a fix for a bug

kristjano avatar Sep 04 '26 17:09 kristjano

:robot: AI triage completed. Product group, please validate the triage report (Microsoft internal access only, use Ctrl+Click to open in new tab).


Was this triage helpful? React with :thumbsup: or :thumbsdown: on this comment to provide feedback.

github-actions[bot] avatar Sep 04 '26 17:09 github-actions[bot]

Coverage: issue-only analysis of microsoft/BCApps#11075; no code change reviewed; no implementation or fix proposed; repository evidence searched: journal pages, description helper, W1 and app tests, local Git history, country layers, app extensions and manifests, disabled tests, and build groups in C:/depot/NAV/App/BCApps at ae337e48e2; not covered: affected release/build, runtime reproduction, test execution, private triage report, upstream history before source imports, and live DME configuration.

BC impact analysis

Affected areas

  • Jobs - project journal entry and navigation.
  • Affected objects: page 201 "Job Journal"; codeunit 1020 JobJnlManagement; page 289 "Recurring Job Jnl."

Reported severity and reproducibility: Wrong display result. The issue gives executable steps: create two lines for the same project and navigate back. The source supports the symptom, but runtime reproduction and tests were not performed. No posting failure or data loss is reported. The affected release/build is not stated.

Customer-facing behavior: The Project Description footer becomes empty when moving between lines for the same project. It should retain the selected project's description and be empty only when no project is selected.

Existing tests

  • Job Journal.LookupItemUnitOfMeasureJobJournal (codeunit 136305): journal lookup coverage, without footer assertions.
  • Job Journal.RecurringJobJournalUnitCostVisible (codeunit 136305): recurring-journal control visibility, without navigation assertions.
  • Job Jnl. Error Handling.JobJournalShowAllLinesActionsEnabledState (codeunit 136316): filtering and navigation coverage, without footer assertions.
  • Sust. Certificate Test.VerifySustFieldsAreVisibleOnJobJournalIsEnableValueChainTrackingIsTrue (codeunit 148187): sustainability-control visibility with tracking enabled.
  • Sust. Certificate Test.VerifySustFieldsAreNotVisibleOnJobJournalIsEnableValueChainTrackingIsFalse (codeunit 148187): sustainability-control visibility with tracking disabled.
  • None of these tests detects the exact reported behavior.
  • Test codeunits identified: codeunit 136305 "Job Journal"; codeunit 136316 "Job Jnl. Error Handling"; codeunit 148187 "Sust. Certificate Test"

Affected E2E scenarios

  • Project journal entry and review: the project identification footer disappears during line review before posting. Posting impact is not established.
  • Recurring project journal entry and review: the same description helper is directly reachable.

Existing tests for affected E2E scenarios

  • Project journal entry and review: Job Journal.LookupItemUnitOfMeasureJobJournal (codeunit 136305) covers line setup, opening, and lookup; Partial coverage; detects exact behavior: No.
  • Project journal entry and review: Job Jnl. Error Handling.JobJournalShowAllLinesActionsEnabledState (codeunit 136316) covers opening, filtering, record iteration, and action states; Partial coverage; detects exact behavior: No.
  • Recurring project journal entry and review: Job Journal.RecurringJobJournalUnitCostVisible (codeunit 136305) covers opening and cost-control visibility; Partial coverage; detects exact behavior: No.
  • E2E test codeunits identified: codeunit 136305 "Job Journal"; codeunit 136316 "Job Jnl. Error Handling"

Localizations impacted: CZ; GB. GB has a materialized page copy calling the helper. CZ has two extensions of the affected page. No exact country-specific footer test was identified.

First-party apps impacted: Core Localization Pack for Czech; Field Service Integration; Intrastat CZ; Sustainability. Each directly extends the affected journal page. App-specific navigation verification remains needed.

Potentially impacted first-party apps: None identified.

Regression origin: Pre-existing / legacy codebase. The same behavior is present in source import 43e6e5a2b6 from November 12, 2025. The introducing change is not attributable; synchronization commits are not evidence of introduction. No matching duplicate or prior fix was found in the searched local/GitHub evidence. ADO history was not assessed.

Fix risk signal: Shared journal-description behavior spans standard/recurring journals, GB/CZ consumers, and four app extensions; exact navigation coverage is missing.

Recommendation: Recommend: Approve - The reproduction steps are executable, and the source supports the display failure. The searched history found no matching duplicate or prior fix. The identified consumers widen verification scope, but no conflicting design or release constraint was found. Overall confidence: Medium.

Suggested test buckets to run in DME

  • Buckets: RunALTests_W1_Bucket3; RunALTests_W1_Extensions
  • Unmapped / needs manual bucket assignment: none

A full regression and impact analysis was generated by scm-impact-agent.

PredragMaricic avatar Oct 13 '26 14:10 PredragMaricic

@PredragMaricic, is SCM already working on this fix, or can @kristjano go ahead with the PR they offered? The reported case is moving between two Project Journal lines with the same Project No.: the footer should keep showing that project’s description. If there’s already a fix in progress, please link it here so we don’t duplicate it.

JesperSchulz avatar Nov 18 '26 15:11 JesperSchulz