Hello, I'm tring to detect 1st date by per item(ex parts) with some condition. ex)
Parts Inventory module |
|
|
|
(appling parts list, time) |
|
|
|
|
|
|
|
|
|
Parts |
Lineitem |
1-Aug |
2-Aug |
3-Aug |
4-Aug |
A |
Inventory |
10 |
10 |
-10 |
20 |
B |
Inventory |
-20 |
-20 |
-20 |
0 |
C |
Inventory |
10 |
20 |
30 |
-10 |
I want detect 1st negative date by each item, desireble result is as follows
1st shortage date module(appling parts list, time is not applicable) |
|
|
Parts |
Shortage date |
A |
3-Aug |
B |
1-Aug |
C |
4-Aug |
calendar type is weeks: general is the any way to do this?