mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
refactor: convert template instances of t(' → t`
This commit is contained in:
parent
5ffaa39ff6
commit
53ce50bb1e
@ -5,7 +5,7 @@
|
|||||||
<f-button
|
<f-button
|
||||||
primary
|
primary
|
||||||
@click="$emit('makePDF', $refs.printComponent.innerHTML)"
|
@click="$emit('makePDF', $refs.printComponent.innerHTML)"
|
||||||
>{{ t('PDF') }}</f-button
|
>{{ t`PDF` }}</f-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="py-4" v-if="pendingInvoices.length">
|
<div class="py-4" v-if="pendingInvoices.length">
|
||||||
<div class="px-4 text-sm text-gray-600 mb-1">
|
<div class="px-4 text-sm text-gray-600 mb-1">
|
||||||
{{ t('Recent Invoices') }}
|
{{ t`Recent Invoices` }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="px-4 py-3 border-b hover:bg-gray-100 cursor-pointer"
|
class="px-4 py-3 border-b hover:bg-gray-100 cursor-pointer"
|
||||||
|
@ -6,15 +6,15 @@
|
|||||||
<f-button
|
<f-button
|
||||||
primary
|
primary
|
||||||
@click="$emit('send', $refs.printComponent.innerHTML)"
|
@click="$emit('send', $refs.printComponent.innerHTML)"
|
||||||
>{{ t('Send') }}</f-button
|
>{{ t`Send` }}</f-button
|
||||||
>
|
>
|
||||||
<f-button secondary @click="toggleCustomizer">{{
|
<f-button secondary @click="toggleCustomizer">{{
|
||||||
t('Customize')
|
t`Customize`
|
||||||
}}</f-button>
|
}}</f-button>
|
||||||
<f-button
|
<f-button
|
||||||
secondary
|
secondary
|
||||||
@click="$emit('makePDF', $refs.printComponent.innerHTML)"
|
@click="$emit('makePDF', $refs.printComponent.innerHTML)"
|
||||||
>{{ t('PDF') }}</f-button
|
>{{ t`PDF` }}</f-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-1/2">
|
<div class="w-1/2">
|
||||||
<div class="flex pl-2 justify-between py-3 border-b">
|
<div class="flex pl-2 justify-between py-3 border-b">
|
||||||
<div>{{ t('Subtotal') }}</div>
|
<div>{{ t`Subtotal` }}</div>
|
||||||
<div>{{ frappe.format(doc.netTotal, 'Currency') }}</div>
|
<div>{{ frappe.format(doc.netTotal, 'Currency') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -110,7 +110,7 @@
|
|||||||
<div
|
<div
|
||||||
class="flex pl-2 justify-between py-3 border-t text-green-600 font-semibold text-base"
|
class="flex pl-2 justify-between py-3 border-t text-green-600 font-semibold text-base"
|
||||||
>
|
>
|
||||||
<div>{{ t('Grand Total') }}</div>
|
<div>{{ t`Grand Total` }}</div>
|
||||||
<div>{{ frappe.format(doc.grandTotal, 'Currency') }}</div>
|
<div>{{ frappe.format(doc.grandTotal, 'Currency') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
<div class="flex -mx-3">
|
<div class="flex -mx-3">
|
||||||
<div class="flex justify-end flex-1 p-3 bg-gray-100">
|
<div class="flex justify-end flex-1 p-3 bg-gray-100">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<div class="text-gray-800">{{ t('Subtotal') }}</div>
|
<div class="text-gray-800">{{ t`Subtotal` }}</div>
|
||||||
<div class="text-xl mt-2">
|
<div class="text-xl mt-2">
|
||||||
{{ frappe.format(doc.netTotal, 'Currency') }}
|
{{ frappe.format(doc.netTotal, 'Currency') }}
|
||||||
</div>
|
</div>
|
||||||
@ -105,7 +105,7 @@
|
|||||||
:style="{ backgroundColor: printSettings.color }"
|
:style="{ backgroundColor: printSettings.color }"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<div>{{ t('Grand Total') }}</div>
|
<div>{{ t`Grand Total` }}</div>
|
||||||
<div class="text-2xl mt-2 font-semibold">
|
<div class="text-2xl mt-2 font-semibold">
|
||||||
{{ frappe.format(doc.grandTotal, 'Currency') }}
|
{{ frappe.format(doc.grandTotal, 'Currency') }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-1/2 text-lg">
|
<div class="w-1/2 text-lg">
|
||||||
<div class="flex pl-2 justify-between py-1">
|
<div class="flex pl-2 justify-between py-1">
|
||||||
<div>{{ t('Subtotal') }}</div>
|
<div>{{ t`Subtotal` }}</div>
|
||||||
<div>{{ frappe.format(doc.netTotal, 'Currency') }}</div>
|
<div>{{ frappe.format(doc.netTotal, 'Currency') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -118,7 +118,7 @@
|
|||||||
class="flex pl-2 justify-between py-1 font-semibold"
|
class="flex pl-2 justify-between py-1 font-semibold"
|
||||||
:style="{ color: printSettings.color }"
|
:style="{ color: printSettings.color }"
|
||||||
>
|
>
|
||||||
<div>{{ t('Grand Total') }}</div>
|
<div>{{ t`Grand Total` }}</div>
|
||||||
<div>{{ frappe.format(doc.grandTotal, 'Currency') }}</div>
|
<div>{{ frappe.format(doc.grandTotal, 'Currency') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
@click="$router.back()"
|
@click="$router.back()"
|
||||||
>
|
>
|
||||||
<feather-icon name="chevron-left" class="w-5 h-5" />
|
<feather-icon name="chevron-left" class="w-5 h-5" />
|
||||||
<span class="ml-1">{{ t('Back') }}</span>
|
<span class="ml-1">{{ t`Back` }}</span>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
v-show="showEdit"
|
v-show="showEdit"
|
||||||
class="absolute bottom-0 text-gray-500 text-center text-xs pt-3 pb-1"
|
class="absolute bottom-0 text-gray-500 text-center text-xs pt-3 pb-1"
|
||||||
>
|
>
|
||||||
{{ t('Edit') }}
|
{{ t`Edit` }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
<div class="mt-3 w-28">
|
<div class="mt-3 w-28">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
:placeholder="t('Custom Hex')"
|
:placeholder="t`Custom Hex`"
|
||||||
:class="inputClasses"
|
:class="inputClasses"
|
||||||
:value="value"
|
:value="value"
|
||||||
@change="(e) => setColorValue(e.target.value)"
|
@change="(e) => setColorValue(e.target.value)"
|
||||||
|
@ -67,11 +67,10 @@ export default {
|
|||||||
value: 'Create',
|
value: 'Create',
|
||||||
action: () => this.openNewDoc(),
|
action: () => this.openNewDoc(),
|
||||||
component: markRaw({
|
component: markRaw({
|
||||||
template: `
|
template:
|
||||||
<div class="flex items-center font-semibold">{{ t('Create') }}
|
'<div class="flex items-center font-semibold">{{ t`Create` }}' +
|
||||||
<Badge color="blue" class="ml-2" v-if="isNewValue">{{ linkValue }}</Badge>
|
'<Badge color="blue" class="ml-2" v-if="isNewValue">{{ linkValue }}</Badge>' +
|
||||||
</div>
|
'</div>',
|
||||||
`,
|
|
||||||
computed: {
|
computed: {
|
||||||
linkValue: () => this.linkValue,
|
linkValue: () => this.linkValue,
|
||||||
isNewValue: () => {
|
isNewValue: () => {
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
'px-3 py-4': size !== 'small',
|
'px-3 py-4': size !== 'small',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ t('Add Row') }}
|
{{ t`Add Row` }}
|
||||||
</div>
|
</div>
|
||||||
<div v-for="i in ratio.slice(3).length" :key="i"></div>
|
<div v-for="i in ratio.slice(3).length" :key="i"></div>
|
||||||
<div
|
<div
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<div class="bg-white rounded w-full min-w-40">
|
<div class="bg-white rounded w-full min-w-40">
|
||||||
<div class="p-1 max-h-64 overflow-auto text-sm">
|
<div class="p-1 max-h-64 overflow-auto text-sm">
|
||||||
<div v-if="isLoading" class="p-2 text-gray-600 italic">
|
<div v-if="isLoading" class="p-2 text-gray-600 italic">
|
||||||
{{ t('Loading...') }}
|
{{ t`Loading...` }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="!isLoading && dropdownItems.length === 0"
|
v-if="!isLoading && dropdownItems.length === 0"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{{ filterAppliedMessage }}
|
{{ filterAppliedMessage }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ t('Filter') }}
|
{{ t`Filter` }}
|
||||||
</template>
|
</template>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
@ -89,7 +89,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span class="text-base text-gray-600">{{
|
<span class="text-base text-gray-600">{{
|
||||||
t('No filters selected')
|
t`No filters selected`
|
||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
@ -108,7 +108,7 @@
|
|||||||
@click="addNewFilter"
|
@click="addNewFilter"
|
||||||
>
|
>
|
||||||
<feather-icon name="plus" class="w-4 h-4" />
|
<feather-icon name="plus" class="w-4 h-4" />
|
||||||
<span class="ml-2">{{ t('Add a filter') }}</span>
|
<span class="ml-2">{{ t`Add a filter` }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-6 text-right">
|
<div class="col-6 text-right">
|
||||||
<f-button secondary @click="saveAndClose">{{
|
<f-button secondary @click="saveAndClose">{{
|
||||||
t('Save & Close')
|
t`Save & Close`
|
||||||
}}</f-button>
|
}}</f-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<sketch-picker v-model="color" class="shadow-none" />
|
<sketch-picker v-model="color" class="shadow-none" />
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
<f-button secondary @click="openCompanySettings">{{
|
<f-button secondary @click="openCompanySettings">{{
|
||||||
t('Company Settings')
|
t`Company Settings`
|
||||||
}}</f-button>
|
}}</f-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,14 +25,14 @@
|
|||||||
/>
|
/>
|
||||||
<div class="flex px-4 pb-2">
|
<div class="flex px-4 pb-2">
|
||||||
<Button class="w-1/2 text-gray-900" @click="inlineEditField = null">
|
<Button class="w-1/2 text-gray-900" @click="inlineEditField = null">
|
||||||
{{ t('Cancel') }}
|
{{ t`Cancel` }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="ml-2 w-1/2 text-white"
|
class="ml-2 w-1/2 text-white"
|
||||||
@click="() => saveInlineEditDoc(df)"
|
@click="() => saveInlineEditDoc(df)"
|
||||||
>
|
>
|
||||||
{{ df.inlineSaveText || t('Save') }}
|
{{ df.inlineSaveText || t`Save` }}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<PageHeader>
|
<PageHeader>
|
||||||
<template #title>
|
<template #title>
|
||||||
<h1 class="text-2xl font-bold">
|
<h1 class="text-2xl font-bold">
|
||||||
{{ t('Chart of Accounts') }}
|
{{ t`Chart of Accounts` }}
|
||||||
</h1>
|
</h1>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
"
|
"
|
||||||
@click="addAccount(account, 'addingAccount')"
|
@click="addAccount(account, 'addingAccount')"
|
||||||
>
|
>
|
||||||
{{ t('Add Account') }}
|
{{ t`Add Account` }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="
|
class="
|
||||||
@ -61,7 +61,7 @@
|
|||||||
"
|
"
|
||||||
@click="addAccount(account, 'addingGroupAccount')"
|
@click="addAccount(account, 'addingGroupAccount')"
|
||||||
>
|
>
|
||||||
{{ t('Add Group') }}
|
{{ t`Add Group` }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -93,7 +93,7 @@
|
|||||||
<input
|
<input
|
||||||
class="focus:outline-none bg-transparent"
|
class="focus:outline-none bg-transparent"
|
||||||
:class="{ 'text-gray-600': insertingAccount }"
|
:class="{ 'text-gray-600': insertingAccount }"
|
||||||
:placeholder="t('New Account')"
|
:placeholder="t`New Account`"
|
||||||
:ref="account.name"
|
:ref="account.name"
|
||||||
@keydown.esc="cancelAddingAccount(account)"
|
@keydown.esc="cancelAddingAccount(account)"
|
||||||
@keydown.enter="
|
@keydown.enter="
|
||||||
@ -117,7 +117,7 @@
|
|||||||
"
|
"
|
||||||
@click="cancelAddingAccount(account)"
|
@click="cancelAddingAccount(account)"
|
||||||
>
|
>
|
||||||
{{ t('Cancel') }}
|
{{ t`Cancel` }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
<div class="mx-4">
|
<div class="mx-4">
|
||||||
<template v-if="hasData">
|
<template v-if="hasData">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div class="font-medium">{{ t('Cashflow') }}</div>
|
<div class="font-medium">{{ t`Cashflow` }}</div>
|
||||||
<div class="flex text-base">
|
<div class="flex text-base">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<span class="w-3 h-3 rounded-sm inline-block bg-blue-500"></span>
|
<span class="w-3 h-3 rounded-sm inline-block bg-blue-500"></span>
|
||||||
<span class="ml-2 text-gray-900">{{ t('Inflow') }}</span>
|
<span class="ml-2 text-gray-900">{{ t`Inflow` }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center ml-6">
|
<div class="flex items-center ml-6">
|
||||||
<span class="w-3 h-3 rounded-sm inline-block bg-gray-500"></span>
|
<span class="w-3 h-3 rounded-sm inline-block bg-gray-500"></span>
|
||||||
<span class="ml-2 text-gray-900">{{ t('Outflow') }}</span>
|
<span class="ml-2 text-gray-900">{{ t`Outflow` }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<PeriodSelector
|
<PeriodSelector
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</defs>
|
</defs>
|
||||||
<g fill="none" fill-rule="evenodd">
|
<g fill="none" fill-rule="evenodd">
|
||||||
<text fill="#112B42" class="font-medium">
|
<text fill="#112B42" class="font-medium">
|
||||||
<tspan y="16">{{ t('Cashflow') }}</tspan>
|
<tspan y="16">{{ t`Cashflow` }}</tspan>
|
||||||
</text>
|
</text>
|
||||||
<g fill="#E9E9ED">
|
<g fill="#E9E9ED">
|
||||||
<path d="M371 2h12v12h-12zM391 2h53v12h-53z" />
|
<path d="M371 2h12v12h-12zM391 2h53v12h-53z" />
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<PageHeader>
|
<PageHeader>
|
||||||
<template #title>
|
<template #title>
|
||||||
<h1 class="text-2xl font-bold">{{ t('Dashboard') }}</h1>
|
<h1 class="text-2xl font-bold">{{ t`Dashboard` }}</h1>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<SearchBar class="ml-2" />
|
<SearchBar class="ml-2" />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col h-full">
|
<div class="flex flex-col h-full">
|
||||||
<SectionHeader>
|
<SectionHeader>
|
||||||
<template #title>{{ t('Top Expenses') }}</template>
|
<template #title>{{ t`Top Expenses` }}</template>
|
||||||
<template #action>
|
<template #action>
|
||||||
<PeriodSelector :value="period" @change="(value) => (period = value)" />
|
<PeriodSelector :value="period" @change="(value) => (period = value)" />
|
||||||
</template>
|
</template>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
:thickness="11.5"
|
:thickness="11.5"
|
||||||
:text-offset-x="6.5"
|
:text-offset-x="6.5"
|
||||||
:value-formatter="(value) => frappe.format(value, 'Currency')"
|
:value-formatter="(value) => frappe.format(value, 'Currency')"
|
||||||
:total-label="t('Total Spending')"
|
:total-label="t`Total Spending`"
|
||||||
@change="(value) => (active = value)"
|
@change="(value) => (active = value)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
class="flex-1 w-full h-full flex-center my-20"
|
class="flex-1 w-full h-full flex-center my-20"
|
||||||
>
|
>
|
||||||
<span class="text-base text-gray-600">
|
<span class="text-base text-gray-600">
|
||||||
{{ t('No expenses in this period') }}
|
{{ t`No expenses in this period` }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col h-full">
|
<div class="flex flex-col h-full">
|
||||||
<SectionHeader>
|
<SectionHeader>
|
||||||
<template #title>{{ t('Profit and Loss') }}</template>
|
<template #title>{{ t`Profit and Loss` }}</template>
|
||||||
<template #action>
|
<template #action>
|
||||||
<PeriodSelector
|
<PeriodSelector
|
||||||
:value="period"
|
:value="period"
|
||||||
@ -22,7 +22,7 @@
|
|||||||
/>
|
/>
|
||||||
<div class="flex-1 w-full h-full flex-center my-20" v-else>
|
<div class="flex-1 w-full h-full flex-center my-20" v-else>
|
||||||
<span class="text-base text-gray-600">
|
<span class="text-base text-gray-600">
|
||||||
{{ t('No transactions yet') }}
|
{{ t`No transactions yet` }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
>
|
>
|
||||||
{{ frappe.format(invoice.paid, 'Currency') }}
|
{{ frappe.format(invoice.paid, 'Currency') }}
|
||||||
<span :class="{ 'text-gray-900': invoice.hasData }">{{
|
<span :class="{ 'text-gray-900': invoice.hasData }">{{
|
||||||
t('Paid')
|
t`Paid`
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -40,7 +40,7 @@
|
|||||||
>
|
>
|
||||||
{{ frappe.format(invoice.unpaid, 'Currency') }}
|
{{ frappe.format(invoice.unpaid, 'Currency') }}
|
||||||
<span :class="{ 'text-gray-900': invoice.hasData }">{{
|
<span :class="{ 'text-gray-900': invoice.hasData }">{{
|
||||||
t('Unpaid')
|
t`Unpaid`
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
<h4 class="pb-2">{{ t('Data Import') }}</h4>
|
<h4 class="pb-2">{{ t`Data Import` }}</h4>
|
||||||
<frappe-control
|
<frappe-control
|
||||||
:docfield="{
|
:docfield="{
|
||||||
fieldtype: 'Select',
|
fieldtype: 'Select',
|
||||||
|
@ -9,15 +9,15 @@
|
|||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<div class="px-12">
|
<div class="px-12">
|
||||||
<h1 class="text-2xl font-semibold">
|
<h1 class="text-2xl font-semibold">
|
||||||
{{ t('Welcome to Frappe Books') }}
|
{{ t`Welcome to Frappe Books` }}
|
||||||
</h1>
|
</h1>
|
||||||
<p class="text-gray-600 text-base" v-if="!showFiles">
|
<p class="text-gray-600 text-base" v-if="!showFiles">
|
||||||
{{
|
{{
|
||||||
t('Create a new file or select an existing one from your computer')
|
t`Create a new file or select an existing one from your computer`
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
<p class="text-gray-600 text-base" v-if="showFiles">
|
<p class="text-gray-600 text-base" v-if="showFiles">
|
||||||
{{ t('Select a file to load the company transactions') }}
|
{{ t`Select a file to load the company transactions` }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-12 mt-10 window-no-drag" v-if="!showFiles">
|
<div class="px-12 mt-10 window-no-drag" v-if="!showFiles">
|
||||||
@ -49,14 +49,14 @@
|
|||||||
<template
|
<template
|
||||||
v-if="loadingDatabase && fileSelectedFrom === 'New File'"
|
v-if="loadingDatabase && fileSelectedFrom === 'New File'"
|
||||||
>
|
>
|
||||||
{{ t('Loading...') }}
|
{{ t`Loading...` }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ t('New File') }}
|
{{ t`New File` }}
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2 text-sm text-gray-600 text-center">
|
<div class="mt-2 text-sm text-gray-600 text-center">
|
||||||
{{ t('Create a new file and store it in your computer.') }}
|
{{ t`Create a new file and store it in your computer.` }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -85,14 +85,14 @@
|
|||||||
<template
|
<template
|
||||||
v-if="loadingDatabase && fileSelectedFrom === 'Existing File'"
|
v-if="loadingDatabase && fileSelectedFrom === 'Existing File'"
|
||||||
>
|
>
|
||||||
{{ t('Loading...') }}
|
{{ t`Loading...` }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ t('Existing File') }}
|
{{ t`Existing File` }}
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2 text-sm text-gray-600 text-center">
|
<div class="mt-2 text-sm text-gray-600 text-center">
|
||||||
{{ t('Load an existing .db file from your computer.') }}
|
{{ t`Load an existing .db file from your computer.` }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -127,7 +127,7 @@
|
|||||||
<div class="flex items-baseline">
|
<div class="flex items-baseline">
|
||||||
<span>
|
<span>
|
||||||
<template v-if="loadingDatabase && fileSelectedFrom === file">
|
<template v-if="loadingDatabase && fileSelectedFrom === file">
|
||||||
{{ t('Loading...') }}
|
{{ t`Loading...` }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ file.companyName }}
|
{{ file.companyName }}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<PageHeader>
|
<PageHeader>
|
||||||
<template #title>
|
<template #title>
|
||||||
<h1 class="text-2xl font-bold">
|
<h1 class="text-2xl font-bold">
|
||||||
{{ t('Setup your workspace') }}
|
{{ t`Setup your workspace` }}
|
||||||
</h1>
|
</h1>
|
||||||
</template>
|
</template>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
@click="handleAction(item)"
|
@click="handleAction(item)"
|
||||||
>
|
>
|
||||||
<span class="text-base text-white">
|
<span class="text-base text-white">
|
||||||
{{ item.actionLabel || t('Setup') }}
|
{{ item.actionLabel || t`Setup` }}
|
||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
@ -71,7 +71,7 @@
|
|||||||
@click="handleDocumentation(item)"
|
@click="handleDocumentation(item)"
|
||||||
>
|
>
|
||||||
<span class="text-base">
|
<span class="text-base">
|
||||||
{{ t('Documentation') }}
|
{{ t`Documentation` }}
|
||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,14 +21,14 @@
|
|||||||
class="text-white text-xs ml-2"
|
class="text-white text-xs ml-2"
|
||||||
@click="onSaveClick"
|
@click="onSaveClick"
|
||||||
>
|
>
|
||||||
{{ t('Save') }}
|
{{ t`Save` }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
v-if="!doc._dirty && !doc._notInserted && !doc.submitted"
|
v-if="!doc._dirty && !doc._notInserted && !doc.submitted"
|
||||||
type="primary"
|
type="primary"
|
||||||
class="text-white text-xs ml-2"
|
class="text-white text-xs ml-2"
|
||||||
@click="onSubmitClick"
|
@click="onSubmitClick"
|
||||||
>{{ t('Submit') }}</Button
|
>{{ t`Submit` }}</Button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
@ -65,8 +65,8 @@
|
|||||||
{{
|
{{
|
||||||
doc._notInserted
|
doc._notInserted
|
||||||
? doc.doctype === 'SalesInvoice'
|
? doc.doctype === 'SalesInvoice'
|
||||||
? t('New Invoice')
|
? t`New Invoice`
|
||||||
: t('New Bill')
|
: t`New Bill`
|
||||||
: doc.name
|
: doc.name
|
||||||
}}
|
}}
|
||||||
</h1>
|
</h1>
|
||||||
@ -134,7 +134,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-64">
|
<div class="w-64">
|
||||||
<div class="flex pl-2 justify-between py-3 border-b">
|
<div class="flex pl-2 justify-between py-3 border-b">
|
||||||
<div>{{ t('Subtotal') }}</div>
|
<div>{{ t`Subtotal` }}</div>
|
||||||
<div>{{ formattedValue('netTotal') }}</div>
|
<div>{{ formattedValue('netTotal') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -164,7 +164,7 @@
|
|||||||
text-base
|
text-base
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div>{{ t('Grand Total') }}</div>
|
<div>{{ t`Grand Total` }}</div>
|
||||||
<div>{{ formattedValue('grandTotal') }}</div>
|
<div>{{ formattedValue('grandTotal') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -180,7 +180,7 @@
|
|||||||
text-base
|
text-base
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div>{{ t('Outstanding Amount') }}</div>
|
<div>{{ t`Outstanding Amount` }}</div>
|
||||||
<div>{{ formattedValue('outstandingAmount') }}</div>
|
<div>{{ formattedValue('outstandingAmount') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
class="text-white text-xs ml-2"
|
class="text-white text-xs ml-2"
|
||||||
@click="onSaveClick"
|
@click="onSaveClick"
|
||||||
>
|
>
|
||||||
{{ t('Save') }}
|
{{ t`Save` }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
v-if="!doc._dirty && !doc._notInserted && !doc.submitted"
|
v-if="!doc._dirty && !doc._notInserted && !doc.submitted"
|
||||||
@ -21,7 +21,7 @@
|
|||||||
class="text-white text-xs ml-2"
|
class="text-white text-xs ml-2"
|
||||||
@click="onSubmitClick"
|
@click="onSubmitClick"
|
||||||
>
|
>
|
||||||
{{ t('Submit') }}
|
{{ t`Submit` }}
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="mt-8 px-6">
|
<div class="mt-8 px-6">
|
||||||
<h1 class="text-2xl font-semibold">
|
<h1 class="text-2xl font-semibold">
|
||||||
{{ doc._notInserted ? t('New Journal Entry') : doc.name }}
|
{{ doc._notInserted ? t`New Journal Entry` : doc.name }}
|
||||||
</h1>
|
</h1>
|
||||||
<div class="flex justify-between mt-2">
|
<div class="flex justify-between mt-2">
|
||||||
<div class="w-1/3">
|
<div class="w-1/3">
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
class="text-gray-900 text-xs ml-2"
|
class="text-gray-900 text-xs ml-2"
|
||||||
@click="showCustomiser = !showCustomiser"
|
@click="showCustomiser = !showCustomiser"
|
||||||
>
|
>
|
||||||
{{ t('Customise') }}
|
{{ t`Customise` }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button class="text-gray-900 text-xs ml-2" @click="makePDF">
|
<Button class="text-gray-900 text-xs ml-2" @click="makePDF">
|
||||||
{{ t('Save as PDF') }}
|
{{ t`Save as PDF` }}
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="border-l w-80" v-if="showCustomiser">
|
<div class="border-l w-80" v-if="showCustomiser">
|
||||||
<div class="mt-4 px-4 flex items-center justify-between">
|
<div class="mt-4 px-4 flex items-center justify-between">
|
||||||
<h2 class="font-semibold">{{ t('Customise') }}</h2>
|
<h2 class="font-semibold">{{ t`Customise` }}</h2>
|
||||||
<Button :icon="true" @click="showCustomiser = false">
|
<Button :icon="true" @click="showCustomiser = false">
|
||||||
<feather-icon name="x" class="w-4 h-4" />
|
<feather-icon name="x" class="w-4 h-4" />
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
v-if="doc && doc._notInserted"
|
v-if="doc && doc._notInserted"
|
||||||
class="ml-2 text-white text-xs"
|
class="ml-2 text-white text-xs"
|
||||||
>
|
>
|
||||||
{{ t('Save') }}
|
{{ t`Save` }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
:icon="true"
|
:icon="true"
|
||||||
@ -35,7 +35,7 @@
|
|||||||
"
|
"
|
||||||
class="ml-2 text-white text-xs"
|
class="ml-2 text-white text-xs"
|
||||||
>
|
>
|
||||||
{{ t('Submit') }}
|
{{ t`Submit` }}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<PageHeader>
|
<PageHeader>
|
||||||
<template #title>
|
<template #title>
|
||||||
<h1 class="text-2xl font-bold">
|
<h1 class="text-2xl font-bold">
|
||||||
{{ t('Settings') }}
|
{{ t`Settings` }}
|
||||||
</h1>
|
</h1>
|
||||||
</template>
|
</template>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div class="px-12">
|
<div class="px-12">
|
||||||
<h1 class="text-2xl font-semibold">{{ t('Setup your organization') }}</h1>
|
<h1 class="text-2xl font-semibold">{{ t`Setup your organization` }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-8 mt-5 window-no-drag" v-if="doc">
|
<div class="px-8 mt-5 window-no-drag" v-if="doc">
|
||||||
<div class="flex items-center px-6 py-5 mb-4 border bg-brand rounded-xl">
|
<div class="flex items-center px-6 py-5 mb-4 border bg-brand rounded-xl">
|
||||||
|
Loading…
Reference in New Issue
Block a user