[NAV 2018, Standard] Customer Ledger Entry not allowed to Reverse in case of Realized Gain/ Loss

Bacardi
Member Posts: 1
Hello everyone,
I encountered the below error message in standard NAV 2018 (Version 11.0.27.667) when I reversed a payment in page Customer Ledger Entry that there is realized Gain Loss.

<You can not reverse Cust. Ledger Entry No. 2844 because the entry has an associated Realized Gain/Loss entry.>
Further debug showing that NAV 2018 check & does not allow user to do reverse in this case. The code below is found in table 179 Reversal Entry

<
DtldCustLedgEntry.SETCURRENTKEY("Transaction No.","Customer No.","Entry Type");
DtldCustLedgEntry.SETRANGE("Transaction No.",CustLedgEntry."Transaction No.");
DtldCustLedgEntry.SETRANGE("Customer No.",CustLedgEntry."Customer No.");
DtldCustLedgEntry.SETFILTER("Entry Type",'%1|%2',
DtldCustLedgEntry."Entry Type"::"Realized Gain",DtldCustLedgEntry."Entry Type"::"Realized Loss");
IF NOT DtldCustLedgEntry.ISEMPTY THEN
ERROR(Text013,CustLedgEntry.TABLECAPTION,CustLedgEntry."Entry No.");
>
Can I ask why standard NAV 2018 does not allow user to reverse Cust. Ledger Entry where there is an associated Realized Gain/Loss entry? And what is the recommended workaround for business users in this case? Our business practice requires daily Exchange Rate updates, and Realized Gain/Loss is recorded as a nature of business & sometimes we need to reverse transactions, i.e wrong data input.
Great thanks in advance!
I encountered the below error message in standard NAV 2018 (Version 11.0.27.667) when I reversed a payment in page Customer Ledger Entry that there is realized Gain Loss.

<You can not reverse Cust. Ledger Entry No. 2844 because the entry has an associated Realized Gain/Loss entry.>
Further debug showing that NAV 2018 check & does not allow user to do reverse in this case. The code below is found in table 179 Reversal Entry

<
DtldCustLedgEntry.SETCURRENTKEY("Transaction No.","Customer No.","Entry Type");
DtldCustLedgEntry.SETRANGE("Transaction No.",CustLedgEntry."Transaction No.");
DtldCustLedgEntry.SETRANGE("Customer No.",CustLedgEntry."Customer No.");
DtldCustLedgEntry.SETFILTER("Entry Type",'%1|%2',
DtldCustLedgEntry."Entry Type"::"Realized Gain",DtldCustLedgEntry."Entry Type"::"Realized Loss");
IF NOT DtldCustLedgEntry.ISEMPTY THEN
ERROR(Text013,CustLedgEntry.TABLECAPTION,CustLedgEntry."Entry No.");
>
Can I ask why standard NAV 2018 does not allow user to reverse Cust. Ledger Entry where there is an associated Realized Gain/Loss entry? And what is the recommended workaround for business users in this case? Our business practice requires daily Exchange Rate updates, and Realized Gain/Loss is recorded as a nature of business & sometimes we need to reverse transactions, i.e wrong data input.
Great thanks in advance!
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