Custom Invoice Date

70 views
Skip to first unread message

Lalan Amaranto

unread,
Aug 12, 2021, 3:43:59 AM8/12/21
to Kill Bill users mailing-list
Hi,

The generation of invoice can be at the beginning (advance) or at the end of the billing cycle (arrear).  Is there a way to generate it on any day within the billing cycle?

Example:
1st Invoice = issue on 1/12 with scope of 1/12 to 2/11
2nd Invoice = issue on 2/28 with scope of 2/12 to 3/11
3rd Invoice = issue on 3/31 with scope of 3/12 to 4/11

In the example above, the first invoice is generated at the start of subscription.  However, the succeeding invoices are issued every end of month.  The cycle dates did not change. Only the date of the invoice was changed.

I am checking the DRAFT option.  However, the invoice still use the date it was created - not the date it was COMMITTED.

Please advise.

Thank you.
Lan

stephane brossier

unread,
Aug 12, 2021, 7:56:20 PM8/12/21
to Lalan Amaranto, Kill Bill users mailing-list
Yes it should be possible by specifying the correct targetDate:
Example with 2nd Invoice = issue on 2/28 with scope of 2/12 to 3/11:
* Assuming in-advance: targetDate=2/12 
* Assuming in-arrear:  targetDate=3/12

--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/9533b243-13cd-42a2-a558-72543ba02ce1n%40googlegroups.com.

Lalan Amaranto

unread,
Aug 13, 2021, 5:25:18 AM8/13/21
to Kill Bill users mailing-list
Hi Stephane,

Thank you for your response.

Are you referring to the target date on trigger invoice API?  
I was hoping not to manually trigger the generation of invoice instead rely on the auto generation of KB.
Is it possible to make an update on subscription level to update the invoice date that will be generated monthly after the first invoice?

Example:

Invoice #       Scope                                     Remark
=======        ===================      ============================================
#1                  1/12 to 2/11                         Auto generated after the creation of subscription 
 <<<<Do an update here to change the invoice date (end of month) moving forward>>
#2                  2/12 to 3/11                         Auto generated on 2/28
#3                  3/12 to 4/11                         Auto generated on 3/31
#4                  4/12 to 5/11                         Auto generated on 4/30
#5                  6/12 to 7/11                         Auto generated on 5/31


Respectfully,
Lan

dowonderatwill

unread,
May 25, 2022, 9:51:47 PM5/25/22
to Kill Bill users mailing-list
Hi Lan, did you manage to achieve it? I am also looking for it. 

dowonderatwill

unread,
May 25, 2022, 10:17:53 PM5/25/22
to Kill Bill users mailing-list
For discussion taking the example from above post, for Invoice#2, which state that it be generated on 3/31 for the scope of 2/12 to 3/11, (IN_ADVANCE billing mode). When the system clock will reach on say 2/12 it will generate the Invoice#2. 
So seems difficult to achieve without customization or plug in! Not sure!

Reply all
Reply to author
Forward
0 new messages