Skip to content

Commit 4efc1a4

Browse files
authored
Merge pull request #769 from uw-it-aca/develop
Develop
2 parents 397cbb1 + 977a453 commit 4efc1a4

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

endorsement/fixtures/test_data/itbill_quantity.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,27 @@
3131
"end_date": null,
3232
"stage": null
3333
}
34+
},
35+
{
36+
"model": "endorsement.itbillquantity",
37+
"pk": 4,
38+
"fields": {
39+
"provision": 3,
40+
"quantity": 2,
41+
"start_date": "2025-04-04",
42+
"end_date": "2025-09-29",
43+
"stage": null
44+
}
45+
},
46+
{
47+
"model": "endorsement.itbillquantity",
48+
"pk": 5,
49+
"fields": {
50+
"provision": 3,
51+
"quantity": 9,
52+
"start_date": "2025-12-01",
53+
"end_date": null,
54+
"stage": null
55+
}
3456
}
3557
]

endorsement/static/endorsement/js/tab/google.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ var ManageSharedDrives = (function () {
215215
var starting = this.start_date ? moment(this.start_date) : null,
216216
ending = this.end_date ? moment(this.end_date): null,
217217
is_future = starting && starting.diff(billing_period_end) > 0 && this.quota_limit != drive.drive.drive_quota.quota_limit,
218-
is_ending = ending && ending.diff(billing_period_end) < 0 && ending.diff(billing_period_start) > 0,
218+
is_ending = ending && ending.diff(billing_period_start) > 0 && ending.diff(billing_period_end) < 0 && ending.diff(now) > 0 && this.quota_limit != drive.drive.drive_quota.quota_limit,
219219
is_increasing = this.quota_limit > drive.drive.drive_quota.quota_limit,
220220
is_decreasing = this.quota_limit < drive.drive.drive_quota.quota_limit,
221221
is_changing = (is_future || is_ending);

0 commit comments

Comments
 (0)