From 40d889ae73ced0b0ff0729da2a92b87bbe3b15de Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 13 Jun 2023 09:00:50 +0530 Subject: [PATCH] chore: type Report.vue - add print button --- reports/index.ts | 2 +- src/pages/Report.vue | 39 ++++++++++++++++++++++++++++----------- src/utils/search.ts | 3 ++- 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/reports/index.ts b/reports/index.ts index ba3b1926..89beb6b9 100644 --- a/reports/index.ts +++ b/reports/index.ts @@ -17,4 +17,4 @@ export const reports = { GSTR2, StockLedger, StockBalance, -} as Record; +} as const; diff --git a/src/pages/Report.vue b/src/pages/Report.vue index 608bda2b..2f85023e 100644 --- a/src/pages/Report.vue +++ b/src/pages/Report.vue @@ -11,6 +11,9 @@ > {{ group.group }} + @@ -28,7 +31,7 @@ :df="field" :value="report.get(field.fieldname)" :read-only="loading" - @change="async (value) => await report.set(field.fieldname, value)" + @change="async (value) => await report?.set(field.fieldname, value)" /> @@ -36,10 +39,12 @@ -