Avoid decimal point and trailing zero for integer BOM quantities
Fixes #340
This commit is contained in:
parent
954c4f5f92
commit
0c11357fee
@ -204,7 +204,7 @@ def generate_bom(harness: "Harness") -> List[BOMEntry]:
|
|||||||
bom.append(
|
bom.append(
|
||||||
{
|
{
|
||||||
**group_entries[0],
|
**group_entries[0],
|
||||||
"qty": round(total_qty, 3),
|
"qty": int(total_qty) if float(total_qty).is_integer() else round(total_qty, 3),
|
||||||
"designators": sorted(set(designators)),
|
"designators": sorted(set(designators)),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user