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:
+2
-2
@@ -455,7 +455,7 @@
|
||||
<div class="grid" style="grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:12px">
|
||||
<select id="ldDir"><option value="in">Money in</option><option value="out">Money out</option></select>
|
||||
<select id="ldKind"><option value="revenue">Revenue</option><option value="cost">Cost</option><option value="draw">Draw</option><option value="transfer">Transfer</option></select>
|
||||
<select id="ldCat" hidden><option value="advertising">Advertising</option><option value="rewards">Player rewards</option><option value="software">Software and hosting</option><option value="other">Other cost</option></select>
|
||||
<select id="ldCat" hidden><option value="advertising">Advertising</option><option value="games">Game marketing</option><option value="rewards">Player rewards</option><option value="software">Software and hosting</option><option value="other">Other cost</option></select>
|
||||
<select id="ldWallet"><option value="feeA">Receiver A</option><option value="feeB">Receiver B</option><option value="engine">Engine</option><option value="hunt">PolHunter</option><option value="outside">Outside wallet</option></select>
|
||||
<input type="number" id="ldAmount" min="0" step="0.0001" placeholder="Amount in POL">
|
||||
<input type="number" id="ldUsd" min="0" step="0.01" placeholder="USD (optional)">
|
||||
@@ -521,6 +521,6 @@
|
||||
</div>
|
||||
|
||||
<script src="/assets/common.js?v=20261003fr2"></script><script src="/assets/welcome.js?v=20260923b"></script>
|
||||
<script src="/assets/admin.js?v=20261005st"></script>
|
||||
<script src="/assets/admin.js?v=20261005gm"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -758,7 +758,7 @@
|
||||
// makes "earned" and "on hand" agree. A drift that will not go to zero is a transfer nobody
|
||||
// wrote down (Marty, 2026-09-23).
|
||||
const LD_KIND = { revenue: 'Revenue', draw: 'Draw', transfer: 'Transfer', cost: 'Cost' };
|
||||
const LD_CAT = { advertising: 'Advertising', rewards: 'Player rewards', software: 'Software and hosting', other: 'Other cost' };
|
||||
const LD_CAT = { advertising: 'Advertising', games: 'Game marketing', rewards: 'Player rewards', software: 'Software and hosting', other: 'Other cost' };
|
||||
const LD_WALLET = { feeA: 'Receiver A', feeB: 'Receiver B', engine: 'Engine', hunt: 'PolHunter', outside: 'Outside wallet' };
|
||||
const pol4 = n => Number(n || 0).toLocaleString(undefined, { maximumFractionDigits: 4 });
|
||||
function renderLedger(r) {
|
||||
@@ -1036,7 +1036,7 @@
|
||||
+ (r.income.outsideUsd ? '<tr><td>Outside revenue</td><td class="num">' + money(r.income.outsideUsd) + '</td></tr>' : '')
|
||||
+ '<tr><td><b>Total income</b></td><td class="num"><b>' + money(r.income.totalUsd) + '</b></td></tr>'
|
||||
+ (cats || '<tr><td>No costs recorded yet</td><td></td></tr>')
|
||||
+ '<tr><td><b>Advertising and promotion</b> (advertising + player rewards)</td><td class="num"><b>' + money(r.expenses.advertisingAndPromotionUsd) + '</b></td></tr>'
|
||||
+ '<tr><td><b>Advertising and promotion</b> (advertising + game marketing + player rewards)</td><td class="num"><b>' + money(r.expenses.advertisingAndPromotionUsd) + '</b></td></tr>'
|
||||
+ '<tr><td><b>Total costs</b></td><td class="num"><b>' + money(r.expenses.totalUsd) + '</b></td></tr>'
|
||||
+ '<tr><td><b>Net</b></td><td class="num"><b>' + money(r.netUsd) + '</b></td></tr></table>'
|
||||
+ '<p class="muted">Left out: ' + money(r.income.ownSalesExcludedUsd) + ' of sales to your own positions (' + r.ownMemberIds.join(', ') + '); ' + r.draws + ' draws and ' + r.transfers + ' transfers (your money, not expenses).</p>';
|
||||
|
||||
Reference in New Issue
Block a user