Made the "Total Compomponents" label coherent between HTML and XLSX

This commit is contained in:
SET 2020-08-12 19:12:35 -03:00
parent eef8041843
commit c263859de6
8 changed files with 79 additions and 2 deletions

View File

@ -221,7 +221,7 @@ def write_html(filename, groups, headings, head_names, cfg):
html.write(" <b>Component Count</b>: {} (per PCB)<br>\n\n".format(cfg.n_total))
html.write(" <b>Fitted Components</b>: {} (per PCB)<br>\n".format(cfg.n_fitted))
html.write(" <b>Number of PCBs</b>: {}<br>\n".format(cfg.number))
html.write(" <b>Total Component Count</b>: {t} (for {n} PCBs)<br>\n".format(n=cfg.number, t=cfg.n_build))
html.write(" <b>Total Components</b>: {t} (for {n} PCBs)<br>\n".format(n=cfg.number, t=cfg.n_build))
html.write(' </td>\n')
html.write('</tr>\n')
html.write('</table>\n')

View File

@ -321,7 +321,7 @@ def write_xlsx(filename, groups, col_fields, head_names, cfg):
rc = add_info(worksheet, column_widths, rc, col1, fmt_info, "Component Count:", cfg.n_total)
rc = add_info(worksheet, column_widths, rc, col1, fmt_info, "Fitted Components:", cfg.n_fitted)
rc = add_info(worksheet, column_widths, rc, col1, fmt_info, "Number of PCBs:", cfg.number)
rc = add_info(worksheet, column_widths, rc, col1, fmt_info, "Total components:", cfg.n_build)
rc = add_info(worksheet, column_widths, rc, col1, fmt_info, "Total Components:", cfg.n_build)
# Adjust cols and rows
adjust_widths(worksheet, column_widths, max_width)

View File

@ -0,0 +1,11 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in HTML format"
type: bom
dir: BoM
options:
format: HTML

View File

@ -0,0 +1,12 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in HTML format"
type: bom
dir: BoM
options:
html:
title: ''

View File

@ -0,0 +1,12 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in HTML format"
type: bom
dir: BoM
options:
html:
logo: false

View File

@ -0,0 +1,13 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in HTML format"
type: bom
dir: BoM
options:
html:
logo: false
title: ''

View File

@ -0,0 +1,14 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in HTML format"
type: bom
dir: BoM
options:
html:
logo: false
title: ''
hide_pcb_info: true

View File

@ -0,0 +1,15 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in HTML format"
type: bom
dir: BoM
options:
html:
logo: false
title: ''
hide_pcb_info: true
hide_stats_info: true