You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unify Items and Customers CSV import headers and templates #4806
Unify CSV import handling for Items and Customers. The current customer import downloads a static template and compares headers in a fixed order. This follow-up will also prepare the customer import for the planned Person Attributes work.
Required changes
Generate the Customers CSV import template instead of relying on the static importCustomers.csv file, following the Items template approach.
Apply strict header naming requirements to both Items and Customers imports, without requiring a fixed column order.
Adjust import validation and business logic, including queued row processing, so each value maps to the correct field when columns are reordered.
Review compatibility with existing customer CSV files, including the legacy header labels raised in the review. Define how the strict naming requirement applies to those files.
Affected areas include the Items and Customers controllers, CSV template and import helpers, queued row processors, and CSV import tests.
Acceptance criteria
The Customers template is generated and can be downloaded and imported.
Both imports accept valid headers in a different column order and correctly save the corresponding values.
Both imports reject headers that do not meet the agreed strict naming requirements.
Automated tests cover generated templates, reordered columns, invalid headers, BOM handling, and the agreed legacy-file behavior for both imports as applicable.
Status: Still present / not yet implemented on master.
app/Controllers/Customers.php on master still implements the legacy behavior this issue asks to unify away:
getCsv() just returns the static file WRITEPATH . "uploads/importCustomers.csv" rather than generating a template (unlike the Items approach referenced in the issue).
postImportCsvFile() parses rows strictly by fixed numeric column index ($data[0] … $data[17]) with no header-name validation or reordering support, which is exactly the fixed-column-order limitation the issue wants replaced with strict header-name matching independent of column order.
No generated-template logic or header-name-based mapping exists in this controller.
Confidence: High — based on direct inspection of the current app/Controllers/Customers.php source.
Activity
objecttothis commentedon Nov 16, 2026
Claude Issue Checker Agent (cc @objecttothis)
Status: Still present / not yet implemented on
master.app/Controllers/Customers.phpon master still implements the legacy behavior this issue asks to unify away:getCsv()just returns the static fileWRITEPATH . "uploads/importCustomers.csv"rather than generating a template (unlike the Items approach referenced in the issue).postImportCsvFile()parses rows strictly by fixed numeric column index ($data[0]…$data[17]) with no header-name validation or reordering support, which is exactly the fixed-column-order limitation the issue wants replaced with strict header-name matching independent of column order.No generated-template logic or header-name-based mapping exists in this controller.
Confidence: High — based on direct inspection of the current
app/Controllers/Customers.phpsource.