CoolCMS API

ComplaintStatusChangeFormTrait

Standalone status-change form of a complaint (like {@see OrderStatusChangeFormTrait}).

It calls only api/eshop/complaint/transition (ComplaintTransitionManager::apply()) and holds no status logic of its own. Unlike Order there is no gating matrix or JS toggle (a complaint has no reservations or payments); the select excludes the current status and after a stock return offers only statuses with returnStock=1. This mirrors the server policy (ComplaintTransitionManager), which stays authoritative even for a hand-posted statusId.

Table of Contents

Methods

createComponentComplaintStatusForm()  : Form
computeComplaintTargetStatuses()  : array<int, string>
processComplaintStatusChange()  : void

Methods

On this page

Search results