Skip to content

Commit 782018e

Browse files
Merge 25.11 to 26.2
2 parents 8c24469 + 1d23f33 commit 782018e

7 files changed

Lines changed: 21 additions & 11 deletions

File tree

onprc_billing/src/org/labkey/onprc_billing/table/ONPRC_BillingCustomizer.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,17 @@ private void addTotalCost(AbstractTableInfo ti)
180180

181181
if (ti.getColumn("totalCost") == null && unitCost != null && ti.getColumn("quantity") != null)
182182
{
183-
SQLFragment sql = new SQLFragment("(" + ExprColumn.STR_TABLE_ALIAS + ".unitCost * " + ExprColumn.STR_TABLE_ALIAS + ".quantity)");
184-
ExprColumn totalCost = new ExprColumn(ti, "totalCost", sql, JdbcType.DOUBLE, ti.getColumn("unitCost"), ti.getColumn("quantity"));
183+
SQLFragment sql = new SQLFragment(
184+
"CAST(ROUND((" + ExprColumn.STR_TABLE_ALIAS + ".unitCost * " +
185+
ExprColumn.STR_TABLE_ALIAS + ".quantity), 2) AS DECIMAL(18,2))");
186+
ExprColumn totalCost = new ExprColumn(
187+
ti,
188+
"totalCost",
189+
sql,
190+
JdbcType.DECIMAL,
191+
ti.getColumn("unitCost"),
192+
ti.getColumn("quantity")
193+
);
185194
totalCost.setLabel("Total Cost");
186195
totalCost.setFormat("$###,##0.00");
187196
ti.addColumn(totalCost);

onprc_ehr/resources/queries/study/AssignmentPoolUnderTheAge.query.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<tables xmlns="http://labkey.org/data/xml">
55
<table tableName="AssignmentPoolUnderTheAge" tableDbType="TABLE">
6-
<tableTitle>Animals under the age of 2.5 with an assignment pool note</tableTitle>
6+
<tableTitle>Animals under the age of 3 with an assignment pool note</tableTitle>
77
</table>
88
</tables>
99
</metadata>

onprc_ehr/resources/queries/study/AssignmentPoolUnderTheAge.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SELECT
4242

4343
FROM Assignment a
4444
WHERE
45-
a.Id.Age.ageinyears <= 2.5
45+
a.Id.Age.ageinyears <= 3
4646
AND a.project.displayname NOT IN ('0492-02', '0492-03')
4747
AND a.Id.demographics.species = 'Rhesus Macaque'
4848
AND EXISTS (

onprc_ehr/resources/queries/study/AssignmentsUnderTheAge.query.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<tables xmlns="http://labkey.org/data/xml">
55
<table tableName="AssignmentsUnderTheAge" tableDbType="TABLE">
6-
<tableTitle>Animals under the age of 2.5 with an active assignment</tableTitle>
6+
<tableTitle>Animals under the age of 3 with an active assignment</tableTitle>
77
</table>
88
</tables>
99
</metadata>

onprc_ehr/resources/queries/study/AssignmentsUnderTheAge.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
FROM Assignment a
4545
WHERE
46-
a.Id.Age.ageinyears <= 2.5
46+
a.Id.Age.ageinyears <= 3
4747
AND a.Id.demographics.species = 'Rhesus Macaque'
4848
AND a.enddate IS NULL
4949
AND a.isActive = 1

onprc_ehr/src/org/labkey/onprc_ehr/notification/BehaviorNotification.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public String getMessageBodyHTML(Container c, User u)
138138
The grid should include:
139139
- Animals under the age of 2.5 with an active assignment. Exclude the U42 and U42E colony maintenance assignments, I believe the center projects for these are 0492-02 and 0492-03.
140140
- Animals under the age of 2.5 with an "Assignment pool" note in PRIMe (under general>notes)
141+
- 2/11/26 - change the age animals under 3 years old
141142
*/
142143
private void activeAssignmentsUnderTheAge(final Container c, User u, final StringBuilder msg)
143144
{
@@ -148,13 +149,13 @@ private void activeAssignmentsUnderTheAge(final Container c, User u, final Strin
148149

149150
if (total > 0)
150151
{
151-
msg.append("<b>Animals under the age of 2.5 with an active assignment excluding the U42 & U42E assignments:</b><p>");
152+
msg.append("<b>Animals under the age of 3 with an active assignment excluding the U42 & U42E assignments:</b><p>");
152153
msg.append( total + " entries found. ");
153154
msg.append("<a href='" + getExecuteQueryUrl(c, "study", "AssignmentsUnderTheAge", null) + "'>Click here to view them</a>\n");
154155
msg.append("<hr>\n\n");
155156
}
156157
else {
157-
msg.append("<b>WARNING: No animals under the age of 2.5 with an active assignment!</b><br><hr>\n");
158+
msg.append("<b>WARNING: No animals under the age of 3 with an active assignment!</b><br><hr>\n");
158159
}
159160
}
160161

@@ -167,13 +168,13 @@ private void assignmentPoolUnderTheAge(final Container c, User u, final StringBu
167168

168169
if (total > 0)
169170
{
170-
msg.append("<b>Animals under the age of 2.5 with \"Assignment pool\" notes:</b><p>");
171+
msg.append("<b>Animals under the age of 3 with \"Assignment pool\" notes:</b><p>");
171172
msg.append( total + " entries found. ");
172173
msg.append("<a href='" + getExecuteQueryUrl(c, "study", "AssignmentPoolUnderTheAge", null) + "'>Click here to view them</a>\n");
173174
msg.append("<hr>\n\n");
174175
}
175176
else {
176-
msg.append("<b>WARNING: No animals under the age of 2.5 with an \"Assignment pool\" notes!</b><br><hr>\n");
177+
msg.append("<b>WARNING: No animals under the age of 3 with an \"Assignment pool\" notes!</b><br><hr>\n");
177178
}
178179
}
179180

onprc_ehr/test/src/org/labkey/test/tests/onprc_ehr/ONPRC_RestrictedIssueTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public void restrictedIssueSearchTest()
288288
final String ISSUE_2 = detailsPage.getIssueId();
289289

290290
SearchHelper searchHelper = new SearchHelper(this);
291-
SearchResultsPage resultsPage = searchHelper.searchFor("Restricted issue search test");
291+
SearchResultsPage resultsPage = searchHelper.searchFor("\"Restricted issue search test\"");
292292

293293
// verify that we can return links even if the user doesn't have permission to view a restricted issue
294294
Assert.assertTrue("Number of search results not expected", resultsPage.getResults().size() == 2);

0 commit comments

Comments
 (0)