Hi Everyone,
I have a requirement to get the last supply date for a supplier .
user inputs a range of dates and wants to know last date of supply in a given date range against a supplier.... any idea how to get that output .
User Input: 01.02.2016 to 10.02.2016
For ex Last date of supply for 45675 supplier is 04.02.2016
and Last date of supply for 12345 supplier is 07.02.2016
for others 10.02.2016 is lst date in the given date range.
Last date of supply has to be determined dynamically for a given date range
Plant | Collection Center | Supplier | Total Num of Days Selected | Last date of Supply |
---|---|---|---|---|
2001 | 101 | 12345 | 10 | 07.02.2016 |
2001 | 101 | 67654 | 10 | 10.02.2016 |
2001 | 101 | 45675 | 10 | 04.02.2016 |
2002 | 103 | 68557 | 10 | 10.02.2016 |
Please guide me on how to achieve this.
Thanks and Regards,
Madhu