Treat KiCad Value/PNM as the IC MPN when the MPN column is empty.
Those 13 U* were in the BOM (TPS22965, TPD2E007, TMP117, …) but never entered ic_mpns, so review skipped them as missing PDFs. Also try the BOM Datasheet URL first. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -231,11 +231,14 @@ function classifyBom(
|
||||
|
||||
for (const row of rows) {
|
||||
const refsRaw = row[refCol] || "";
|
||||
const mpn = row[mpnCol] || "";
|
||||
const value = (row.Value || row.Comment || "").trim();
|
||||
const mpnFromCol = (row[mpnCol] || "").trim();
|
||||
const refs = refsRaw
|
||||
.split(",")
|
||||
.map((r) => r.trim())
|
||||
.filter(Boolean);
|
||||
const hasIc = refs.some((r) => /^U\d/i.test(r));
|
||||
const mpn = mpnFromCol || (hasIc ? value : "");
|
||||
|
||||
for (const ref of refs) {
|
||||
totalRefs++;
|
||||
|
||||
Reference in New Issue
Block a user