Fixed internal BoM XLSX generation when no DNF parts are used

This commit is contained in:
Salvador E. Tropea 2022-04-26 09:33:04 -03:00
parent 2c3dbb28a9
commit 3952d84a6a
1 changed files with 1 additions and 0 deletions

View File

@ -619,6 +619,7 @@ def _create_kicost_sheet(workbook, groups, image_data, fmt_title, fmt_info, fmt_
dnf = ws == 1
# Should we generate the DNF?
if dnf and (not cfg.xlsx.generate_dnf or cfg.n_total == cfg.n_fitted):
used_parts.append([])
break
# Create the parts structure from the groups
parts = []