ita-social-projects/GreenCity

[UBS Admin cabinet/Order details] The 'Коментар/Чек' field incorrectly displays "Enrollment to the bonus account" instead of the provided electronic bill link.

Closed this issue · 0 comments

Environment: Windows 11 23H2, Firefox 125.0.3 (64-bit)
Reproducible: always.
Build found: 17.05.2024

Preconditions

  1. Order with the status "Formed" and payment status "Unpaid" created or exists in the system.
  2. Log in as Super Admin

Steps to reproduce

  1. Go to https://www.pick-up.city/#/ubs-admin/orders
  2. Click on the order ID with the status "Formed" and payment status "Unpaid" to open 'Order details' page
  3. Scroll down to 'Order payment' dropdown and expand it
  4. Click on the '+ Add payment' button to open the pop-up window
  5. Fill the 'Payment date' and 'Payment ID' fields with valid data (e.g: 17/05/24 and 1111)
  6. Enter the payment amount that is less or equal to the Underpayment value into the 'Payment amount (UAH)' field
  7. Click on 'Link to electronic bill' radio button and enter the valid data(e.g: link.com)
  8. Press 'Confirm payment' button
  9. Under the same dropdown menu 'Order payment' check 'Comment/Bill (Коментар/Чек)' column content

Actual result
In case of underpayment or full payment according to the expected amount "Enrollment to the bonus account" text contains in the 'Comment/Bill (Коментар/Чек)' column field.
image

Expected result
In case of underpayment or full payment according to the expected amount, the 'Comment/Bill (Коментар/Чек)' column field should contain a link to electronic bill that was previously filled in inside the 'Add payment document' pop-up window
image

Note
Although the comment mentions enrollment to the bonus account, the bonuses are not actually credited to the user`s account, unless an overpayment has been made.

User story links
User story #2898 Order payment details