Skip to content

[IMP]pms: includes board services in cancelation penalty#225

Closed
braisab wants to merge 2334 commits into16.0-mig-pmsfrom
16.0-cancel_penalty_services
Closed

[IMP]pms: includes board services in cancelation penalty#225
braisab wants to merge 2334 commits into16.0-mig-pmsfrom
16.0-cancel_penalty_services

Conversation

@braisab
Copy link
Copy Markdown

@braisab braisab commented May 30, 2025

This pull request introduces a new feature to the _check_cancel_penalty method in pms/models/pms_reservation.py, enhancing the calculation of cancellation penalties by including board services in specific scenarios.

Enhancements to penalty calculation:

  • pms/models/pms_reservation.py: Updated _check_cancel_penalty to account for board services when calculating penalties. Only services marked as is_board_service and consumed either "before" or "after" the reservation dates are included. Services consumed on the first or last day are excluded. The penalty amount now factors in the price and quantity of applicable service lines.

DarioLodeiros and others added 30 commits November 7, 2024 13:07
DarioLodeiros and others added 27 commits May 5, 2025 16:55
@DarioLodeiros DarioLodeiros force-pushed the 16.0-mig-pms branch 2 times, most recently from 54b199d to 182b13c Compare June 9, 2025 14:15
@braisab braisab closed this Jun 17, 2025
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.

10 participants