Early Booking Cost Discount Rule – Deletion Behavior
Overview
When an Early Booking Cost Discount Rule is deleted from a hotel, the related information in the autobilling invoice (specifically in the EarlyBookingDepositInvoiceLine table) is also deleted. This behavior occurs regardless of the invoice status and is part of the current Tourpaq implementation logic.
Behavior Details
The deletion of an Early Booking Cost Discount Rule triggers a cascading delete in Tourpaq.
This cascade removes the related data from the EarlyBookingDepositInvoiceLine table.
The behavior is not linked to the autobilling process or the invoice’s status — it is handled entirely within the Tourpaq system logic.
Steps to Reproduce
Search for an Early Booking Deposit Invoice.\

Download the invoice and confirm that the Early Booking Discount information is present.\

Navigate to the corresponding hotel rule used to generate that invoice.\

Delete the rule and confirm it has been successfully removed.\


Download the same invoice again.

The information will no longer be available.
Note: Be aware that even though the invoice data is deleted, the sum of the invoice remains. This is expected behavior.
Expected Behavior Deleting a rule removes its related invoice data to maintain data consistency.\
Last updated
Was this helpful?

