refactor: rebrand project to HartOMat
This commit is contained in:
@@ -81,7 +81,7 @@ export default function NewProductOrderPage() {
|
||||
queryFn: listMaterials,
|
||||
enabled: step >= 3,
|
||||
})
|
||||
const libMaterials = (allMaterials ?? []).filter((m: Material) => m.schaeffler_code !== null).sort((a: Material, b: Material) => a.name.localeCompare(b.name))
|
||||
const libMaterials = (allMaterials ?? []).filter((m: Material) => m.hartomat_code !== null).sort((a: Material, b: Material) => a.name.localeCompare(b.name))
|
||||
|
||||
function initPositionsForProduct(product: Product, globals: GlobalRenderPosition[] = []) {
|
||||
// Pre-select all per-product positions (if any)
|
||||
@@ -822,10 +822,10 @@ export default function NewProductOrderPage() {
|
||||
value={lineOverrides[line.key] ?? ''}
|
||||
onChange={(e) => setLineOverrides((prev) => ({ ...prev, [line.key]: e.target.value }))}
|
||||
>
|
||||
<option value="">{materialOverride ? `Global: ${materialOverride.replace('SCHAEFFLER_', '').replace(/_/g, ' ')}` : 'No override'}</option>
|
||||
<option value="">{materialOverride ? `Global: ${materialOverride.replace('HARTOMAT_', '').replace(/_/g, ' ')}` : 'No override'}</option>
|
||||
{materialOverride && <option value="__none__">— No override (clear) —</option>}
|
||||
{libMaterials.map((m: Material) => (
|
||||
<option key={m.id} value={m.name}>{m.name.replace('SCHAEFFLER_', '').replace(/_/g, ' ')}</option>
|
||||
<option key={m.id} value={m.name}>{m.name.replace('HARTOMAT_', '').replace(/_/g, ' ')}</option>
|
||||
))}
|
||||
</select>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user