Skip to content

Commit

Permalink
Merge pull request #1472 from OpenSignLabs/uncompatible_pdf
Browse files Browse the repository at this point in the history
feat: add column for expiry date in in-progress and expired report
  • Loading branch information
prafull-opensignlabs authored Nov 19, 2024
2 parents 9b472a6 + cb07e37 commit 44ef1fe
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
3 changes: 2 additions & 1 deletion apps/OpenSign/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@
"Status": "Status",
"created-date": "Created Date",
"Type": "Type",
"Logs": "Logs"
"Logs": "Logs",
"Expiry-date": "Expiry Date"
},
"report-help": {
"Draft Documents": "These are documents you have started but have not finalized for sending.",
Expand Down
3 changes: 2 additions & 1 deletion apps/OpenSign/public/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@
"Status": "Estado",
"created-date": "Fecha de creación",
"Type": "Tipo",
"Logs": "Registros"
"Logs": "Registros",
"Expiry-date": "Date d'expiration"
},
"report-help": {
"Draft Documents": "Estos son documentos que has iniciado pero no has finalizado para su envío.",
Expand Down
3 changes: 2 additions & 1 deletion apps/OpenSign/public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@
"Status": "Statut",
"created-date": "Date de création",
"Type": "Saisir",
"Logs": "Journaux"
"Logs": "Journaux",
"Expiry-date": "Fecha de caducidad"
},
"btnLabel": {
"sign": "Signer",
Expand Down
7 changes: 4 additions & 3 deletions apps/OpenSign/src/json/ReportJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default function reportJson(id) {
"Folder",
"File",
"Status",
"Signers"
"Signers",
"Expiry-date"
];
const contactbook = ["Sr.No", "Name", "Email", "Phone"];
const dashboardReportHead = ["Title", "File", "Owner", "Signers"];
Expand Down Expand Up @@ -211,7 +212,7 @@ export default function reportJson(id) {
case "zNqBHXHsYH":
return {
reportName: "Expired Documents",
heading: head,
heading: [...head, "Expiry-date"],
actions: [
{
btnId: "1898",
Expand All @@ -237,7 +238,7 @@ export default function reportJson(id) {
case "d9k3UfYHBc":
return {
reportName: "Recently sent for signatures",
heading: dashboardReportHead,
heading: [...dashboardReportHead, "Expiry-date"],
actions: [
{
btnId: "1999",
Expand Down
10 changes: 10 additions & 0 deletions apps/OpenSign/src/primitives/GetReportDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,16 @@ const ReportTable = (props) => {
"-"
)}
</td>
{props.heading.includes("Expiry-date") &&
item?.ExpiryDate?.iso && (
<td className="px-4 py-2">
<span>
{new Date(
item?.ExpiryDate?.iso
)?.toLocaleDateString()}
</span>
</td>
)}
{props.ReportName === "Templates" &&
isEnableSubscription && (
<td className=" pl-[20px] py-2">
Expand Down
3 changes: 2 additions & 1 deletion apps/OpenSign/src/script/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@
"Status": "Status",
"created-date": "Created Date",
"Type": "Type",
"Logs": "Logs"
"Logs": "Logs",
"Expiry-date": "Expiry Date"
},
"report-help": {
"Draft Documents": "These are documents you have started but have not finalized for sending.",
Expand Down
3 changes: 2 additions & 1 deletion apps/OpenSign/src/script/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@
"Status": "Estado",
"created-date": "Fecha de creación",
"Type": "Tipo",
"Logs": "Registros"
"Logs": "Registros",
"Expiry-date": "Date d'expiration"
},
"report-help": {
"Draft Documents": "Estos son documentos que has iniciado pero no has finalizado para su envío.",
Expand Down
3 changes: 2 additions & 1 deletion apps/OpenSign/src/script/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@
"Status": "Statut",
"created-date": "Date de création",
"Type": "Saisir",
"Logs": "Journaux"
"Logs": "Journaux",
"Expiry-date": "Fecha de caducidad"
},
"btnLabel": {
"sign": "Signer",
Expand Down
1 change: 1 addition & 0 deletions apps/OpenSignServer/cloud/parsefunction/reportsJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export default function reportJson(id, userId) {
'Placeholders',
'SignedUrl',
'FileAdapterId',
'ExpiryDate',
],
};
// Recently sent for signatures report show on dashboard
Expand Down

0 comments on commit 44ef1fe

Please sign in to comment.