From b534c122800b9b3fa87595dc07dc7632d24c6625 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Fri, 30 Jun 2023 14:37:40 +0530 Subject: [PATCH] fix: start index value - fix wording --- src/pages/DatabaseSelector.vue | 8 ++++---- src/pages/PrintView/ReportPrintView.vue | 5 ++++- src/utils/ui.ts | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/pages/DatabaseSelector.vue b/src/pages/DatabaseSelector.vue index ed574a112..c24cae17f 100644 --- a/src/pages/DatabaseSelector.vue +++ b/src/pages/DatabaseSelector.vue @@ -17,7 +17,7 @@

{{ - t`Create a new file or select an existing one from your computer` + t`Create a new company or select an existing one from your computer` }}

@@ -40,7 +40,7 @@ {{ t`New Company` }}

- {{ t`Create a new company and store it on your computer.` }} + {{ t`Create a new company and store it on your computer` }}

@@ -59,7 +59,7 @@ {{ t`Existing Company` }}

- {{ t`Load an existing company from your computer.` }} + {{ t`Load an existing company from your computer` }}

@@ -79,7 +79,7 @@ {{ t`Create Demo` }}

- {{ t`Create an instance with demo data to try out Frappe Books.` }} + {{ t`Create a demo company to try out Frappe Books` }}

diff --git a/src/pages/PrintView/ReportPrintView.vue b/src/pages/PrintView/ReportPrintView.vue index 6f0b290e6..76a9e6452 100644 --- a/src/pages/PrintView/ReportPrintView.vue +++ b/src/pages/PrintView/ReportPrintView.vue @@ -204,7 +204,7 @@ export default defineComponent({ .filter((_, i) => this.columnSelection[i]); const matrix: { value: string; idx: number }[][] = [columns]; - const start = Math.max(this.start - 1, 1); + const start = Math.max(this.start - 1, 0); const end = Math.min(start + this.limit, this.report.reportData.length); const slice = this.report.reportData.slice(start, end); @@ -252,6 +252,9 @@ export default defineComponent({ this.limit = this.report.reportData.length; this.columnSelection = this.report.columns.map(() => true); this.setScale(); + + // @ts-ignore + window.rpv = this; }, methods: { setScale() { diff --git a/src/utils/ui.ts b/src/utils/ui.ts index 1b068f927..6b6087da2 100644 --- a/src/utils/ui.ts +++ b/src/utils/ui.ts @@ -611,7 +611,7 @@ async function showInsufficientInventoryDialog(doc: SalesInvoice) { .map(({ item, quantity }) => `${item} (${quantity})`) .join(', '); const detail = [ - t`The following items have insufficient quantities to create a Shipment: ${list}`, + t`The following items have insufficient quantity for Shipment: ${list}`, t`Continue submitting Sales Invoice?`, ];