PR: https://github.com/Honeybee-Health/apiary/pull/2139 | Author: Efrem Roberson Stacked on: KEEP-1977-mor-after-parata
Adds parata_dispense_type enum to cph_csom, persists it during Guardian
order sync, and renders a "" pill on the Mail Order Receipt. Enum design:
:unknown, :parata_max, :parata_minis, :non_parata with _prefix: :dispensed_from.
Partially met (order-level indicator, not item-level — ticket explicitly permits this).
@csom.parata_dispense_type = @order_data[:parata_dispense_type].presence || :unknown. If any Guardian sync event omits this field (e.g., status-only
updates), previously-saved :parata_max silently resets to :unknown, removing
the "" label from reprinted MORs. Author said "we want to update" but this only
works if every sync payload consistently includes the field. Needs confirmation
with Guardian team, or guard with if @order_data.key?(:parata_dispense_type).
Primary user-facing behavior of the ticket with zero test coverage. Existing specs cover job-level persistence and printing gate logic only.
- Empty
<p>tag when neither safety caps nor parata max apply (minor HTML) sandbox_schema.rbcolumn ordering inconsistency (cosmetic)- Good refactor:
finished_dispensing_from_parata?moved from raw boolean to persisted enum - CI fully green
Needs changes — confirm Guardian payload consistency and add a view spec.