mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-28 17:13:44 +00:00
Enable export of supplier price break data (#11153)
* Enable export of supplier price break data * Bump API version
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
"""InvenTree API version information."""
|
"""InvenTree API version information."""
|
||||||
|
|
||||||
# InvenTree API version
|
# InvenTree API version
|
||||||
INVENTREE_API_VERSION = 440
|
INVENTREE_API_VERSION = 441
|
||||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||||
|
|
||||||
INVENTREE_API_TEXT = """
|
INVENTREE_API_TEXT = """
|
||||||
|
|
||||||
|
v441 -> 2026-01-17 : https://github.com/inventree/InvenTree/pull/11153
|
||||||
|
- Allow export of supplier part pricing data
|
||||||
|
|
||||||
v440 -> 2026-01-15 : https://github.com/inventree/InvenTree/pull/10796
|
v440 -> 2026-01-15 : https://github.com/inventree/InvenTree/pull/10796
|
||||||
- Adds confirm and confirm_text to all settings
|
- Adds confirm and confirm_text to all settings
|
||||||
|
|
||||||
|
|||||||
@@ -447,7 +447,11 @@ class SupplierPriceBreakOutputOptions(OutputConfiguration):
|
|||||||
|
|
||||||
|
|
||||||
class SupplierPriceBreakList(
|
class SupplierPriceBreakList(
|
||||||
SupplierPriceBreakMixin, SerializerContextMixin, OutputOptionsMixin, ListCreateAPI
|
DataExportViewMixin,
|
||||||
|
SupplierPriceBreakMixin,
|
||||||
|
SerializerContextMixin,
|
||||||
|
OutputOptionsMixin,
|
||||||
|
ListCreateAPI,
|
||||||
):
|
):
|
||||||
"""API endpoint for list view of SupplierPriceBreak object.
|
"""API endpoint for list view of SupplierPriceBreak object.
|
||||||
|
|
||||||
|
|||||||
@@ -540,8 +540,8 @@ class SupplierPartSerializer(
|
|||||||
|
|
||||||
@register_importer()
|
@register_importer()
|
||||||
class SupplierPriceBreakSerializer(
|
class SupplierPriceBreakSerializer(
|
||||||
SupplierPriceBreakBriefSerializer,
|
|
||||||
DataImportExportSerializerMixin,
|
DataImportExportSerializerMixin,
|
||||||
|
SupplierPriceBreakBriefSerializer,
|
||||||
InvenTreeModelSerializer,
|
InvenTreeModelSerializer,
|
||||||
):
|
):
|
||||||
"""Serializer for SupplierPriceBreak object.
|
"""Serializer for SupplierPriceBreak object.
|
||||||
|
|||||||
@@ -206,7 +206,8 @@ export default function SupplierPriceBreakTable({
|
|||||||
supplier_detail: true
|
supplier_detail: true
|
||||||
},
|
},
|
||||||
tableActions: tableActions,
|
tableActions: tableActions,
|
||||||
rowActions: rowActions
|
rowActions: rowActions,
|
||||||
|
enableDownload: true
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user