mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[PR #733] [MERGED] [Feature] Add Total cost to Projects #1103
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#1103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/733
Author: @Keybored02
Created: 3/17/2026
Status: ✅ Merged
Merged: 3/18/2026
Merged by: @maziggy
Base:
dev← Head:feature/project_total_cost📝 Commits (9)
6daee7eAdd Total cost to Projects, add new bom_cost to stats, include localisation85b17d8Merge branch 'dev' into feature/project_total_costdf8dabfUpdated Budget calc logic, added budget to ProjectModal, included locales4261aebMerge branch 'feature/project_total_cost' of https://github.com/Keybored02/bambuddy into feature/project_total_cost6520010Merge branch 'dev' into feature/project_total_cost2959ed7Merge branch 'dev' into feature/project_total_costb802815Change budget handling from undefined to null62bc8efUpdate budget assignment condition in projects.pya9fcd86Update client.ts📊 Changes
12 files changed (+98 additions, -17 deletions)
View changed files
📝
backend/app/api/routes/projects.py(+5 -1)📝
backend/app/schemas/project.py(+2 -0)📝
frontend/src/api/client.ts(+5 -3)📝
frontend/src/i18n/locales/de.ts(+3 -0)📝
frontend/src/i18n/locales/en.ts(+3 -0)📝
frontend/src/i18n/locales/fr.ts(+3 -0)📝
frontend/src/i18n/locales/it.ts(+3 -0)📝
frontend/src/i18n/locales/ja.ts(+3 -0)📝
frontend/src/i18n/locales/pt-BR.ts(+3 -0)📝
frontend/src/i18n/locales/zh-CN.ts(+3 -0)📝
frontend/src/pages/ProjectDetailPage.tsx(+32 -12)📝
frontend/src/pages/ProjectsPage.tsx(+33 -1)📄 Description
Description
This PR adds a total cost filed to the project page. It sums material, energy, and BOM cost.
Related Issue
Fixes ##728
Type of Change
Changes Made
bom_cost: float = 0.0compute_project_stats: extended BOM aggregate query withSUM(unit_price * quantity_needed)→ returned asbom_costbom_cost: numberstats.bom_costtotalCostandincludesBomkeys toprojectDetail.costin all 7 locales (en, de, fr, it, ja, pt-BR, zh-CN)Screenshots
Testing
Checklist
Additional Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.