Annual billing and handling prorating???

Hi,

 

I am currently facing an issue an issue with billing, iMIS is setup for annual billing with special prorating, (i.e: 100% for 1-8 month then 9-10 at 75% and 11-12 at 100% with bumping to next year).

following is the piece of code I am having issues with:

 

DateTime startOfYear = new DateTime(DateTime.Now.Year,1,1);

contact.JoinDate=DateTime.Now;

contact.BillDuesSubscriptions(startOfYear);

 

  1. If I create user online BILL_BEGIN date would be 01/01/2011 as per the code.
  2. If I create user on desktop client then BILL_BEGIN date would be 01/09/2011 and BILL_THRU would be 31/12/2011

But in any of the above case, prorating wouldn't be taken into consideration by the system and I always get 100%. And also which BILL_BEGIN date is appropriate out of these two cases?

If someone can shed some light on how to handle prorating, that would be great.

Thanks in advance.

Regards,

Soheil