feat(rental): add inventory and condition reports (#7)
This commit is contained in:
1 parent
92d8a3e351
commit
e4be5cd05f
193 files changed
+9697
-483
No files matched your search
@@ -20,6 +20,8 @@ describe('LeaseFinalizationPage', () => {
|
||||
sha256: 'sha256',
|
||||
generatedAt: '2026-07-19T10:00:00Z',
|
||||
authorId: 'owner-1',
|
||||
furnitureInventory: { templateVersion: 'FR-MEUBLE-2025-01', lines: [] },
|
||||
privateAreas: [],
|
||||
annexes: [],
|
||||
warningCodes: [],
|
||||
warnings: [],
|
||||
@@ -30,6 +32,7 @@ describe('LeaseFinalizationPage', () => {
|
||||
warningCodes: ['SECURITY_DEPOSIT_ABOVE_TWO_MONTHS'],
|
||||
warnings: [{ code: 'SECURITY_DEPOSIT_ABOVE_TWO_MONTHS', ruleVersion: '2026-07-01' }],
|
||||
guaranteeRequirements: [],
|
||||
suggestedInventoryCorrections: [],
|
||||
finalization: null,
|
||||
};
|
||||
const finalization: FinalizationMetadata = {
|
||||
@@ -41,6 +44,9 @@ describe('LeaseFinalizationPage', () => {
|
||||
authorId: 'owner-1',
|
||||
finalizedAt: '2026-07-19T10:30:00Z',
|
||||
overrides: [],
|
||||
entryInventoryDiscrepancies: false,
|
||||
inventoryCorrections: [],
|
||||
allInventoryCorrectionsInitialed: false,
|
||||
};
|
||||
const lease = {
|
||||
id: 'lease-1',
|
||||
@@ -129,6 +135,9 @@ describe('LeaseFinalizationPage', () => {
|
||||
allPartiesSigned: true,
|
||||
revisionMatches: true,
|
||||
confirmedWarningCodes: ['SECURITY_DEPOSIT_ABOVE_TWO_MONTHS'],
|
||||
entryInventoryDiscrepancies: false,
|
||||
inventoryCorrections: [],
|
||||
allInventoryCorrectionsInitialed: false,
|
||||
};
|
||||
|
||||
fixture.componentInstance.requestFinalization(request);
|
||||
@@ -168,6 +177,9 @@ describe('LeaseFinalizationPage', () => {
|
||||
allPartiesSigned: true,
|
||||
revisionMatches: true,
|
||||
confirmedWarningCodes: ['SECURITY_DEPOSIT_ABOVE_TWO_MONTHS'],
|
||||
entryInventoryDiscrepancies: false,
|
||||
inventoryCorrections: [],
|
||||
allInventoryCorrectionsInitialed: false,
|
||||
};
|
||||
|
||||
fixture.componentInstance.requestFinalization(request);
|
||||
|
||||
Reference in new issue
Block a user