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

[UBS] - The cost of the service and tariff service, as well as the order cost, cannot be saved to the nearest kopeck #5935 #1134

Conversation

juseti
Copy link
Contributor

@juseti juseti commented Jun 10, 2023

Summary of issue

Prices for services, tariff services, and orders are possible only in whole numbers (hryvnias) and do not take into account the fractional part (kopecks).

ita-social-projects/GreenCity#5935
ita-social-projects/GreenCity#5575

Changed

  • core/src/main/java/greencity/controller/AdminUbsController
  • core/src/main/java/greencity/controller/ManagementOrderController
  • core/src/main/java/greencity/controller/SuperAdminController
  • dao/src/main/java/greencity/entity/order/Bag
  • dao/src/main/java/greencity/entity/order/Service
  • dao/src/main/java/greencity/repository/BagRepository
  • service/src/main/java/greencity/service/notification/NotificationServiceImpl
  • service/src/main/java/greencity/service/ubs/OrdersForUserServiceImpl
  • service/src/main/java/greencity/service/ubs/SuperAdminServiceImpl
  • service/src/main/java/greencity/service/ubs/UBSClientServiceImpl
  • service/src/main/java/greencity/service/ubs/UBSManagementServiceImpl
  • service-api/src/main/java/greencity/dto/bag/BagForUserDto
  • service-api/src/main/java/greencity/dto/bag/BagInfoDto
  • service-api/src/main/java/greencity/dto/bag/BagOrderDto
  • service-api/src/main/java/greencity/dto/bag/BagTranslationDto
  • service-api/src/main/java/greencity/dto/order/BigOrderTableDTO
  • service-api/src/main/java/greencity/dto/order/OrderDetailInfoDto
  • service-api/src/main/java/greencity/dto/order/OrderStatusPageDto
  • service-api/src/main/java/greencity/dto/order/UpdateOrderPageAdminDto
  • service-api/src/main/java/greencity/dto/order/UserOrdersDto
  • service-api/src/main/java/greencity/dto/payment/PaymentRequestDto
  • service-api/src/main/java/greencity/dto/service/GetServiceDto
  • service-api/src/main/java/greencity/dto/service/GetTariffServiceDto
  • service-api/src/main/java/greencity/dto/service/ServiceDto
  • service-api/src/main/java/greencity/dto/service/TariffServiceDto
  • service-api/src/main/java/greencity/dto/user/UserPointsAndAllBagsDto
  • service-api/src/main/java/greencity/service/ubs/UBSManagementService
  • dao/src/main/resources/db/changelog/db.changelog-master.xml
  • dto mappers
  • tests

Added

  • service/src/main/java/greencity/mapping/bag/BagForUserDtoMapper
  • service/src/main/java/greencity/mapping/service/GetServiceDtoToServiceMapper
  • service/src/main/java/greencity/mapping/service/TariffServiceDtoToBagMapper
  • dao/src/main/resources/db/changelog/logs/ch-update-bag-price-commission-Seti.xml
  • dao/src/main/resources/db/changelog/logs/ch-update-service-price-Seti.xml
  • dao/src/main/resources/db/changelog/logs/ch-update_big_order_table_view-Seti.xml
  • dao/src/main/resources/db/changelog/logs/ch-modify-columns-name-name-eng-in-bag-and-service-tables.xml
  • dto mappers
  • tests

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

96.6% 96.6% Coverage
0.0% 0.0% Duplication

@juseti juseti merged commit bb565d6 into dev Jun 12, 2023
@juseti juseti deleted the service_tariff_service_and_order_costs_cannot_be_saved_to_the_nearest_kopeck branch June 12, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants