Allow Invoice Disc. on G/L Account similar behaviour Item

andy76
Member Posts: 616
Hello,
I discover that if we make new sales order with lines of type G/L Account and want to insert an Inv. Discount Amount in form Sales Order Statistic we have to tick/flag the colum "Allow Invoice Discount" manually the lines of type G/L Account.
For Item type we have a field in Item table master data called Allow Inv. Discount that, if flagged, it transfer automatically the flag in Sales Line of type Item without this problem.
Is it possibile to have a same behaviour also for type G/L Account? How?
We have NAV 5.0 (CH)
Thank you
I discover that if we make new sales order with lines of type G/L Account and want to insert an Inv. Discount Amount in form Sales Order Statistic we have to tick/flag the colum "Allow Invoice Discount" manually the lines of type G/L Account.
For Item type we have a field in Item table master data called Allow Inv. Discount that, if flagged, it transfer automatically the flag in Sales Line of type Item without this problem.
Is it possibile to have a same behaviour also for type G/L Account? How?
We have NAV 5.0 (CH)
Thank you
0
Comments
-
In Table 37 - Sales Line, the No. - OnValidate Trigger has a line that says when the type is G/L Account, "Allow Invoice Disc." := FALSE. If you change that value to true, it will default in when you enter a line for a G/L Account.
I haven't tested it fully, but initial tests look promising.0 -
But in this way it is not parametric, as for Items where I can choose if single Item allow discount.
Modifying the code the flag will be inserted always for each account (if I don't insert program conditions).
Thank you0 -
Sounds like your moving towards adding a new field on the G/L Account Table called "Allow Inv Disount" Type Boolean.In Table 37 - Sales Line, the No. - OnValidate Trigger has a line that says when the type is G/L Account, "Allow Invoice Disc." := FALSE. If you change that value to true, it will default in when you enter a line for a G/L Account.
(something like)
"Allow Invoice Disc." := FALSE; change from
"Allow Invoice Disc." := GLacct."Allow Inv Discount";//change to
By adding it to the table then you can add it to the G/L Account card and make adjustments individually.
test test test0 -
Ok, but are you sure that there isn't something similar at standard and it is mandatory to write new code for this?
Thank you0 -
andy76 wrote:Ok, but are you sure that there isn't something similar at standard and it is mandatory to write new code for this?
Thank you
Then you have two choices. manually change it on the sales line when needed, which you can do already. Or automate it, with a change in code.
Your call.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