Fields from Source Expression.
mysamza
Member Posts: 66
There is a field named Invoice Discount % on the Sales Quote Card.

I need to show this field's value in the Sales Quote (Report 206) but I can't find this field in either the Sales Header or Sales Line. It shows in the SourceExpression. The screenshot I attached above is from Tab SourceExpression. How do I locate this field?
Thanks a lot in advance.

I need to show this field's value in the Sales Quote (Report 206) but I can't find this field in either the Sales Header or Sales Line. It shows in the SourceExpression. The screenshot I attached above is from Tab SourceExpression. How do I locate this field?
Thanks a lot in advance.
0
Answers
-
Hey mysamza,
i guess you are talking about the Sales Quote Subform (95)?
If so, the Field should be calculated within a function.
SalesCalcDiscByType.GetCustInvoiceDiscountPct(Rec)
SalesCalcDiscByType -> Codeunit 56 (Sales - Calc Discount By Type)
0 -
How do you suggest I access the field value that is calculated at CodeUnit 56 in Sales Quote Subform? I tried making a global variable of Codeunit 56 and tried accessing VarCreated.GetCustInvoiceDiscountPct(RECORDREF) but it would tell me RECORDREF should belong to 37 and not 0
0 -
You need to pass an Record of the Sales Line. (Table 37)
If you use the Sales - Quote Report, you can call the Function after the Sales Line DataItem.
Example:
SalesCalcDiscountByType.GetCustInvoiceDiscountPct("Sales Line")
SalesCalcDiscountByType -> Codeunit (Global Variable)
"Sales Line" -> Defined in the Dataset
So you have to create a Variable for the Codeunit.
Add a Column after the DataItem Sales Line:
Data Type: Column
Data Source: SalesCalcDiscountByType.GetCustInvoiceDiscountPct("Sales Line")
Name: The Name (That's the name you can select in the Report)
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions