mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-09 16:46:52 +00:00
Modern attachments (#505)
* Minimum API version is now 100 * Remove old API features - Anything below API v100 no longer supported * Reefactor attachment widget to support modern attachment API * Filter and display attachments correctly * Refactor
This commit is contained in:
1 parent
c3eb1a5fca
commit
e837394495
18 files changed
+151
-167
No files matched your search
@@ -175,9 +175,7 @@ class _SalesOrderDetailState extends RefreshableState<SalesOrderDetailWidget> {
|
||||
|
||||
supportsProjectCodes = api.supportsProjectCodes && await api.getGlobalBooleanSetting("PROJECT_CODES_ENABLED");
|
||||
|
||||
InvenTreeSalesOrderAttachment().count(filters: {
|
||||
"order": widget.order.pk.toString()
|
||||
}).then((int value) {
|
||||
InvenTreeSalesOrderAttachment().countAttachments(widget.order.pk).then((int value) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
attachmentCount = value;
|
||||
|
||||
Reference in new issue
Block a user