Move billing policy to booking level with override modes and audit logs
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s

This commit is contained in:
androidlover5842
2026-02-02 10:43:47 +05:30
parent 776ed6dc4e
commit 8ba0fedd8b
10 changed files with 270 additions and 12 deletions

View File

@@ -44,8 +44,9 @@ class BookingBalances(
val expected = computeExpectedPay(
roomStayRepo.findByBookingId(bookingId),
booking.property.timezone,
booking.property.billingCheckinTime,
booking.property.billingCheckoutTime
booking.billingMode,
booking.billingCheckinTime,
booking.billingCheckoutTime
)
val charges = chargeRepo.sumAmountByBookingId(bookingId)
val collected = paymentRepo.sumAmountByBookingId(bookingId)