Wrong scaled amount
Hi,
I have a custom opcode in which i pass start date and end date of a product then i get the amount the customer will be charged for the specified duration but here
The issue is suppose:
1) I have a monthly product of amount $9.9.
2) The start date of the product is 30-Mar-2019
3) End date of the product is 30-Apr-2019 as it is a monthly product so
rg_end_t=fm_utils_cycle_next_by_nunits(end date,prod_unit,(-1)*prod_term,ebufp);
the above function gives me rg_end_t as 30-Mar-2019 so i get the exact product scale amount as 9.9 as expected but