P&L: Game marketing category for game wallet top-ups (old top-ups moved once from Player rewards); counted in Advertising and promotion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4310,7 +4310,7 @@ const server = http.createServer(async (req, res) => {
|
||||
else if (l.kind === 'cost') { const c = l.category || 'other', v = l.dir === 'out' ? l.usd : -l.usd; costs[c] = (costs[c] || 0) + v; months[m].costUsd[c] = (months[m].costUsd[c] || 0) + v; }
|
||||
else if (l.kind === 'draw') draws.push(l); else transfers.push(l);
|
||||
}
|
||||
const r2 = n => Math.round(n * 100) / 100, adPromo = (costs.advertising || 0) + (costs.rewards || 0), allCosts = Object.values(costs).reduce((n, v) => n + v, 0);
|
||||
const r2 = n => Math.round(n * 100) / 100, adPromo = (costs.advertising || 0) + (costs.games || 0) + (costs.rewards || 0), allCosts = Object.values(costs).reduce((n, v) => n + v, 0);
|
||||
const csv = [['Section', 'Date', 'Category', 'Description', 'POL', 'USD', 'Transaction'].join(',')];
|
||||
const q = v => '"' + String(v == null ? '' : v).replace(/"/g, '""') + '"';
|
||||
for (const e of evs) { if (e.type !== 'AdminPaid' || own.has(Number(e.buyerId))) continue; const day = dayOf(e.block); if (!day.startsWith(year)) continue; const b = buys.get(e.tx);
|
||||
|
||||
Reference in New Issue
Block a user