revert something something

This commit is contained in:
metamuffin 2024-11-09 00:50:54 +01:00
parent d04dbb8a4f
commit 5d1c7a759c
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654

View file

@ -517,12 +517,7 @@ local function r_log(filter)
user_dst_url = urlencode(user_dst),
amount = format_amount(amount, "td"),
pcode = escape(pcode),
pcount = (pcount
and (pcount < 0
and "{+log.count.purchase}"
or "{+log.count.stock}"
) or ""),
n = (pcount and tostring(math.abs(pcount)) or ""),
pcount = pcount and tostring(math.abs(pcount)) or "",
comment = escape(comment),
revert_amount = -amount,
revert_pcount = -(pcount or 0),