Truly it's out of my frequency Because I need to generate a monthly bill from this recordset with between date parameter.
Such as my param_startdate 01/09/2017 and param_enddate 30/09/2017. With this param I want to make a bill like
Condition: rate come from the row where param date match if param match in a single row then bills also cover by single rate.
Any idea would be appreciated.
Code:
interval_start interval_end rate space_sft
09/09/2016 08/09/2017 95 312
09/09/2017 08/09/2018 105 312
09/09/2018 08/09/2019 115 312
Such as my param_startdate 01/09/2017 and param_enddate 30/09/2017. With this param I want to make a bill like
Code:
date rate space_sft amount
1 Sep 2017 to 8 Sep 2017 95 312 (95*312)/30*8
9 Sep 2017 to 30 Sep 2017 105 312 (105*312)/30*22
Condition: rate come from the row where param date match if param match in a single row then bills also cover by single rate.
Any idea would be appreciated.