mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-08-03 15:11:40 +00:00
Consider PRODUCT_BLOCKED as DISCONTINUED
This commit is contained in:
parent
57a6a27051
commit
642012f6c5
1 changed files with 4 additions and 5 deletions
|
|
@ -292,11 +292,10 @@ class TMEProvider implements InfoProviderInterface, URLHandlerInfoProviderInterf
|
||||||
return ManufacturingStatus::EOL;
|
return ManufacturingStatus::EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array('INVALID', $statusArray, true)) {
|
if (in_array('INVALID', $statusArray, true) ||
|
||||||
return ManufacturingStatus::DISCONTINUED;
|
in_array('PRODUCT_BLOCKED', $statusArray, true) ||
|
||||||
}
|
in_array('NOT_IN_OFFER', $statusArray, true)
|
||||||
|
) {
|
||||||
if (in_array('NOT_IN_OFFER', $statusArray, true)) {
|
|
||||||
return ManufacturingStatus::DISCONTINUED;
|
return ManufacturingStatus::DISCONTINUED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue