Line Discount Amount Field in The Sales Line Table

slmaluwa
Member Posts: 366
Dear Gurus
I have come across another issue to which I can't find an answer. According to HELP, Line Discount Amount Field in The Sales Line Table is
If we give any discount less than 100%, this field contains a correct value and posted as it is. But, in case of a 100% discount which our company sometime gives as free issues, then the value in this field becomes 0 which we feel wrong.
Is there any reason behind making Line Discount Amount Field in The Sales Invoice Line Table to 0, when the Line Discount % is 100. ?
UPDATE
My original question is confusing and not correct. The problem is actually, when we have "Line Discount %" as 100, after posting, in the Sales Invoice Line table, the "Line Discount Amount" becomes 0.
I have come across another issue to which I can't find an answer. According to HELP, Line Discount Amount Field in The Sales Line Table is
This field contains the amount of the discount that will be given on the invoice line. The program uses the Line Discount %, Quantity and Unit Price tables to calculate the amount.
Attention
If you change the line discount amount, the program will update the contents of the Line Discount % and Line Amount fields. The contents of the Inv. Discount Amount field will be deleted if the line discount amount is changed. This means that the invoice discount amount will have to be recalculated.
If we give any discount less than 100%, this field contains a correct value and posted as it is. But, in case of a 100% discount which our company sometime gives as free issues, then the value in this field becomes 0 which we feel wrong.
Is there any reason behind making Line Discount Amount Field in The Sales Invoice Line Table to 0, when the Line Discount % is 100. ?
UPDATE
My original question is confusing and not correct. The problem is actually, when we have "Line Discount %" as 100, after posting, in the Sales Invoice Line table, the "Line Discount Amount" becomes 0.
"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."
0
Comments
-
I dont know whether I am asking stupid questions"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0
-
Sounds like a modification.
I just tried this in a 2009 R2 DE and the field Line Discount Amount is correct even if Line Disc. % is 100.Frank Dickschat
FD Consulting0 -
Same here, tested in 2009 R2 client, 100% discounts stays 100% discount. Also tested in 2013 R2, same result...
hope this helps0 -
Maybe your field is just not wide enough for 3 characters? :-k0
-
Savatage wrote:Maybe your field is just not wide enough for 3 characters? :-k
No. Its not the case. I was asking about "Line Discount Amount" field in Sales Invoice Line table. Not "Line Discount %" field.
When we enter, the discount % as 100, I expected the "Line Discount Amount" in Sales Invoice Line table to contain full value (Unit Price * Quantity).
But, in my case, if I enter a Discount % less than 100, the "Line Discount Amount" filled with correct amount. If we enter 100 and post, then "Line Discount Amount" is 0.
I found this code in CU 80.
DivideAmount(QtyType : 'General,Invoicing,Shipping';SalesLineQty : Decimal) I found the following piece of code. Does it related to this? because, in "Sales Invoice Line" table, the "Line Discount Amount" becomes 0.IF RoundingLineInserted AND (RoundingLineNo = SalesLine."Line No.") THEN EXIT; WITH SalesLine DO IF (SalesLineQty = 0) OR ("Unit Price" = 0) OR ("Line Discount %" = 100) THEN BEGIN "Line Amount" := 0; "Line Discount Amount" := 0; "Inv. Discount Amount" := 0; "VAT Base Amount" := 0; Amount := 0; "Amount Including VAT" := 0; END ELSE BEGIN
Is there any reason to make "Line Discount Amount" in Sales Invoice Line table to zero in this case?
Thank you again."A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0 -
Is there any reason to make "Line Discount Amount" in Sales Invoice Line table to zero when the "Line Discount %" is 100 ?"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."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