mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
Merge branch 'translation-warning-french' into 'master'
fix translation issues in french and fix issues in estimate action See merge request mohit.panjvani/crater-web!18
This commit is contained in:
@ -554,7 +554,17 @@ export default {
|
|||||||
right: 'Droite',
|
right: 'Droite',
|
||||||
left: 'La gauche',
|
left: 'La gauche',
|
||||||
action: 'action',
|
action: 'action',
|
||||||
add_currency: 'Ajouter une devise',
|
add_currency: 'Ajouter une devise'
|
||||||
|
},
|
||||||
|
mail: {
|
||||||
|
host: 'Mail Host',
|
||||||
|
port: 'Port mail',
|
||||||
|
driver: 'Pilote de courrier',
|
||||||
|
password: 'Mot de passe mail',
|
||||||
|
username: "Mail Nom d'utilisateur",
|
||||||
|
mail_config: 'Configuration du courrier',
|
||||||
|
encryption: 'Chiffrement du courrier',
|
||||||
|
mail_config_desc: "Les détails ci-dessous seront utilisés pour mettre à jour l'environnement de messagerie. Aussi, vous pouvez modifier les détails à tout moment après la connexion."
|
||||||
},
|
},
|
||||||
pdf: {
|
pdf: {
|
||||||
title: 'Paramètre PDF',
|
title: 'Paramètre PDF',
|
||||||
|
|||||||
@ -261,13 +261,13 @@
|
|||||||
{{ $t('estimates.send_estimate') }}
|
{{ $t('estimates.send_estimate') }}
|
||||||
</a>
|
</a>
|
||||||
</v-dropdown-item>
|
</v-dropdown-item>
|
||||||
<v-dropdown-item v-if="row.status === 'DRAFT' || row.status === 'REJECTED'">
|
<v-dropdown-item v-if="row.status !== 'ACCEPTED'">
|
||||||
<a class="dropdown-item" href="#" @click.self="onMarkAsAccepted(row.id)">
|
<a class="dropdown-item" href="#" @click.self="onMarkAsAccepted(row.id)">
|
||||||
<font-awesome-icon icon="check-circle" class="dropdown-item-icon" />
|
<font-awesome-icon icon="check-circle" class="dropdown-item-icon" />
|
||||||
{{ $t('estimates.mark_as_accepted') }}
|
{{ $t('estimates.mark_as_accepted') }}
|
||||||
</a>
|
</a>
|
||||||
</v-dropdown-item>
|
</v-dropdown-item>
|
||||||
<v-dropdown-item v-if="row.status === 'ACCEPTED' || row.status === 'DRAFT'">
|
<v-dropdown-item v-if="row.status !== 'REJECTED'">
|
||||||
<a class="dropdown-item" href="#" @click.self="onMarkAsRejected(row.id)">
|
<a class="dropdown-item" href="#" @click.self="onMarkAsRejected(row.id)">
|
||||||
<font-awesome-icon icon="times-circle" class="dropdown-item-icon" />
|
<font-awesome-icon icon="times-circle" class="dropdown-item-icon" />
|
||||||
{{ $t('estimates.mark_as_rejected') }}
|
{{ $t('estimates.mark_as_rejected') }}
|
||||||
@ -514,8 +514,8 @@ export default {
|
|||||||
icon: '/assets/icon/envelope-solid.svg',
|
icon: '/assets/icon/envelope-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (willDelete) => {
|
}).then(async (willConvertInToinvoice) => {
|
||||||
if (willDelete) {
|
if (willConvertInToinvoice) {
|
||||||
let res = await this.convertToInvoice(id)
|
let res = await this.convertToInvoice(id)
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
window.toastr['success'](this.$t('estimates.conversion_message'))
|
window.toastr['success'](this.$t('estimates.conversion_message'))
|
||||||
@ -562,8 +562,8 @@ export default {
|
|||||||
icon: '/assets/icon/check-circle-solid.svg',
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (willDelete) => {
|
}).then(async (willMarkAsSent) => {
|
||||||
if (willDelete) {
|
if (willMarkAsSent) {
|
||||||
const data = {
|
const data = {
|
||||||
id: id
|
id: id
|
||||||
}
|
}
|
||||||
@ -582,8 +582,8 @@ export default {
|
|||||||
icon: '/assets/icon/paper-plane-solid.svg',
|
icon: '/assets/icon/paper-plane-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (sendEstimate) => {
|
}).then(async (willSendEstimate) => {
|
||||||
if (sendEstimate) {
|
if (willSendEstimate) {
|
||||||
const data = {
|
const data = {
|
||||||
id: id
|
id: id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -222,12 +222,22 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
async onMarkAsSent () {
|
async onMarkAsSent () {
|
||||||
this.isRequestOnGoing = true
|
swal({
|
||||||
let response = await this.markAsSent({id: this.estimate.id})
|
title: this.$t('general.are_you_sure'),
|
||||||
this.isRequestOnGoing = false
|
text: this.$t('estimates.confirm_mark_as_sent'),
|
||||||
if (response.data) {
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
window.toastr['success'](this.$tc('estimates.mark_as_sent'))
|
buttons: true,
|
||||||
}
|
dangerMode: true
|
||||||
|
}).then(async (willMarkAsSent) => {
|
||||||
|
if (willMarkAsSent) {
|
||||||
|
this.isRequestOnGoing = true
|
||||||
|
let response = await this.markAsSent({id: this.estimate.id})
|
||||||
|
this.isRequestOnGoing = false
|
||||||
|
if (response.data) {
|
||||||
|
window.toastr['success'](this.$tc('estimates.mark_as_sent'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
async removeEstimate (id) {
|
async removeEstimate (id) {
|
||||||
this.selectEstimate([parseInt(id)])
|
this.selectEstimate([parseInt(id)])
|
||||||
@ -235,7 +245,7 @@ export default {
|
|||||||
swal({
|
swal({
|
||||||
title: 'Deleted',
|
title: 'Deleted',
|
||||||
text: 'you will not be able to recover this estimate!',
|
text: 'you will not be able to recover this estimate!',
|
||||||
icon: 'error',
|
icon: '/assets/icon/trash-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (willDelete) => {
|
}).then(async (willDelete) => {
|
||||||
|
|||||||
@ -252,7 +252,7 @@ export default {
|
|||||||
swal({
|
swal({
|
||||||
title: 'Deleted',
|
title: 'Deleted',
|
||||||
text: 'you will not be able to recover this invoice!',
|
text: 'you will not be able to recover this invoice!',
|
||||||
icon: 'error',
|
icon: '/assets/icon/trash-solid.svg',
|
||||||
buttons: true,
|
buttons: true,
|
||||||
dangerMode: true
|
dangerMode: true
|
||||||
}).then(async (willDelete) => {
|
}).then(async (willDelete) => {
|
||||||
|
|||||||
@ -29,16 +29,9 @@
|
|||||||
>
|
>
|
||||||
<table-column
|
<table-column
|
||||||
:sortable="true"
|
:sortable="true"
|
||||||
:filterable="true"
|
|
||||||
:label="$t('settings.tax_types.tax_name')"
|
:label="$t('settings.tax_types.tax_name')"
|
||||||
>
|
show="name"
|
||||||
<template slot-scope="row">
|
/>
|
||||||
<span>{{ $t('settings.tax_types.tax_name') }}</span>
|
|
||||||
<span class="tax-name mt-3">
|
|
||||||
{{ row.name }}
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</table-column>
|
|
||||||
<table-column
|
<table-column
|
||||||
:sortable="true"
|
:sortable="true"
|
||||||
:filterable="true"
|
:filterable="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user