Deprecate some of the Display Modes

Goal

The Display Modes (also called Display Options) are stored in logic.json as displayOptions property and the numbers represents a bit mask of the enabled options.

Deprecate following Display modes:

  • PRICE_LIST(1, "Price Lists")

  • PRICE_SHOP(2, "Quote Configurator")

  • PRICE_GRID(4, "Price Grids")

  • INTEGRATION(8, "Integration")

and keep only following:

  • NONE(0, "Never")

  • EVERYWHERE(16, "Everywhere")

Why

The original idea was to be able to use the same shared logic for calcuation in price setting and quotes to control display of the given element. But experience showed that such shared logics do not make sense.

Next steps

  • Studio displays only a checkbox telling whether the field should be displayed (EVERYWHERE = 16) or never (NONE = 0)

  • Studio will report logics that have displayOptions other than 0 and 16.

  • One day, the special handling of legacy options will be removed from the backend core code.