Skip to content

Commit

Permalink
Merge branch 'feature/contracts' of github.com:code4romania/teo into …
Browse files Browse the repository at this point in the history
…feature/contracts
  • Loading branch information
radulescuandrew committed Sep 20, 2024
2 parents d2cb41c + 584ba90 commit 12f0316
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export interface IAddDocumentContractDTO {
documentEndDate: Date;
volunteerId: string;
documentTemplateId: string;
status: 'CREATED';
}
1 change: 0 additions & 1 deletion frontend/src/common/interfaces/template.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { IOrganization } from './organization.interface';
import { IUser } from './user.interface';

export interface ITemplate {
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/components/contracts/ContractTemplatePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ export const ContractTemplatePreview = ({
getValues={getValues}
formErrors={formErrors}
/>
<Signatures />
<Signatures
organization={{
officialName: organization?.name || '',
registeredOffice: organization?.address || '',
CUI: organization?.cui || '',
legalRepresentativeName: organization?.legalReprezentativeFullName || '',
legalRepresentativeRole: organization?.legalReprezentativeRole || '',
}}
/>
</div>
);
};
2 changes: 0 additions & 2 deletions frontend/src/pages/GenerateContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ export const GenerateContract = () => {
documentDate: volunteersData[volunteer.id].documentDate,
documentStartDate: volunteersData[volunteer.id].documentPeriod[0],
documentEndDate: volunteersData[volunteer.id].documentPeriod[1],
// todo: delete
status: volunteer.id === '907e1016-2d76-45d5-b274-549ae5b3ca13' ? 'CREATED' : '', // TODO: change to status enum value
});
success.push(volunteer.id);
setSentContractsCount((prev) => prev + 1);
Expand Down

0 comments on commit 12f0316

Please sign in to comment.