2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-21 22:30:53 +00:00

Now displaying item match table

This commit is contained in:
eeintech
2021-05-07 13:23:10 -04:00
parent 4f942fd9f7
commit 6e269ae41a
4 changed files with 133 additions and 49 deletions
InvenTree
common
order
templates
order
order_wizard

@ -20,8 +20,8 @@ class FileManager:
# Fields which are absolutely necessary for valid upload
REQUIRED_HEADERS = []
# Fields which are used for part matching (only one of them is needed)
PART_MATCH_HEADERS = []
# Fields which are used for item matching (only one of them is needed)
ITEM_MATCH_HEADERS = []
# Fields which would be helpful but are not required
OPTIONAL_HEADERS = []
@ -83,7 +83,7 @@ class FileManager:
def update_headers(self):
""" Update headers """
self.HEADERS = self.REQUIRED_HEADERS + self.PART_MATCH_HEADERS + self.OPTIONAL_HEADERS
self.HEADERS = self.REQUIRED_HEADERS + self.ITEM_MATCH_HEADERS + self.OPTIONAL_HEADERS
def setup(self):
""" Setup headers depending on the file name """
@ -96,7 +96,7 @@ class FileManager:
'Quantity',
]
self.PART_MATCH_HEADERS = [
self.ITEM_MATCH_HEADERS = [
'Manufacturer_MPN',
'Supplier_SKU',
]