feat(occupancies): inherit rentalType and tenantId on room transfer

This commit is contained in:
2026-07-06 18:00:35 +08:00
parent 38f6e18cca
commit bdd2f53b1a

View File

@@ -163,6 +163,8 @@ export class OccupanciesService {
roomId: dto.newRoomId,
checkInDate: dto.transferDate,
billingStartDate: dto.newBillingStartDate || defaultBillingStart,
rentalType: oldOcc.rentalType,
tenantId: oldOcc.tenantId,
notes: `${oldOcc.roomId}号房换入`,
});
await runner.manager.save(newOcc);