Int BoM + KiCost: Added option to control the distributor description

- Disabled by default
- Also fixed KiCost tests to avoid using Digi-Key plug-in when not
  needed
This commit is contained in:
Salvador E. Tropea 2021-10-27 15:08:12 -03:00
parent 3d6840cd85
commit ccfb6ce734
6 changed files with 7 additions and 2 deletions

View File

@ -537,7 +537,7 @@ def _create_kicost_sheet(workbook, groups, image_data, fmt_title, fmt_info, fmt_
Spreadsheet.MAX_COL_WIDTH = cfg.xlsx.max_col_width
Spreadsheet.PART_NSEQ_SEPRTR = cfg.ref_separator
if hasattr(Spreadsheet, 'SUPPRESS_DIST_DESC'):
Spreadsheet.SUPPRESS_DIST_DESC = False
Spreadsheet.SUPPRESS_DIST_DESC = not cfg.xlsx.kicost_dist_desc
# Keep our sorting
try:
Spreadsheet.SORT_GROUPS = False

View File

@ -167,6 +167,8 @@ class BoMXLSX(BoMLinkable):
""" [string|list(string)=''] List of KiCost APIs to enable """
self.kicost_api_disable = Optionable
""" [string|list(string)=''] List of KiCost APIs to disable """
self.kicost_dist_desc = False
""" Used to add a column with the distributor's description. So you can chek this is the right component """
self.specs = False
""" Enable Specs worksheet creation. Contains specifications for the components.
Works with only some KiCost APIs """

@ -1 +1 @@
Subproject commit 3880660d03f929a7c02f70d045dd30ea8693e619
Subproject commit ee939e13e04802d0c69a3be0bcf3fc5ae4b91f7b

View File

@ -29,3 +29,4 @@ outputs:
name: Manufacturer P/N
xlsx:
kicost: true
kicost_api_disable: 'Digi-Key'

View File

@ -39,3 +39,4 @@ outputs:
- Digi-Key
xlsx:
kicost: true
kicost_api_disable: 'Digi-Key'

View File

@ -36,3 +36,4 @@ outputs:
- 'Voltage'
xlsx:
kicost: true
kicost_api_disable: 'Digi-Key'