Made the "Total Compomponents" label coherent between HTML and XLSX
This commit is contained in:
parent
eef8041843
commit
c263859de6
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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: ''
|
||||
|
|
@ -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
|
||||
|
|
@ -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: ''
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue