Skip to content

Commit

Permalink
fix: start index value
Browse files Browse the repository at this point in the history
- fix wording
  • Loading branch information
18alantom committed Jun 30, 2023
1 parent 826a72e commit b534c12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/pages/DatabaseSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</h1>
<p class="text-gray-600 text-base select-none">
{{
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`
}}
</p>
</div>
Expand All @@ -40,7 +40,7 @@
{{ t`New Company` }}
</p>
<p class="text-sm text-gray-600">
{{ t`Create a new company and store it on your computer.` }}
{{ t`Create a new company and store it on your computer` }}
</p>
</div>
</div>
Expand All @@ -59,7 +59,7 @@
{{ t`Existing Company` }}
</p>
<p class="text-sm text-gray-600">
{{ t`Load an existing company from your computer.` }}
{{ t`Load an existing company from your computer` }}
</p>
</div>
</div>
Expand All @@ -79,7 +79,7 @@
{{ t`Create Demo` }}
</p>
<p class="text-sm text-gray-600">
{{ t`Create an instance with demo data to try out Frappe Books.` }}
{{ t`Create a demo company to try out Frappe Books` }}
</p>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/pages/PrintView/ReportPrintView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?`,
];

Expand Down

0 comments on commit b534c12

Please sign in to comment.