Done ticket GEPAFINBE-167

This commit is contained in:
rajesh
2025-02-25 11:57:30 +05:30
parent 555a5d777a
commit fac0c3e2ec
35 changed files with 1573 additions and 13 deletions

View File

@@ -2418,4 +2418,102 @@
<modifyDataType tableName="call" columnName="product_id" newDataType="INTEGER"/>
</changeSet>
<changeSet id="24-02-2025_RK_192024" author="Rajesh Khore">
<createTable tableName="category">
<column name="id" type="INTEGER" autoIncrement="true">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="CATEGORY_NAME" type="VARCHAR(255)"/>
<column name="DESCRIPTION" type="TEXT"/>
<column name="IS_DELETED" type="BOOLEAN" defaultValue="false"/>
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="true"/>
</column>
</createTable>
</changeSet>
<changeSet id="24-02-2025_RK_190220" author="Rajesh Khore">
<createTable tableName="company_document">
<column name="id" type="INTEGER" autoIncrement="true">
<constraints primaryKey="true" primaryKeyName="company_document_pkey" nullable="false"/>
</column>
<column name="file_name" type="VARCHAR(255)"/>
<column name="file_path" type="TEXT"/>
<column name="type" type="VARCHAR(255)"/>
<column name="is_deleted" type="BOOLEAN" defaultValueBoolean="false"/>
<column name="uploaded_by" type="INTEGER"/>
<column name="expiration_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="status" type="VARCHAR(255)"/>
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="true"/>
</column>
<column name="USER_WITH_COMPANY_ID" type="INTEGER">
<constraints foreignKeyName="fk_USER_WITH_COMPANY_COMPANY_DOCUMENT" references="user_with_company(id)" nullable="false"/>
</column>
<column name="COMPANY_ID" type="INTEGER">
<constraints nullable="true" foreignKeyName="fk_COMPANY_COMPANY_DOCUMENT" references="company(id)"/>
</column>
<column name="CATEGORY_ID" type="INTEGER">
<constraints nullable="true" foreignKeyName="fk_CATEGORY_COMPANY_DOCUMENT" references="category(id)"/>
</column>
</createTable>
</changeSet>
<changeSet id="24-02-2025_RK_020220" author="Rajesh Khore">
<insert tableName="s3_path_configuration">
<column name="type" value="COMPANY_DOCUMENT"/>
<column name="path" value="company/{company_id}"/>
<column name="bucket_name" value="mementoresources"/>
<column name="created_date" value="2025-02-20 03:00:00"/>
<column name="updated_date" value="2025-02-20 03:00:00"/>
<column name="parent_folder" value="gepafin/local"/>
</insert>
<insert tableName="s3_path_configuration">
<column name="type" value="DELETED_PERSONAL_DOCUMENT"/>
<column name="path" value="company/{company_id}/deleted"/>
<column name="bucket_name" value="mementoresources"/>
<column name="created_date" value="2025-02-20 03:00:00"/>
<column name="updated_date" value="2025-02-20 03:00:00"/>
<column name="parent_folder" value="gepafin/local"/>
</insert>
<insert tableName="s3_path_configuration">
<column name="type" value="PERSONAL_DOCUMENT"/>
<column name="path" value="company/{company_id}"/>
<column name="bucket_name" value="mementoresources"/>
<column name="created_date" value="2025-02-20 03:00:00"/>
<column name="updated_date" value="2025-02-20 03:00:00"/>
<column name="parent_folder" value="gepafin/local"/>
</insert>
<insert tableName="s3_path_configuration">
<column name="type" value="DELETED_COMPANY_DOCUMENT"/>
<column name="path" value="company/{company_id}/deleted"/>
<column name="bucket_name" value="mementoresources"/>
<column name="created_date" value="2025-02-20 03:00:00"/>
<column name="updated_date" value="2025-02-20 03:00:00"/>
<column name="parent_folder" value="gepafin/local"/>
</insert>
</changeSet>
<changeSet id="24-02-2025_RK_125215" author="Rajesh Khore">
<sqlFile dbms="postgresql"
path="db/dump/updated_expiration_scheduler_data_24_02_2025.sql"/>
</changeSet>
<changeSet id="24-02-2025_RK_125145" author="Rajesh Khore">
<sqlFile dbms="postgresql"
path="db/dump/updated_json_template_for_notification_24_02_2025.sql"/>
</changeSet>
</databaseChangeLog>

View File

@@ -0,0 +1,3 @@
INSERT INTO expiration_config (interval_days, type, created_date, updated_date)
VALUES
(7, 'COMPANY_DOCUMENT', '2025-02-24T11:00:51', '2025-02-24T11:00:51');

View File

@@ -0,0 +1,2 @@
INSERT INTO notification_type (notification_name,title, json_template,created_date,updated_date,is_deleted) VALUES
('COMPANY_DOCUMENT_EXPIRATION_REMINDER','Il documento sta per scadere','Il documento "{{file_name}}" per lazienda "{{company_name}}" scadrà il {{expiration_date}}. Assicurati di rinnovarlo o sostituirlo prima della scadenza.','2025-02-24T10:16:26.472Z','2025-02-24T10:16:26.472Z','false');

View File

@@ -371,4 +371,17 @@ validation.required.requested.amount=The Requested Amount configuration should b
company.id.not.null=Company ID cannot be null.
formula.amount.not.matches.requested.amount= The {0} does not matches to calculated amount.
document.category.update.success = Document Category updated successfully.
document.category.delete.success = Document Category deleted successfully.
document.category.get.success = Document Category fetched successfully.
document.category.success = Document Category created successfully.
document.category.not.found = Document Category not found.
error.moving.file.to.deleted.folder = Error occurred while moving company file to deleted folder.
company.document.fetched.successfully = Company Document fetched successfully.
company.document.updated.successfully = Company Document Updated successfully.
category.cannot.be.deleted = Category cannot be deleted as it is associated with company documents.
company.document.copied.successfully = Company Document Copied successfully.
invalid.expiration.date = Invalid Expiration Date

View File

@@ -362,4 +362,17 @@ validation.required.requested.amount=La configurazione dell'importo richiesto
company.id.not.null=L'ID dell'azienda non pu? essere nullo.
formula.amount.not.matches.requested.amount=Il {0} non corrisponde all'importo calcolato.
document.category.update.success = Categoria documento aggiornata correttamente.
document.category.delete.success = Categoria documento eliminata correttamente.
document.category.not.found = Categoria documento non trovata.
document.category.get.success = Categoria del documento recuperata correttamente.
document.category.success =Categoria documento creata correttamente.
company.document.copied.successfully = Documento aziendale copiato correttamente.
error.moving.file.to.deleted.folder = Si è verificato un errore durante lo spostamento del file aziendale nella cartella eliminata.ss
company.document.fetched.successfully = Documento aziendale recuperato con successo.
company.document.updated.successfully = Documento aziendale aggiornato con successo.
category.cannot.be.deleted = La categoria non può essere eliminata perché è associata a documenti aziendali.
invalid.expiration.date = Data di scadenza non valida