Bank Rec issue with "Statement Status" field in Check Ledger

rsaritzky
Member Posts: 469
Hi Everyone,
I’m trying to work through an issue here. It may not be anything, but here’s what I observe in the Check Ledger Entry records during Bank Rec in NAV2009:
1. After the “Suggest Lines” process, if you look at any of the check ledger entries corresponding to any of the checks in the Bank Rec, the “Entry Status” field is “Open” and the “statement no.” is blank.
2. If you click on the “Cleared” flag on a check so it turn on, then look at the check ledger record again, now the “Entry Status” is “Check Entry Applied” and the “statement No.” is the number of the bank rec.
3. NOW, if you UN-CHECK the “cleared” button, the check ledger entry record does not change back to Entry Status = “Open” – it STAYS “Check Entry Applied.”.
I've traced this to the OnModify Trigger in the Bank Rec. Line table - after the OnValidate Trigger for the "Cleared" field runs (which just sets the Cleared Amount to either The Amount (if cleared) or 0 (if un-cleared), the code there says:
The UpdateLedgers function in Bank Rec.-Post then leaves the Check Ledger Entry "Statement Status" field as "Check Entry Applied."
Now, in the 3.70 code, the call to UpdateLedgers happens in the "Cleared" field's OnValidate trigger - it does what I would expect it to do - it sets the status to "open" if the "Cleared" field is Un-checked:
To me, this seems like a bug. If a Bank Rec Line is UN-cleared, shouldn't the call to UpdateLedgers be to set the status back to "open"?
I haven’t (yet) tried posting a bank rec and seeing if it THEN re-opens the check ledger records any of the uncleared entries, but this still seems weird.
Anyone's opinion is appreciated.
I’m trying to work through an issue here. It may not be anything, but here’s what I observe in the Check Ledger Entry records during Bank Rec in NAV2009:
1. After the “Suggest Lines” process, if you look at any of the check ledger entries corresponding to any of the checks in the Bank Rec, the “Entry Status” field is “Open” and the “statement no.” is blank.
2. If you click on the “Cleared” flag on a check so it turn on, then look at the check ledger record again, now the “Entry Status” is “Check Entry Applied” and the “statement No.” is the number of the bank rec.
3. NOW, if you UN-CHECK the “cleared” button, the check ledger entry record does not change back to Entry Status = “Open” – it STAYS “Check Entry Applied.”.
I've traced this to the OnModify Trigger in the Bank Rec. Line table - after the OnValidate Trigger for the "Cleared" field runs (which just sets the Cleared Amount to either The Amount (if cleared) or 0 (if un-cleared), the code there says:
Positive := (Amount > 0); BankRecPost.UpdateLedgers(Rec,SetStatus::Cleared);
The UpdateLedgers function in Bank Rec.-Post then leaves the Check Ledger Entry "Statement Status" field as "Check Entry Applied."
Now, in the 3.70 code, the call to UpdateLedgers happens in the "Cleared" field's OnValidate trigger - it does what I would expect it to do - it sets the status to "open" if the "Cleared" field is Un-checked:
IF (Cleared <> xRec.Cleared) AND Cleared THEN BEGIN "Cleared Amount" := Amount; BankRecPost.UpdateLedgers(Rec,SetStatus::Cleared); END ELSE IF Cleared <> xRec.Cleared THEN BEGIN "Cleared Amount" := 0; BankRecPost.UpdateLedgers(Rec,SetStatus::Open); END;
To me, this seems like a bug. If a Bank Rec Line is UN-cleared, shouldn't the call to UpdateLedgers be to set the status back to "open"?
I haven’t (yet) tried posting a bank rec and seeing if it THEN re-opens the check ledger records any of the uncleared entries, but this still seems weird.
Anyone's opinion is appreciated.
Ron
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions