From 5827002154670606f3454d28a9eb77776fab3e6c Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Thu, 20 Apr 2023 09:50:25 +0100 Subject: [PATCH] fixed reasons in complaints --- src/components/ComplaintInfo.vue | 2 +- src/views/complaints/ComplaintsList.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ComplaintInfo.vue b/src/components/ComplaintInfo.vue index f64de7a..068795f 100644 --- a/src/components/ComplaintInfo.vue +++ b/src/components/ComplaintInfo.vue @@ -10,7 +10,7 @@ {{ formatDate(complaint.complaint_date,"DD/MM/YYYY") }} - Reason: {{ complaint.reason }}
+ Reason: {{ complaint.reason.reason }}
Driver: {{ complaint.driver.name }}
Delivery Date {{ formatDate(complaint.delivery_date,"DD/MM/YYYY") }}
Order : {{ complaint.sop.doc_no }}
diff --git a/src/views/complaints/ComplaintsList.vue b/src/views/complaints/ComplaintsList.vue index 59db244..db46af5 100644 --- a/src/views/complaints/ComplaintsList.vue +++ b/src/views/complaints/ComplaintsList.vue @@ -40,7 +40,7 @@ {{ item.customer.acc_no }} - {{ item.customer.name }}
- Reason : {{ item.reason }}
+ Reason : {{ item.reason.reason }}
Driver : {{ item.driver.name }}
@@ -105,7 +105,7 @@ export default { q.customer.name.toLowerCase().includes(query) || q.customer.acc_no.includes(query) || q.id == query || - q.reason.toLowerCase().includes(query) + q.reason.reason.toLowerCase().includes(query) ) if (this.showActive) { clist = clist.filter(q =>