Supplier invoice column mapping means deciding, for each vendor’s column, which target field it fills, in which unit, on which price base and whether the amount is net or gross, before any table is appended to another. Matching column names is not enough: map meaning first, then convert types, and keep every value the source does not establish as unresolved instead of guessing it.
What does a supplier invoice column map contain?
One row per source column, per supplier and per layout version:
| Map field | Example | Why it matters |
|---|---|---|
| Supplier and mapping version | B, v1 | A new invoice layout needs a new version |
| Source label | “Price per 100” | Kept exactly as printed |
| Target field | Original price + price base | Where the value lands |
| Type | Decimal, text, date | Codes stay text, amounts become numbers |
| Unit or base | Per 100 pieces | Prevents a hundredfold price error |
| Transformation | None, or a documented formula | Reproducible by someone else |
| Unresolved condition | Pack size not printed | Stops a guess from looking like data |
The W3C model for tabular data treats each column as having its own name, title and datatype. A combined invoice table needs the same discipline: one meaning per target column, whatever each vendor (supplier) calls it.
InvoiceLineLab extracts invoice line items from PDF to Excel or CSV with quantity, unit, unit price, discount and net amount in separate columns, the PDF page beside each row, and item codes kept as text. Each supplier’s rows therefore arrive with the same columns; deciding what a vendor’s “Packs” or “Price per 100” means stays a mapping decision you record.
Which columns differ most between suppliers?
Three pairs cause most wrong totals after an append:
- Quantity and its unit. “Qty” in pieces, “Packs” in packs of an unstated size, “Hours” for a service. Peppol requires a unit code with the invoiced quantity (BT-129); a PDF often leaves it in a header or a footnote.
- Price and its base. A price can apply to 1, 10, 100 or 1,000 units. Peppol’s price base quantity (BT-149) is “the number of item units to which the price applies”.
- Net or gross amount. “Line net”, “Amount”, “Total” and “Amount incl. tax” are not interchangeable. Peppol’s invoice line net amount (BT-131) excludes VAT and equals quantity × (net price ÷ price base quantity), plus line charges, minus line allowances.
Item codes are the fourth trap: a vendor code such as 00128 must stay text in every source, so follow the method for Excel leading zeros in supplier item codes before you append anything. These Peppol definitions are a useful target model for your workbook; they do not make an ordinary PDF a Peppol invoice.
Worked example: two supplier layouts, one target table
Both invoices are synthetic and in pounds sterling.
Supplier A prints “Item”, “Qty” (pieces), “Unit price” and “Line net”:
| Item | Qty | Unit price | Line net |
|---|---|---|---|
| 00128 | 2 | 10.00 | 20.00 |
| 00131 | 5 | 3.40 | 17.00 |
Check: 2 × 10.00 = 20.00 and 5 × 3.40 = 17.00. Supplier A net: GBP 37.00.
Supplier B prints “Ref”, “Packs”, “Price per 100” (pieces) and “Amount incl. tax”:
| Ref | Packs | Price per 100 | Amount incl. tax | Evidence on the invoice |
|---|---|---|---|---|
| 7741 | 3 | 18.00 | 32.40 | “Pack of 50”; VAT 20% shown on the line |
| 7790 | 2 | 12.00 | 26.40 | No pack size; no VAT rate on the line |
For ref 7741, the invoice establishes 3 × 50 = 150 pieces, so the net amount is 150 × 18.00 ÷ 100 = GBP 27.00. The printed gross amount confirms it: 27.00 × 1.20 = 32.40. Both routes agree, so the line net is accepted.
For ref 7790, neither the pack size nor the VAT rate is printed. Pieces, price per piece and line net remain unresolved; the gross amount GBP 26.40 is kept in its own column.
Mapped result: known net subtotal GBP 64.00 (20.00 + 17.00 + 27.00) for three lines, one line unresolved with a gross amount of GBP 26.40.
Three shortcuts give a wrong figure:
- Mapping “Amount incl. tax” to “line net”: 20.00 + 17.00 + 32.40 + 26.40 = GBP 95.80, mixing net and gross.
- Assuming 20% VAT on ref 7790: 26.40 ÷ 1.20 = 22.00, total 86.00, a value the invoice does not establish.
- Mapping “Price per 100” to “unit price” and “Packs” to “quantity”: 3 × 18.00 = GBP 54.00 for ref 7741, double the real 27.00.
How do you check type conversion separately from meaning?
Locale affects the conversion from text to numbers. Record the source convention in the map instead of relying on the reviewer’s computer settings: 1.234,56 in German notation and 1,234.56 in US notation both mean 1,234.56. The code 00128, however, stays text in either source; converting it to 128 loses identifier information.
Compare raw and converted values on boundary cases before accepting a supplier map. A correctly parsed 26.40 gross amount still cannot fill the line net column: type conversion and business meaning are separate checks. If a conversion fails, keep the row and the error reason; never replace the error with zero or remove the item to obtain a clean total.
How do you append supplier tables without losing meaning?
- Preserve each source table untouched.
- Map labels to target fields with the supplier’s current mapping version.
- Confirm units, price base and net or gross definition on a normal line, a discounted line, a line with a missing field and the last page.
- Convert types, with the locale recorded.
- Append the mapped tables, carrying supplier, mapping version, review status and PDF page on every row.
If the spreadsheet’s query editor appends tables by column name, matching names still do not guarantee matching business meaning, and missing columns simply fill with blanks. A rectangular table is no proof of complete data. Do not rename a gross field to the net target just to make columns line up.
How do you detect a supplier format change?
Before accepting a new batch, compare its headings with those recorded for that supplier’s mapping version. Investigate missing or new labels and changed units; never discard an unfamiliar column silently. Record source format, mapping version, evidence and status (accepted or pending) with the batch.
Then compare source and mapped row counts supplier by supplier, and reconcile only totals that share the same definition and currency. In the example, A supplies two rows and B two: four retained rows are expected unless an exclusion is documented.
What should stay unresolved, and why?
Give every empty target a reason. An absent source column, an empty cell, an unreadable value and a failed conversion need different reasons even though they all leave the normalized value blank. A printed zero stays a numeric zero; a missing value is null, not 0. That distinction lets the recipient decide whether to ask the supplier for a detailed export, open the PDF page or fix the transformation.
For a small batch, a manual mapping sheet and a separate pending list provide the same decision trail without building an import pipeline. This is preparation for a consistent analysis table, not an ERP connector.
FAQ
How do I combine invoices from different suppliers in Excel?
Map each supplier’s columns to one target schema first (quantity with unit, price with its base, net amount, item code as text), convert types, then append. Keep supplier and mapping version on every row.
Can I convert a gross amount to net with the usual VAT rate?
Only if the invoice states the rate for that line. Otherwise keep the gross amount and mark the net amount unresolved.
What is a price base quantity?
The number of units a printed price applies to, for example 100 pieces. Line net = quantity × price ÷ price base quantity.
Why does Excel change supplier item codes?
Codes such as 00128 look numeric, so they are converted and lose leading zeros. Import code columns as text.
Continue the checks
Packs, boxes and pieces need one unit basis before you compare prices. A supplier who prices per hundred needs the price base quantity in every line calculation. Suppliers billing in several currencies need original and converted amounts kept apart. After the append, keep the PDF page behind each combined row so any value can be checked. For the base structure, see line items versus invoice header fields.
The synthetic invoice table on the home page shows quantity, unit, unit price and page as separate columns, and the invoice data validation checks list what to confirm before combining suppliers.