]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commit
fix(ERP-252): use district as street fallback, add prod data fixtures origin/feature_filippov_ERP-252_fix_delivery_street_parsing
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Mon, 2 Mar 2026 20:53:47 +0000 (23:53 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Mon, 2 Mar 2026 20:53:47 +0000 (23:53 +0300)
commit617efe977b6fb66d45ad250ba923c70aa7317c82
tree0609cc35ecc2b3ef12b131635d191fb180b35f97
parent129c6b052c91c1408de327152aa41ca644a8c2e9
fix(ERP-252): use district as street fallback, add prod data fixtures

YM API often returns address without street but with district
(e.g., "микрорайон Красногорка"). Now uses district as street fallback.

Added 6 test cases based on real production data:
- #4497: no street, has district (Бор, микрорайон Красногорка)
- #3519: has street (улица Генерала Зимина)
- #4328: district only (микрорайон Щербинки-1)
- #4297: no street, no district (деревня Анкудиновка)
- STRING format with "Уточните время"
- NULL delivery in raw_data

26 tests, 133 assertions — all passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
erp24/services/MarketplaceService.php
erp24/tests/unit/services/MarketplaceServiceDeliveryParsingTest.php