Commented code on Sales Statistics

Alisha
Member Posts: 217
Hi,
On a Sales Invoice, when pushing F9 to show Sales Statistics, the following code is commented :
SalesSetup.GET;
{
IF SalesSetup."Calc. Inv. Discount" THEN BEGIN
CurrForm.SalesLines.FORM.CalcInvDisc;
COMMIT;
END;
}
FORM.RUNMODAL(FORM::"Sales Statistics",Rec);
Anyone knows the reason for this??
Thanks!
On a Sales Invoice, when pushing F9 to show Sales Statistics, the following code is commented :
SalesSetup.GET;
{
IF SalesSetup."Calc. Inv. Discount" THEN BEGIN
CurrForm.SalesLines.FORM.CalcInvDisc;
COMMIT;
END;
}
FORM.RUNMODAL(FORM::"Sales Statistics",Rec);
Anyone knows the reason for this??
Thanks!
0
Comments
-
Someone has modified the code. This is the C/AL code that is available on a standard database (3.70 version):
SalesSetup.GET; IF SalesSetup."Calc. Inv. Discount" THEN BEGIN CurrForm.SalesLines.FORM.CalcInvDisc; COMMIT; END; FORM.RUNMODAL(FORM::"Sales Statistics",Rec);
So you should ask the person who has made this modification.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
If you see a Crouns DB 4.00 (both with SP1 or SP2), you'll see that the code is commented, without any tags.0
-
i have checked cronus service pack SP1. don't have SP2 .Are you sure its not some one at ur end who commented the code? If not the only explanation i can think of is the statistics will is updating the sales lines with lateest settings by calculating invoice discount. May be the user will not want to do it . So by commenting the code the invoice discount is not being calculated. The statistics is what you see on the order screen. it shouldn't show any difference.
may be i am wrong... may be i am right...LR0 -
Hi, i have checked version4 SP1 and the code is not commented. don't have SP2. 90% i am sure it might be someone at ur end commented the code. if not the explanation can be statistics should dispaly what is there on slaes order screen, instead of calculatiing the lines with current invoice discounts and then dispalying the new statistics. may be the user does not want to update the sales line.LR0
-
Hi, you made me doubt, so I checked again.. the object where I see the commented code is the form 43. It's not modified on my DB (the demo DB on the CD of 4.00 SP1), it has the date 25/05/05 , 12:00, and the version list is NAVW14.00.01,NAVES3.10.01.
As you can see, nobody has modified this code, it's original. How is it possible that in your DB it is not commented? Could it be due to the language? This is a big mistery...0 -
Hi,
As i work for an end user now i don't have access to SP2. So as far as i did a study on this SP2, i think there is code commented in other parts of system as well, but not according to standard. check this topic out in this form . Microsoft Business Solutions-Navision W1 4.0 SP2
I will try to get moe info if u needLR0 -
Hi,
I've downloaded the International version of Cronus (in English), and the code is not commented in that database. Must be some issue with the Spanish version. I'll report it to Microsoft.
Thanks for your help.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