FrankCLT
Well Known Member
Hi All,
Thread title a bit confusing but let me explain. I have a grid like below.
I'm kind of stumped on the logic of reading through the grid checking dates and making the appropriate changes. This could be done after the OK button and displayed once they went back into the app.
Thank you,
FrankCLT
Thread title a bit confusing but let me explain. I have a grid like below.
Line 1 | Item# | Branch | UOM | Effective From | Effective Thru | |
1 | 123 | 50 | EA | 3/7/2023 | 12/31/2049 | |
If say I entered another entry line 2 as below with a different effective from date: | ||||||
Line 1 | Item# | Branch | UOM | Effective From | Effective Thru | |
1 | 123 | 50 | EA | 3/7/2023 | 12/31/2049 | |
2 | 123 | 50 | EA | 5/20/2023 | 12/31/2049 | |
I would like line 1 to display as follows: The effective thru for line 1 should be 1 day less than the effective from...from line 2. | ||||||
Line 1 | Item# | Branch | UOM | Effective From | Effective Thru | |
1 | 123 | 50 | EA | 3/7/2023 | 5/19/2023 | |
2 | 123 | 50 | EA | 5/20/2023 | 12/31/2049 |
I'm kind of stumped on the logic of reading through the grid checking dates and making the appropriate changes. This could be done after the OK button and displayed once they went back into the app.
Thank you,
FrankCLT