]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commit
fix(TO8-48): fix readyto_1c strict comparison, add cron-based timeout check
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 4 Mar 2026 07:09:54 +0000 (10:09 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Wed, 4 Mar 2026 07:09:54 +0000 (10:09 +0300)
commit6f22047abadb365c6fd0061442edc8a07e2451ec
treeb4e7bb03b0650119f717ec6d94b7b6372fd10d9e
parenta69421b3794c09b03e3ef7d3940138f715bbc536
fix(TO8-48): fix readyto_1c strict comparison, add cron-based timeout check

- Fix `checkAndSetReadyTo1c()`: cast `readyto_1c` to int before strict
  comparison — PostgreSQL returns string "0", so `!== 0` always skipped
- Add `forceReadyTo1cByTimeout()`: batch-marks orders older than 15 min
  as ready for 1C export, independent of incoming FlowWow emails
- Add console action `marketplace/check-ready-to-1c` for cron (*/5)
- Add unit tests for both string and int readyto_1c values
erp24/commands/MarketplaceController.php
erp24/services/MarketplaceService.php
erp24/tests/unit/services/CheckReadyTo1cTest.php [new file with mode: 0644]