2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

fix: start index value

- fix wording
This commit is contained in:
18alantom 2023-06-30 14:37:40 +05:30
parent 826a72e1e5
commit b534c12280
3 changed files with 9 additions and 6 deletions

View File

@ -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>
@ -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>
@ -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>
@ -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>

View File

@ -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() {

View File

@ -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?`,
];