From 1cd721233f77f8eb71ed83452b36a4d2182767df Mon Sep 17 00:00:00 2001 From: nikola-rados Date: Wed, 5 Jul 2023 12:40:55 -0700 Subject: [PATCH] SCV 399 - use granted dates for orders and sort docs by dates --- web/src/components/civil/CivilCaseDetails.vue | 6 +++++- web/src/components/civil/CivilDocumentsView.vue | 13 +++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/web/src/components/civil/CivilCaseDetails.vue b/web/src/components/civil/CivilCaseDetails.vue index 4c34e77f..d5452586 100644 --- a/web/src/components/civil/CivilCaseDetails.vue +++ b/web/src/components/civil/CivilCaseDetails.vue @@ -500,7 +500,11 @@ export default class CivilCaseDetails extends Vue { } docInfo.documentId = jDoc.civilDocumentId; docInfo.pdfAvail = jDoc.imageId ? true : false; - docInfo.dateFiled = jDoc.filedDt ? jDoc.filedDt.split(" ")[0] : ""; + if (docInfo.documentType.toUpperCase() == "ORDER") { + docInfo.dateFiled = jDoc.DateGranted ? jDoc.DateGranted.split(" ")[0] : ""; + } else { + docInfo.dateFiled = jDoc.filedDt ? jDoc.filedDt.split(" ")[0] : ""; + } docInfo.issues = []; if (jDoc.issue && jDoc.issue.length > 0) { for (const issue of jDoc.issue) { diff --git a/web/src/components/civil/CivilDocumentsView.vue b/web/src/components/civil/CivilDocumentsView.vue index 384f15bb..1247ff00 100644 --- a/web/src/components/civil/CivilDocumentsView.vue +++ b/web/src/components/civil/CivilDocumentsView.vue @@ -305,7 +305,13 @@ export default class CivilDocumentsView extends Vue { tdClass: "border-top", thClass: "", }, - { key: "seq", label: "Seq.", sortable: true, headerStyle: "text-primary", cellStyle: "font-size: 14px;" }, + { + key: "seq", + label: "Seq.", + sortable: true, + headerStyle: "text-primary", + cellStyle: "font-size: 14px;" + }, { key: "documentType", label: "Document Type", @@ -726,9 +732,12 @@ export default class CivilDocumentsView extends Vue { if (this.activetab == "COURT SUMMARY") { this.sortDesc = true; return "appearanceDate"; - } else { + } else if (this.activetab == "ORDERS") { this.sortDesc = false; return "seq"; + } else { + this.sortDesc = true; + return "dateFiled" } }