mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 02:05:29 +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:
@ -228,9 +228,7 @@ class _PurchaseOrderDetailState extends RefreshableState<PurchaseOrderDetailWidg
|
||||
}
|
||||
}
|
||||
|
||||
InvenTreePurchaseOrderAttachment().count(filters: {
|
||||
"order": widget.order.pk.toString()
|
||||
}).then((int value) {
|
||||
InvenTreePurchaseOrderAttachment().countAttachments(widget.order.pk).then((int value) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
attachmentCount = value;
|
||||
|
Reference in New Issue
Block a user