Add property billing policy times and policy-based night calculation
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s

This commit is contained in:
androidlover5842
2026-02-02 10:17:00 +05:30
parent 734591807f
commit 776ed6dc4e
7 changed files with 270 additions and 28 deletions

View File

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