mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
A new page in the user menu, Budget and billing (/billing), for the boards the user is an admin of (docs/Features/Billing/Billing.md): - Hourly rates per board, in an ISO currency: a member's own, or the board default. A card's hours are charged at its assignees' rates, shared equally, else its members', else the board default; hours with no rate are reported as unpriced, never billed at zero silently. - A budget of money, hours or both, for an optional period, against Spent (time spent at the rates), Still to do (open cards' estimate less spent), Forecast (red when over the budget), Left of budget, Invoiced and Paid. - Invoices of the billable hours not invoiced yet, per card and person, at the rates of that moment. A card is billable unless Billable is unticked in its Time popup. As WeKan keeps spent time as a card total, what is still to invoice is that total less the card's hours on invoices that are not void. Numbers run per year (INV-2027-0001) under a unique index; status is draft, sent, paid or void, paid and void being final, and voiding frees the hours. An invoice prints alone, and downloads as CSV with formula-looking cells written as text. Money is kept as integer cents. Only a board's active admins - not members, not an admin who sees only their assigned cards - and site administrators see or change it; everything goes through server methods (server/billing.js), nothing is published, the collections take no client writes, and a deleted board's budget and rates go with it. Admin Panel / Features / Budget and billing turns it off. The card field billable is copied by WeKan export/import. tests/billing.test.cjs runs the money as arithmetic; tests/billingAccess.test.cjs runs the real methods as each kind of user; tests/playwright/specs/billing-invoice.e2e.js drives the page. The new strings are translated into every language (low confidence for the smallest, e.g. Volapük, Wolaytta, Nahuatl, Tigre, Klingon, Venda); in several locales the eleven still-English enrollment/registration/auth strings were translated too, which completes Southern Sotho. Thanks to xet7 !
217 lines
7.2 KiB
JSON
217 lines
7.2 KiB
JSON
[
|
|
{
|
|
"fields": [
|
|
"title",
|
|
"description"
|
|
],
|
|
"handling": "Footer resolves the authorized source card or board; stale link copies are excluded."
|
|
},
|
|
{
|
|
"fields": [
|
|
"boardId",
|
|
"listId",
|
|
"swimlaneId",
|
|
"sort",
|
|
"subtaskSort",
|
|
"listEnteredAt",
|
|
"lastMoveReason"
|
|
],
|
|
"handling": "Readable placement in ordinary Details and the separate local wrapper section; foreign list/lane names are excluded."
|
|
},
|
|
{
|
|
"fields": [
|
|
"recurrenceInterval",
|
|
"lastRecurrenceAt"
|
|
],
|
|
"handling": "Ordinary Details and local wrapper Details; recurrence setters use the displayed card ID."
|
|
},
|
|
{
|
|
"fields": [
|
|
"flowStartAt",
|
|
"flowInterruptions",
|
|
"flowUserId",
|
|
"pomodoroStartAt",
|
|
"pomodoroPhase",
|
|
"pomodoroCount",
|
|
"pomodoroUserId",
|
|
"pomodoroWorkMinutes"
|
|
],
|
|
"handling": "Persisted snapshots and public owner names in ordinary and local wrapper Details."
|
|
},
|
|
{
|
|
"fields": [
|
|
"scrum"
|
|
],
|
|
"handling": "Six visible fields in ordinary/local wrapper Details; sprint and release names require the same board. Internal Scrum snapshots and revisions are excluded."
|
|
},
|
|
{
|
|
"fields": [
|
|
"flow"
|
|
],
|
|
"handling": "The Kanban and Scrum flow fields (models/lib/cardFlow.js: blocked and why, class of service, MoSCoW, WSJF) are not in card emails yet; blockedBy is a user id and is never written into a message."
|
|
},
|
|
{
|
|
"fields": [
|
|
"archived",
|
|
"archivedAt",
|
|
"createdAt",
|
|
"modifiedAt",
|
|
"dateLastActivity",
|
|
"cardNumber",
|
|
"color"
|
|
],
|
|
"handling": "Ordinary/source Details. Both link types separately include local archive state/date and lifecycle timestamps. Card number/color follow getRealCard(): source-owned for linked cards, local for linked-board wrappers. Target-board archive state remains in target Details."
|
|
},
|
|
{
|
|
"fields": [
|
|
"receivedAt",
|
|
"startAt",
|
|
"dueAt",
|
|
"endAt",
|
|
"spentTime",
|
|
"isOvertime",
|
|
"dueComplete"
|
|
],
|
|
"handling": "Ordinary/source Details. Linked-board Details includes four dates, spent time, overtime and due-complete from the current target."
|
|
},
|
|
{
|
|
"fields": [
|
|
"members",
|
|
"assignees",
|
|
"requesters",
|
|
"assigners",
|
|
"requestedBy",
|
|
"assignedBy",
|
|
"userId"
|
|
],
|
|
"handling": "Ordinary/source Details resolves public names for account references; requestedBy/assignedBy are prose. Linked-board Members and Assignees use deduplicated active target members with public names, matching card getters. Linked-board local creator/requesters/assigners appear separately with the wrapper board scope."
|
|
},
|
|
{
|
|
"fields": [
|
|
"labelIds",
|
|
"customFields",
|
|
"stickers",
|
|
"locationName",
|
|
"locationAddress",
|
|
"locationLatitude",
|
|
"locationLongitude",
|
|
"locations"
|
|
],
|
|
"handling": "Ordinary/source Details with custom-field visibility and definition checks. Linked-board local Details renders these wrapper-owned fields with local definitions, admin visibility and policy fingerprints."
|
|
},
|
|
{
|
|
"fields": [
|
|
"parentId",
|
|
"parentIds",
|
|
"cardDependencies",
|
|
"targetId_gantt",
|
|
"linkType_gantt"
|
|
],
|
|
"handling": "Ordinary/source Details resolves authorized targets and groups duplicate labels. Linked-board wrapper relationships use the same authorized resolver and durable related-source evidence. Dependency color/icon are presentation metadata, not separate targets."
|
|
},
|
|
{
|
|
"fields": [
|
|
"vote",
|
|
"poker"
|
|
],
|
|
"handling": "Ordinary/source and linked-board Details use disclosure checks. Private voter identities and unfinished Poker choices are excluded; voting configuration is not serialized wholesale."
|
|
},
|
|
{
|
|
"fields": [
|
|
"coverId"
|
|
],
|
|
"handling": "Live selected attachment manifest identifies the cover without exporting an internal ID."
|
|
},
|
|
{
|
|
"fields": [
|
|
"type",
|
|
"linkedId"
|
|
],
|
|
"handling": "Control source resolution and durable identity checks; not raw prose fields."
|
|
},
|
|
{
|
|
"fields": [
|
|
"scrumRevision",
|
|
"syncSourceKey",
|
|
"syncLastSource",
|
|
"syncExternalId",
|
|
"syncSourceType",
|
|
"syncLabelIds",
|
|
"syncIssueState",
|
|
"syncClosedByWeKan",
|
|
"deletedAt",
|
|
"deletedBy",
|
|
"deleteBatchId",
|
|
"linkId_gantt"
|
|
],
|
|
"handling": "Internal provenance, revision, deletion and renderer identifiers are excluded; deletion still governs eligibility."
|
|
},
|
|
{
|
|
"fields": [
|
|
"showActivities",
|
|
"showListOnMinicard",
|
|
"showListOnCard",
|
|
"showChecklistAtMinicard",
|
|
"hideFinishedChecklistIfItemsAreHidden",
|
|
"shownFields",
|
|
"hiddenFields"
|
|
],
|
|
"handling": "Display preferences do not become email content. Discussion selection is controlled by the mail action."
|
|
},
|
|
{
|
|
"fields": [
|
|
"mapX",
|
|
"mapY"
|
|
],
|
|
"handling": "Positions on the board's Map view image (#3256), as percentages of that image; they mean nothing without it, so they are not email content."
|
|
},
|
|
{
|
|
"fields": [
|
|
"attachedCardIds"
|
|
],
|
|
"handling": "#3257: ids of the cards attached to this one. Their titles are read only by someone who may read those cards (attachedCardsInfo), so these ids are not email content."
|
|
},
|
|
{
|
|
"fields": [
|
|
"customFieldLinks"
|
|
],
|
|
"handling": "#5681: ids of the cards whose custom fields are linked to this one, with the direction and the link's creator. Link bookkeeping, not card content: the linked values are ordinary customFields, so these ids are not email content."
|
|
},
|
|
{
|
|
"fields": [
|
|
"email"
|
|
],
|
|
"handling": "#794: the email this card came from or was sent as - sender, recipients, subject and the Message-IDs that thread replies onto it (server/emailToCard.js, server/emailView.js). Mail bookkeeping, not card content: excluded, so a card mailed onward never discloses who wrote to the board or the addresses of the conversation."
|
|
},
|
|
{
|
|
"fields": [
|
|
"cardKind"
|
|
],
|
|
"handling": "#2012: whether the card is a Story or a Task. It selects which custom fields the card offers; those fields are covered by customFields above, so the kind itself is not email content."
|
|
},
|
|
{
|
|
"fields": [
|
|
"columnSetValues"
|
|
],
|
|
"handling": "#211: the card's column in each of the board's column sets, as set-id to column-id. Board-view bookkeeping like the Map positions; the ids mean nothing without the board, so they are not email content."
|
|
},
|
|
{
|
|
"fields": [
|
|
"drawings"
|
|
],
|
|
"handling": "#1178: the strokes of the card's drawings, kept so a drawing can be edited again. The drawing itself is a PNG attachment, covered by the attachments manifest; the strokes are not email content."
|
|
},
|
|
{
|
|
"fields": [
|
|
"estimatedHours"
|
|
],
|
|
"handling": "Workload (docs/Features/Workload/Workload.md): the card's estimate in hours. Planning data for the Workload and capacity page, not card content, so it is not part of rule or notification emails."
|
|
},
|
|
{
|
|
"fields": [
|
|
"billable"
|
|
],
|
|
"handling": "Budget and billing (docs/Features/Billing/Billing.md): whether the card's time is invoiced. Money is a board admin's business and is shown only on the Budget and billing page, never in rule or notification emails."
|
|
}
|
|
]
|