Skip to content

[UI] Show total cost on purchase order Line Items tab - #13336

Open
mapbrandt wants to merge 4 commits into
inventree:masterfrom
mapbrandt:feat/purchase-order-line-items-total
Open

mapbrandt wants to merge 4 commits into
inventree:masterfrom
mapbrandt:feat/purchase-order-line-items-total

Conversation

@mapbrandt

Copy link
Copy Markdown
Contributor

Ref #12956

When editing a purchase order’s line items, users currently have to switch to Order Details to check the total. This adds a Total Cost summary above the regular and extra line items, using the same server-calculated amount and currency formatting as Order Details.

The total updates in place after line-item changes. Closing the CSV importer refreshes the parent order as well as the line-item table.

Testing

  • Verified in Chromium and Firefox that editing a shipping charge updates the total from $25 to $28 on the same tab.
  • Verified that regular and extra line-item CSV imports refresh the order after the importer closes.
  • Checked zero and unavailable totals, completed orders, and narrow layouts.
  • Production build and pre-commit checks passed.

Screenshot

Purchase order Line Items tab showing the Total Cost summary

@netlify

netlify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

👷 Deploy request for inventree-web-pui-preview pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 88526cd

@SchrodingersGat

Copy link
Copy Markdown
Member

I like the idea but I'm not happy with the visual styling here. What about moving it into the title bar for the tab itself?

image

@SchrodingersGat SchrodingersGat added order Related to purchase orders / sales orders pricing Pricing functionality User Interface Related to the frontend / User Interface labels Nov 20, 2026
@SchrodingersGat SchrodingersGat added this to the 1.8.0 milestone Nov 20, 2026
@mapbrandt

Copy link
Copy Markdown
Contributor Author

@SchrodingersGat hows this? I used the line items panel controls prop.

image

@mapbrandt

mapbrandt commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

made the cost bold

Purchase order Line Items header with the total cost in bold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

order Related to purchase orders / sales orders pricing Pricing functionality User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants