[ledger] Shared projects: project.shared and project.unshared, one budget at a time; v0.8.0 #10
Reference in New Issue
Block a user
Delete Branch "feature/shared-projects"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step B (core) of Fiscus's PLAN-shared-payments-projects.md: a project can be shared with the members of a shared budget.
What changes
project.shared { project, budget }andproject.unshared { project }infiscus-ledger.Projects.sharedmaps a project to its budget and is#[serde(default)], so a state saved before this version still reads.docs/06_projects.mdgets both events. The version is 0.8.0.How the app uses it (Fiscus, next PR)
Fiscus mirrors the shared parts (name, dates, status, lines, phases, tasks) through the budget's log, using the existing
project.*andtask.*events; for each item the newer change wins. Each member's own ledger holds the project, so the existing checks keep working, for example time is logged only on a task the ledger has. Time, invoices and project rules never leave a ledger. Payments go into a shared project through the budget's log, wherepayment.projectedalready needs the payment to be in that log.Self-review
Haler.refusal()helper. The wire names and the old-state read are tested too.cargo test --workspacepasses andcargo clippy --workspace --all-targetsis clean.