Skip to content

Commit

Permalink
Refs #79 - commit with no visible changes to make it happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbmarcum committed Sep 24, 2019
1 parent d4393c3 commit ec42b45
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ class ShoppingCartTagLib {

def each = { attrs, body ->
def items = shoppingCartService.getItems()

items?.sort { a, b -> a.id <=> b.id }.each { item ->
Integer qty = shoppingCartService.getQuantity(item)
BigDecimal itemTotal = item.listPrice * qty

def itemInfo = ['item':item, 'qty':qty, 'itemTotal':itemTotal]

out << body(itemInfo)
}
}
Expand Down

0 comments on commit ec42b45

Please sign in to comment.