How to subtract previous line data in time new line insert

mistu2020
Member Posts: 15
LOAN CODE EMP. CODE APPROVED LOAN AMT. MONTH YEAR EMI AMT. CUMULATIVE BALANCE
comp loan 285 20,000.00 april 2014 670 (20000-670)=19,330.00
comp loan 285 20,000.00 may 2014 670 (19,330-670)=18,660.00
I want to do this in time of new record insertion.
How to do this???
Please help
comp loan 285 20,000.00 april 2014 670 (20000-670)=19,330.00
comp loan 285 20,000.00 may 2014 670 (19,330-670)=18,660.00
I want to do this in time of new record insertion.
How to do this???
Please help
0
Answers
-
what's the exact problem? why don't you just modify the existing line?
edit: actually: a flowfield would be the way to go if you want to have the sum of the value from the subline in the related line.0 -
i wouldn't calculate this at time of insertion....what if you'd delete an earlier line sometime later, because of a mistake or something ? Your sum wouldn't be correct anymore.
What you could do is the opposite : make a flowfield that calculate the total amount of this and the previous lines ( SUM of LOAN AMT. for all lines with the same Loan code, emp code etc. where Date <= Date of the line. You might have to add a proper date to your table though...what you have now isn't really up to the task )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