Skip to content

Commit 581cd82

Browse files
committed
refactor: rename purchasesAndSales to seriesSales.
Part of #1051
1 parent 07ff2c7 commit 581cd82

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/main/java/ru/mystamps/web/feature/series/SeriesController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,9 +748,8 @@ public static void loadErrorsFromDownloadInterceptor(
748748
}
749749

750750
if (SecurityContextUtils.hasAuthority(Authority.VIEW_SERIES_SALES)) {
751-
List<PurchaseAndSaleDto> purchasesAndSales =
752-
seriesSalesService.findSales(seriesId);
753-
model.put("purchasesAndSales", purchasesAndSales);
751+
List<PurchaseAndSaleDto> seriesSales = seriesSalesService.findSales(seriesId);
752+
model.put("seriesSales", seriesSales);
754753
}
755754

756755
if (SecurityContextUtils.hasAuthority(Authority.IMPORT_SERIES)) {

src/main/webapp/WEB-INF/views/series/info.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,13 +559,13 @@ <h5 class="text-center" th:text="#{t_similar_series}">
559559
/*/-->
560560
</div>
561561

562-
<div class="row" th:if="${not #lists.isEmpty(purchasesAndSales)}" sec:authorize="hasAuthority('VIEW_SERIES_SALES')">
562+
<div class="row" th:if="${not #lists.isEmpty(seriesSales)}" sec:authorize="hasAuthority('VIEW_SERIES_SALES')">
563563
<div class="col-sm-12">
564564
<h5 th:text="#{t_who_selling_series}">Who was selling/buying this series</h5>
565565
<ul th:remove="all-but-first">
566566
<li id="series-sale-1-info"
567567
th:id="|series-sale-${iter.count}-info|"
568-
th:each="transaction,iter : ${purchasesAndSales}"
568+
th:each="transaction,iter : ${seriesSales}"
569569
th:with="firstPrice=${#numbers.formatDecimal(transaction.firstPrice, 0, 'DEFAULT', 2, 'DEFAULT') + '&nbsp;' + transaction.firstCurrency},
570570
optionalSecondPrice=${transaction.secondPrice != null ? ('&nbsp;' + '(' + #numbers.formatDecimal(transaction.secondPrice, 0, 'DEFAULT', 2, 'DEFAULT') + '&nbsp;' + transaction.secondCurrency + ')') : ''}">
571571
<!--/*/

0 commit comments

Comments
 (0)