You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an account in PST timezone with reference time as 2024-03-04T9:00
Set the time to 2024-03-04T9:05
Create a subscription bundle with the pistol-in-arrear-monthly-notrial base and bullets-usage-in-arrear addon plan
Record usagescorresponding to the bullets-usage-in-arrear addon plan as follows:
Usage t1 at 2024-03-15T2:00 for 10L units
Usage t2 at 2024-04-04T6:30 for 20L units
Usage t3 at 2024-04-04T7:30 for 10L units
Usage t4 at 2024-04-04T8:30 for 30L units
Move clock to 2024-04-04 - Generated invoice includes t1, t2, t3 as expected
Move clock to 2024-05-04 - Generated invoice includes t4 as expected
Change the addon plan to bullets-usage-in-arrear2 with date=2024-06-04
Record usages corresponding to the bullets-usage-in-arrear2 plan as follows:
Usage t5 at 2024-05-15T2:00 for 10L units
Usage t6 at 2024-06-04T6:30 for 20L units
Usage t7 at 2024-06-04T7:30 for 10L units
Usage t8 at 2024-06-04T8:30 for 30L units
Move clock to 2024-06-04 - Generated invoice includes t5, t6, t7, t8 as expected. However, there are separate invoice items created corresponding to the usage items as follows:
Item 1 from 2024-05-04 to 2024-06-04 of type RECURRING as expected
Item 2 from 2024-05-04 to 2024-06-04 of type USAGE corresponding to t5, t6, t7
Item 3 from 2024-06-04 to 2024-06-04 of type USAGE corresponding to t8 - This is unexpected. There should only be a single usage item corresponding to t5, t6, t7, t8.
The text was updated successfully, but these errors were encountered:
You may want to update the title of this ticket if timezone is not relevant
reshmabidikar
changed the title
Multiple usage invoice items are created for PST account on plan change
Multiple usage invoice items are created on plan change
Apr 3, 2024
Steps to reproduce:
2024-03-04T9:00
2024-03-04T9:00
2024-03-04T9:05
pistol-in-arrear-monthly-notrial
base andbullets-usage-in-arrear
addon planbullets-usage-in-arrear
addon plan as follows:t1
at2024-03-15T2:00
for10L
unitst2
at2024-04-04T6:30
for20L
unitst3
at2024-04-04T7:30
for10L
unitst4
at2024-04-04T8:30
for30L
units2024-04-04
- Generated invoice includest1
,t2
,t3
as expected2024-05-04
- Generated invoice includest4
as expectedbullets-usage-in-arrear2
with date=2024-06-04
bullets-usage-in-arrear2
plan as follows:t5
at2024-05-15T2:00
for10L
unitst6
at2024-06-04T6:30
for20L
unitst7
at2024-06-04T7:30
for10L
unitst8
at2024-06-04T8:30
for30L
units2024-06-04
- Generated invoice includest5
,t6
,t7
,t8
as expected. However, there are separate invoice items created corresponding to the usage items as follows:2024-05-04
to2024-06-04
of typeRECURRING
as expected2024-05-04
to2024-06-04
of typeUSAGE
corresponding tot5
,t6
,t7
2024-06-04
to2024-06-04
of typeUSAGE
corresponding tot8
- This is unexpected. There should only be a single usage item corresponding tot5
,t6
,t7
,t8
.The text was updated successfully, but these errors were encountered: