Hi guys I have implemented following for weekly and fortnightly but I need to implement it for monthly using momentjs for below specific rerequirment
Possible payment frequencies are: ● Weekly ● Monthly - The same day every month (e.g. 5th Mar, 5th April, 5th May) For monthly frequency, if the start date of a line item doesn’t exist in some months, we need to have the next payment on the closest day in that month. For example, a lease with payment frequency of monthly starting on 31st August cannot have the next payment on 31st September because 31st September doesn’t exist. Therefore we will have the next payment on the 30th September, the payment after that will be 31st October, reverting back to the original day of the month.