This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed
src/main/com/topcoder/web/tc/view/pacts/client Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 446
446
<td class =" value type" >${ payment. paymentTypeDesc } </td >
447
447
<td class =" valueC create-date" ><fmt:formatDate value =" ${ payment. createDate } " pattern =" dd/MM/yyyy" /></td >
448
448
<td class =" valueR net-payment" ><fmt:formatNumber value =" ${ payment. netAmount } " type =" currency" currencySymbol =" $" /></td >
449
- <td class =" value status" ><span class =" status ${ payment. currentStatus. desc } " ><span class =" status-label" >${ payment. currentStatus. desc } </span ></span >
449
+ <td class =" value status" >
450
+ <span class =" status ${ payment. currentStatus. desc } " >
451
+ <span class =" status-label" >
452
+ <c:choose >
453
+ <c:when test =" ${ payment. currentStatus. id eq OWED } " >
454
+ Available
455
+ </c:when >
456
+ <c:when test =" ${ payment. currentStatus. id eq ACCRUING } " >
457
+ Pending
458
+ </c:when >
459
+ <c:otherwise >
460
+ ${ payment. currentStatus. desc }
461
+ </c:otherwise >
462
+ </c:choose >
463
+ </span >
464
+ </span >
450
465
<c:forEach items =" ${ payment. currentStatus. reasons } " var =" reason" >
451
466
<br >- ${ reason. desc }
452
467
</c:forEach >
572
587
<div class =" row status" >
573
588
<div class =" col col-label" >Status</div >
574
589
<div class =" col col-value" >
575
- <span class =" status ${ paymentItem. currentStatus. desc } " ><span class =" status-label" >${ paymentItem. currentStatus. desc } </span ></span >
590
+ <span class =" status ${ paymentItem. currentStatus. desc } " >
591
+ <span class =" status-label" >
592
+ <c:choose >
593
+ <c:when test =" ${ paymentItem. currentStatus. id eq OWED } " >
594
+ Available
595
+ </c:when >
596
+ <c:when test =" ${ paymentItem. currentStatus. id eq ACCRUING } " >
597
+ Pending
598
+ </c:when >
599
+ <c:otherwise >
600
+ ${ paymentItem. currentStatus. desc }
601
+ </c:otherwise >
602
+ </c:choose >
603
+ </span >
604
+ </span >
576
605
<c:forEach items =" ${ paymentItem. currentStatus. reasons } " var =" reason" >
577
606
<br >- ${ reason. desc }
578
607
</c:forEach >
Original file line number Diff line number Diff line change 175
175
<rsc:iterator list =" <%= rsc % >" id =" resultRow" >
176
176
<tr class =" <%= even? " dark" : " light" % >" >
177
177
<TD class =" value payment-status" >
178
+ <% if (" Owed" . equals(resultRow. getStringItem(" payment_status" ))) { % >
179
+ Available
180
+ <% } else if (" Accruing" . equals(resultRow. getStringItem(" payment_status" ))) { % >
181
+ Pending
182
+ <% } else { % >
178
183
<rsc:item name =" payment_status" row =" <%= resultRow % >" />
184
+ <% } % >
179
185
</TD >
180
186
<TD class =" valueR net-amount" >
181
187
<% if (resultRow. getDoubleItem(" net_amount" ) > 0 ) {
You can’t perform that action at this time.
0 commit comments