forked from wangziqi/gongxue-base
feat(occupancies): inherit rentalType and tenantId on room transfer
This commit is contained in:
@@ -163,6 +163,8 @@ export class OccupanciesService {
|
|||||||
roomId: dto.newRoomId,
|
roomId: dto.newRoomId,
|
||||||
checkInDate: dto.transferDate,
|
checkInDate: dto.transferDate,
|
||||||
billingStartDate: dto.newBillingStartDate || defaultBillingStart,
|
billingStartDate: dto.newBillingStartDate || defaultBillingStart,
|
||||||
|
rentalType: oldOcc.rentalType,
|
||||||
|
tenantId: oldOcc.tenantId,
|
||||||
notes: `从${oldOcc.roomId}号房换入`,
|
notes: `从${oldOcc.roomId}号房换入`,
|
||||||
});
|
});
|
||||||
await runner.manager.save(newOcc);
|
await runner.manager.save(newOcc);
|
||||||
|
|||||||
Reference in New Issue
Block a user