Commit Graph

17965 Commits

Author SHA1 Message Date
Oliver Walters bb3bc6552d Fix unit test 2026-06-20 00:14:27 +00:00
Oliver Walters fcb001c440 Bug fix 2026-06-20 00:12:36 +00:00
Oliver Walters 2153a4e231 Add support for 'leading' digits in render_currency 2026-06-19 23:54:53 +00:00
Oliver Walters 75a7db6015 Allow user to specify date_format 2026-06-19 23:43:27 +00:00
Oliver Walters 3bfea9f624 Updated docs 2026-06-19 23:34:41 +00:00
Oliver Walters e09b74b171 Cleanup duplicate code 2026-06-19 23:31:09 +00:00
Oliver Walters 689d9fe30c Refactor the render_currency function
- Move all functionality into report.py
2026-06-19 23:28:08 +00:00
Oliver Walters c4d9c00130 Fix docs 2026-06-19 23:12:43 +00:00
Oliver Walters 704b969b3a Merge branch 'render-currency-update' of github.com:SchrodingersGat/InvenTree into render-currency-update 2026-06-19 23:11:28 +00:00
Oliver Walters 65f3f75f5c Revert 'min_digits' to 'leading' 2026-06-19 23:07:51 +00:00
Oliver Walters e4775c6733 Simplify unit tests 2026-06-19 23:06:14 +00:00
Oliver Walters f5dcffd032 Remove global setting - simplify code 2026-06-19 23:05:23 +00:00
Oliver 3a294aa87a
Merge branch 'master' into render-currency-update 2026-06-19 20:27:05 +10:00
Oliver Walters 916120d2ce Adjust wording 2026-06-19 10:25:02 +00:00
Oliver Walters d626cabdb1 Fix more tests 2026-06-19 10:22:48 +00:00
Oliver Walters 0b4e5bcc28 Cleanup unit tests 2026-06-19 10:17:14 +00:00
Oliver Walters 77b7a499a7 Updated unit tests 2026-06-19 10:16:29 +00:00
Oliver Walters fa59e2830f Update examples for format_date 2026-06-19 10:13:29 +00:00
Oliver Walters 2aa4c3850a Add unit tests for explicit format strings 2026-06-19 10:01:22 +00:00
Oliver Walters 3a81e6182e Refactor format_number 2026-06-19 09:58:01 +00:00
Oliver Walters 4ceb1b1423 Extend unit testing 2026-06-19 08:13:43 +00:00
Oliver Walters 72c58a4a7a Refactoring:
- Change REPORT_CURRENCY_LOCALE to REPORT_LOCALE
2026-06-19 07:30:26 +00:00
Oliver 6657000d89
[UI] Fix NewsWidget (#12205) 2026-06-19 17:18:59 +10:00
Oliver Walters c56a9cc335 Merge commit 'd7cd002432d878481b8d51e2d660bd224aaa4973' into render-currency-update 2026-06-19 07:18:04 +00:00
Oliver Walters 487f1fb5d3 More docs 2026-06-19 07:17:17 +00:00
Oliver Walters 55ccd3e606 Update docs 2026-06-19 07:15:38 +00:00
Oliver Walters 5178fb48a1 Add unit tests for new setting 2026-06-19 07:12:11 +00:00
Oliver Walters e9df48a51b Further unit tests 2026-06-19 07:11:22 +00:00
Oliver Walters 69939ac5d9 Add CHANGELOG entry 2026-06-19 07:08:33 +00:00
Oliver Walters f2378c8402 Use setting in reports 2026-06-19 07:06:48 +00:00
Oliver Walters 0b4144a620 Add new global setting to control currency locale in reports 2026-06-19 07:06:23 +00:00
Oliver Walters 47a5064609 Handle invalid locale 2026-06-19 07:03:52 +00:00
Oliver Walters d7cd002432 Handle invalid locale 2026-06-19 07:00:07 +00:00
Oliver Walters d8b4724b6d Add unit tests 2026-06-19 06:57:51 +00:00
Oliver Walters b434820800 Updated documentation 2026-06-19 06:51:41 +00:00
Oliver Walters 20a6ec10ee Optional 'locale' arg to format_money
- Allows override of system locale when generating reports
2026-06-19 06:50:30 +00:00
Oliver 01fb74af25
[UI] Tree improvements (#12204)
* Hide expand icon for items without children

* Add searching to CategoryTree API

* Add "level" filter

* Automatically include parent tree when searching

* Include tree_id field

* Add search input to NavigationTree

* Add more API filters

* Load child nodes iteratively

* Fix dynamic loading of nodes

* Highlight selected item

* Include pathstring

* Fix insertion order

* Auto-expand to the selected ID

* Add "no results" message

* Refactor into generic components

* Expand to multi level

* Use async node loading functionality

* Add hovercard

* Implement same functionality for StockLocationTree API endpoint

* Adjust spacing

* Add connecting lines

* Add playwright test

* Bump API version

* Add CHANGELOG entry

* Update docs

* Update screenshot
2026-06-19 15:33:12 +10:00
dependabot[bot] 6285a11a65
chore(deps): bump pypdf from 6.13.0 to 6.13.3 in /src/backend (#12201)
* chore(deps): bump pypdf from 6.13.0 to 6.13.3 in /src/backend

Bumps [pypdf](https://github.com/py-pdf/pypdf) from 6.13.0 to 6.13.3.
- [Release notes](https://github.com/py-pdf/pypdf/releases)
- [Changelog](https://github.com/py-pdf/pypdf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/py-pdf/pypdf/compare/6.13.0...6.13.3)

---
updated-dependencies:
- dependency-name: pypdf
  dependency-version: 6.13.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix style

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-06-19 13:47:50 +10:00
Oliver f70d3e68d8
[UI] Fix status renderer functions (#12202)
Broken in recent refactor
2026-06-19 10:45:11 +10:00
dependabot[bot] 5ddccf8913
chore(deps): bump dompurify from 3.4.9 to 3.4.11 in /src/frontend (#12199)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.9 to 3.4.11.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.9...3.4.11)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.11
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-19 09:29:50 +10:00
Oliver 29b8ed91d2
[API] Adjust permissions for machine restart (#12197)
* [API] Adjust permissions for machine restart

Can only be actioned by a staff user

* Fix import

* Wrong class

* Extend unit test

* Bump API version

* Update CHANGELOG
2026-06-18 22:18:14 +10:00
Oliver 5b97acb79f
[bug] Fix double save (#12194)
* Prevent double-save when creating an order

* Prevent double-save for BuildOrder

* More fixes

* Additional unit tests

* Revert code, remove create method against StockTrackingList

* Fix mixins
2026-06-18 20:18:46 +10:00
Oliver 2ca86808bb
Fix order event name (#12196) 2026-06-18 20:00:18 +10:00
dependabot[bot] c2f213a6c0
chore(deps): bump form-data from 4.0.5 to 4.0.6 in /src/frontend (#12175)
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.5...v4.0.6)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-06-18 18:36:16 +10:00
Oliver fc15f30f8f
Report Generation Updates (#12187)
* Fix for TemplateEditor

- Allow dragging of split section

* Cleaner report template code

* Pass correct error message through

* Prevent multiple retries if running in worker thread

* Handle report merge error

* Add playwright tests for broken report printing

* Reduce scope for exception messages

* Reduce comment deltas

* Adjust unit test

* Raise ValidaitonError

* Handle message parsing

* Additional comment

* Fix unit tests
2026-06-18 13:41:44 +10:00
Oliver 4b29032c6e
System Health Checks (#12193)
* Add worker health check invoke task

* Increase frequency of heartbeat task

* Adjust default threshold for worker health check

* Add server_health invoke func
2026-06-18 12:46:46 +10:00
github-actions[bot] c126e2b0af
New Crowdin translations by GitHub Action (#12167)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-18 11:47:28 +10:00
dependabot[bot] dbda5a783a
chore(deps): bump dompurify from 3.4.8 to 3.4.9 in /src/frontend (#12174)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.8 to 3.4.9.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.8...3.4.9)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-06-18 09:57:52 +10:00
Matthias Mair 9e125be07e
fix(ci): improve release pipe stability (#12191)
* update attestations step

* build stable channel release seperatly
2026-06-18 09:40:51 +10:00
Matthias Mair f602714dc9
fix(backend): import session metadata (#12184)
* add storage for historic import metadata for reporting and display purposes

fixes breakage fromhttps://github.com/inventree/InvenTree/pull/12169

* add api bump

* re-enable test

* fix migration

* ensure session is not overwritten

* fix statusrender without custom key
2026-06-18 08:10:32 +10:00