Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pricing card #4202

Open
schIRIS opened this issue May 22, 2022 · 3 comments
Open

Create pricing card #4202

schIRIS opened this issue May 22, 2022 · 3 comments
Assignees
Milestone

Comments

@schIRIS
Copy link

schIRIS commented May 22, 2022

As a Super Admin, I want to be able to quickly create a pricing card from the main page "Тарифи" so I do not have to search for the necessary pricing card and that the change could be displayed for next orders. The User can create a new pricing card only with existing locations, couriers and receiving stations from the database.

User Flow
Main UBS menu -> Choose "Тарифи” -> tools “Gear”

Preconditions
The user should be logged in as a Super Admin

Acceptance Criteria

  1. When the user wants to create a new pricing card he/she should tap on “Створити картку”
    https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20020%3A62075

  2. When the user taps on “Створити картку”, will appear pop-up window named “Створити картку” with fields:

Field title Field type Condition Prefilled text Validation
“Кур’єр” Drop-down list Mandatory Placeholder “Обрати кур'єра” The system shall show the courier suggestions based on the database. Suggestions are displayed by a drop-down list.
“Станція приймання” Input field Drop-down list with check boxes Mandatory Placeholder “Обрати станцію приймання” After typing 1 character, the system shall show the station suggestions based on the database. Suggestions are displayed by a drop-down list.
“Область” Drop-down list Mandatory Placeholder “Обрати область” The system shall show the region suggestions based on the location database. Suggestions are displayed by a drop-down list.
“Місто” Input field  Drop-down list with check boxes Mandatory Placeholder “Обрати місто” After typing 1 character, the system shall show the city suggestions based on the location database. Suggestions are displayed by a drop-down list.
Button “Скасувати” Button Mandatory   Active by default.When the user clicks on the button - the window “Створити картку"  was closed and the user sees the previous page "Тарифи” view
Button “Створити” Button Mandatory   Inactive by default.When the user selects any points - the button will be active.When the user clicks on the button - the card should be saved,  the window “Створити картку” was closed and the user sees the previous page "Тарифи” view
“Дата” Text Mandatory   Current data in the format mmm_dd,yyyy
“Додано:” Text Mandatory   Name of logged Super Admin

Link of the mockup in Figma https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A64447
3. The system should show the courier/region/city suggestions (except in receiving stations) the English field based on the database. These fields should be mandatory and uneditable.
4. To create and save a new pricing cart the user should fill all fields. Otherwise the button “Створити” should be disabled.
5.
5.1. When the user selects the city in the field “Місто”, the selected city will appear as a text (with English equivalent). The user should be able to delete the newly added city. The user must be able to delete the selected city.
5.2. The user can select more than one city. After that in the field "Місто" should displaied a text " обрано"
https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A65556
6.
6.1. When the user selects the station in the field “Сортувальна станція”, selected stations will appear as a text. The user should be able to delete the newly added station. The user must be able to delete the selected stations.
6.2. The user can select more than one station. After that in the field "Станція сортування" should displaied a text " обрано"
7. When the user selects all fields (except the "Станція приймання") that match an existing card in the database and presses the button “Створити”, appears validation message: “За цими критеріями вже існує тарифна картка. Вам потрібно внести зміни”. https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A65673
If the user select one or more cities in the field “Місто” and/or "Станція приймання", when he/she clicks the button “Скасувати” appears the pop-up window that consists:
the message “Скасувати. Ви дійсно хочете скасувати внесені зміни? ”
the button “Так” is active. When the User clicks on the button - the pop-up was closed and the user sees the previous main page "Тарифи” view.
the button “Ні” is active. When the user clicks on the button - the pop-up is closed and the user sees the previous page "Створити картку” view.
https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20786%3A64539
8. When the user wants to save the card with a new location, he/she must click on the button “Створити”, then appears the window that duplicate all selected fields
https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A65673
8.1. When the user clicks the button “Скасувати” appears the pop-up window that consists:
the message “Скасувати. Ви дійсно хочете скасувати внесені зміни? ”
the button “Так” is active. When the User clicks on the button - the pop-up was closed and the user sees the previous main page "Тарифи” view.
the button “Ні” is active. When the user clicks on the button - the pop-up is closed and the user sees the previous page "Створити картку” view.
https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20786%3A64539

Epic link
Epic #2195

@melnychenkoas melnychenkoas self-assigned this Jun 9, 2022
@melnychenkoas melnychenkoas added this to the UI S23.1 milestone Jun 9, 2022
@melnychenkoas melnychenkoas modified the milestones: UI S23.1, UI S23.2 Jun 16, 2022
@RudnevaOlena
Copy link

RudnevaOlena commented May 15, 2023

15.05.2023 In the AC 5.1 was deleted about "enter" according to the current implementation and approval of our PM ( old ver.: "When the user selects the city in the field “Місто” and presses “Enter” selected city will appear as a text".)

@RudnevaOlena
Copy link

In the AC 6.1. "When the user selects the station in the field “Сортувальна станція” and presses “Enter” selected stations will appear as a text". - was deleted "and presses “Enter”, according to implementation and approval by PM.

@RudnevaOlena
Copy link

In the AC7 added "all" fields that match an existing card in the database..... - according to approval by PM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for testing
Development

No branches or pull requests

3 participants