InvenTree/src/backend/InvenTree
Oliver d3a2eced97
[PUI] pricing tab (#6985)
* Add recharts package

- Brings us in-line with mantine v7

* Add skeleton pricing page

* Fetch pricing data

* Rough implementation of variant pricing chart

- Needs better labels for tooltip and axis

* Cleanup

* More cleanup

* Improve rendering

* Add pricing overview

* Add pie chart for BOM pricing

- Needs extra work!

* Split components into separate files

* Backend: allow ordering parts by pricing

* Bump API version

* Update VariantPricingPanel:

- Table drives data selection now

* Refactor BomPricingPanel

- Table drives the data

* Allow BomItemList to be sorted by pricing too

* Sort bom table

* Make record index available to render function

* Refactor BomPricingPanel

- Better rendering of pie chart

* Update pricing overview panel

* Further updates

- Expose "pricing_updated" column to API endpoints
- Allow ordering by "pricing_updated" column

* Update API endpoint for PurchaseOrderLineItem

* Implement PurchaseOrderHistory panel

* Cleanup PurchaseHistoryPanel

* Enhance API for SupplierPriceBreak

* Implement SupplierPricingPanel

* Fix for getDetailUrl

- Take base URL into account also!

* Further fixes for getDetailUrl

* Fix number form field

* Implement SupplierPriceBreakTable

* Tweaks for StockItemTable

* Ensure frontend is translated when compiling static files

* Fixes for BomPricingPanel

* Simplify price rendering for bom table

* Update BomItem serializer

- Add pricing_min_total
- Add pricing_max_total
- Fix existing 1+N query issue

* Use values provided by API

* Fix BomItem serializer lookup

* Refactor pricing charts

* Fix for VariantPricingPanel

* Remove unused imports

* Implement SalePriceBreak table

- Refactor the InternalPriceBreak table to be generic

* Allow price breaks to be ordered by 'price'

* Display alert for no available data

* Update backend API filters

* Allow ordering by customer

* Implement SaleHistoryPanel

* Allow user to select pie or bar chart for BOM pricing detail

* Remove extra padding
2024-04-16 01:05:56 +10:00
..
InvenTree [PUI] pricing tab (#6985) 2024-04-16 01:05:56 +10:00
_testfolder Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00
build Some small style fixes (#6916) 2024-04-03 19:26:03 +11:00
common Improve DB efficiency for user settings (#6996) 2024-04-11 10:05:20 +10:00
company [PUI] pricing tab (#6985) 2024-04-16 01:05:56 +10:00
generic Fix test coverage (#6945) 2024-04-08 21:55:03 +10:00
label Tests: remove dead paths in test files (#6965) 2024-04-06 08:33:52 +11:00
locale New Crowdin updates (#7020) 2024-04-16 00:25:22 +10:00
machine Fix test coverage (#6945) 2024-04-08 21:55:03 +10:00
order [PUI] pricing tab (#6985) 2024-04-16 01:05:56 +10:00
part [PUI] pricing tab (#6985) 2024-04-16 01:05:56 +10:00
plugin Enable backup value option for plugin settings check (#6950) 2024-04-04 04:35:40 +00:00
plugins Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00
report Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00
script Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00
stock [CI] Increase migration test coverage (#6995) 2024-04-11 10:11:12 +10:00
templates JS translation syntax error (stock-badge in search window) (#7013) 2024-04-13 07:26:28 +10:00
users Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00
web Fix test coverage (#6945) 2024-04-08 21:55:03 +10:00
config_template.yaml Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00
gunicorn.conf.py Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00
manage.py Code structure refactor (#5582) 2024-04-03 12:16:59 +11:00