Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is a requirement to add a message about discount/description on the Fee Table.

This configuration should be able to configure a title, period date, discount message, and fee type config.

All configurations will be on the Sanity when the user will have more change possibilities., in the beginning, the proposal will be to show the message discount on Whitelabel, but the Sanity structure will be created to receive more Fee configurations in the future, as the Fees Tiers that currently are in the LD.

These configurations will be related to the restaurant group and the Fee config.

...

Note

Acceptance criteria

Review

...

  1. Toggle Enabled or Disabled:

    1. The Fee discount description will show on the fee table modal when the Sanity toggle is enabled;

      1. Will considered enabled:

        1. On Sanity there is a DEFAULT CONFIG added to the restaurant group that the restaurant is part;

          image-20240424-122635.png
        2. On Sanity there is an OTHER CONFIG added to the restaurant group that the restaurant is part with period valid;

          image-20240424-124310.png
        3. If there are the DEFAULT CONFIG and OTHER CONFIG:

          1. it will be considered the OTHER CONFIG, if the period has been valid;

          2. else, it will be considering the DEFAULT CONFIG;

            image-20240430-104540.png

    2. When the Sanity toggle is disabled, the Fee discount description will hide on the fee table modal;

      1. If anyone’s conditions above are matched.

...

This improvement:

...