InvenTree/InvenTree
Oliver 5ba75c868d
total_price for orders (#4447)
* Adds unit test for counting queries on PurchaseOrderList API endpoint

- We will work to make this queryset more efficient

* PEP fixes

* Add 'total_price' fields to SalesOrder and PurchaseOrder models

* PurchaseOrder list API now has constant query count

* Data migration for updating existing PurchaseOrder and SalesOrder instances

- Calculate total_price for any existing order
- Will fail if exchange rates are not available

* Add total_price_currency to API serializers

* Render total_price in SalesOrder table

* Add ability to filter both lists by total_price field

* Update total_price whenever an order is updated

* Update total price whenever a lineitem is saved or deleted

* Add query-counting unit test for SalesOrder list API

* Calling refresh_from_db inside a save() method is *not* a good idea
2023-03-05 22:22:18 +11:00
..
InvenTree total_price for orders (#4447) 2023-03-05 22:22:18 +11:00
build Improve rendering efficiency for build detail page (#4416) 2023-02-25 18:58:59 +11:00
common fix typo in user display settings (#4420) 2023-02-26 07:58:37 +11:00
company Pricing bug fix (#4422) 2023-02-26 16:36:11 +11:00
label Move Meta class to top of class definition (#4363) 2023-02-18 18:51:00 +11:00
locale New Crowdin updates (#4436) 2023-03-03 16:35:00 +11:00
order total_price for orders (#4447) 2023-03-05 22:22:18 +11:00
part total_price for orders (#4447) 2023-03-05 22:22:18 +11:00
plugin Auto migrating (#3741) 2023-02-25 16:52:16 +11:00
plugins Update documentation URLs (#4325) 2023-02-10 10:39:57 +11:00
report Add mathematical operator tags to report templates (#4443) 2023-03-03 21:42:04 +11:00
script Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
stock Fix rendering of purchase_price for exporting StockItem data (#4434) 2023-03-02 14:50:04 +11:00
templates total_price for orders (#4447) 2023-03-05 22:22:18 +11:00
users Move Meta class to top of class definition (#4363) 2023-02-18 18:51:00 +11:00
config_template.yaml Auto migrating (#3741) 2023-02-25 16:52:16 +11:00
gunicorn.conf.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
manage.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00