915
edits
No edit summary |
(Add sorting for the item GP column) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 193: | Line 193: | ||
qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name)) | qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name)) | ||
else | else | ||
local qty = i.amount | local qty = num.autoround(i.amount) | ||
qtyCell:wikitext(num.formatnum(qty)) | qtyCell:wikitext(num.formatnum(qty)) | ||
end | end | ||
Line 206: | Line 206: | ||
:css('text-align','right') | :css('text-align','right') | ||
:wikitext(icons.GP(num.round2(tot))) | :wikitext(icons.GP(num.round2(tot))) | ||
:attr("data-sort-value", tot) | |||
end | end | ||
valCell:done() | valCell:done() |
edits