A fictional mobile fleet has four service assignments. Two departments both have a line labeled 004110. The parent account tells you which line belongs to which department.
| Parent account | Service |
|---|---|
| 000714 | 004110 |
| 000852 | 004110 |
| 000714 | 000075 |
| 000852 | 66770000123456789 |
A spreadsheet sent back for import still has four rows. Only the first row passes an exact-text comparison against the source.
Try reading the value underneath the display
In the returned XLSX, row 3 shows 004110. The cell stores the number 4110 and uses the display mask 000000. PhpSpreadsheet exposes both. Here is a minimal inspection of the two cells in the worked file:
use PhpOffice\PhpSpreadsheet\Reader\Xlsx; $sheet = (new Xlsx())->load('before.xlsx')->getSheetByName('Hierarchy'); foreach (['C2', 'C3'] as $address) { $cell = $sheet->getCell($address); printf("%s type=%s raw=%s format=%s\n", $address, $cell->getDataType(), (string) $cell->getValue(), $cell->getStyle()->getNumberFormat()->getFormatCode() ); } In our file, C2 is inline text with the value 004110. C3 is numeric with the value 4110. If your job requires preserving the identifier exactly, hold C3 and return to the original roster. Adding a display mask tells the next application how to draw a number. It supplies no evidence about the original digits.
Check the relationship as well as the digits
Row 4 is subtler. The account is literal text 000852. Its service is literal text 000075. Both appear somewhere in the reference. Only account 000714 has that service. Two independent membership checks would approve the row. Looking up the pair catches the reassignment.
Row 5 contains a long numeric service ID. Recover it from the reference before handing over the file. A value that has already lost precision cannot reveal its original digits.
This issue shows up in real billing software. Telstra’s hierarchy-import guide explains why each service entry needs its parent account and shows warnings for stripped zeros. Its importer can match some shortened identifiers. An integrator may still want to give the customer a file that preserves its source values. Telstra hierarchy import guide, pp. 8–9 and 16–17
Run the handoff locally
The worked files and PHP checker include the source CSV, the returned workbook and the corrected workbook. Install the tagged version in a fresh Composer project:
composer init --name=example/billing-review --author='Workshop Team <team@example.invalid>' --no-interaction composer config repositories.bulldogs vcs https://github.com/bulldo-gs/telecom-service-audit composer require bulldogs/telecom-service-audit:1.0.1 kit=vendor/bulldogs/telecom-service-audit/examples vendor/bin/telecom-service-audit "$kit/source.csv" "$kit/before.xlsx" Hierarchy vendor/bin/telecom-service-audit "$kit/source.csv" "$kit/corrected.xlsx" Hierarchy The first command that runs the checker holds three rows. The second finds all four reference pairs stored as literal text. The report gives the affected row numbers and reasons and keeps the identifiers out of its output.
A service can appear on several rows when its costs are split. Two rows carrying the same exact pair cover one identity. To check the financial allocation itself, review the cost centres and split percentages separately.

