issues
search
thxprotocol
/
monorepo-legacy
Monorepo containing THX Network applications and infrastructure for quest and reward campaigns.
https://dashboard.thx.network
5
stars
5
forks
source link
Add invoice overview
#889
Closed
peterpolman
closed
7 months ago
peterpolman
commented
7 months ago
[x] Add pools "invoices" resource
[x] Add Settings -> Billing view
[x] List invoices in table
[x] Invoice { status, totalUnits (mapCount), totalAmount (price), tax (% VAT), createdAt (date) }
[x] Add agenda job that calculates MAP and creates the invoice
MAP calculation:
[x] Iterate over pools on daily basis
[x] Determine current month based on Date.now()
[x] Get distinct subs per quest type
[x] Dedup subs from the result
MAP calculation: