Fix missing report for the invoice electronic notification
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
70b1854cc5
commit
90b36bf1ab
|
@ -254,8 +254,15 @@ class Controller extends Section {
|
|||
|
||||
if (client.hasElectronicInvoice) {
|
||||
this.$http.post(`NotificationQueues`, {
|
||||
notificationFk: 'invoiceElectronic',
|
||||
notificationFk: 'invoice-electronic',
|
||||
authorFk: client.id,
|
||||
params: JSON.stringify(
|
||||
{
|
||||
'name': client.name,
|
||||
'email': client.email,
|
||||
'ticketId': this.id,
|
||||
'url': window.location.href
|
||||
})
|
||||
}).then(a => {
|
||||
this.vnApp.showSuccess(this.$t('Invoice sent'));
|
||||
});
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html v-bind="$props">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<title>{{ $t('subject') }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ $t('title') }} {{name}}</h1>
|
||||
<p>{{ $t('clientMail') }} {{email}}</p>
|
||||
<p>{{ $t('ticketId') }} <a :href='url'>{{ticketId}}</a>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
module.exports = {
|
||||
name: 'invoice-electronic',
|
||||
props: {
|
||||
name: {
|
||||
type: [String],
|
||||
required: true
|
||||
},
|
||||
email: {
|
||||
type: [String],
|
||||
required: true
|
||||
},
|
||||
ticketId: {
|
||||
type: [Number],
|
||||
required: true
|
||||
},
|
||||
url: {
|
||||
type: [String],
|
||||
required: true
|
||||
}
|
||||
},
|
||||
};
|
|
@ -0,0 +1,4 @@
|
|||
subject: A electronic invoice has been created
|
||||
title: A new electronic invoice has been created for the client
|
||||
clientMail: The client's email is
|
||||
ticketId: The invoice's ticket is
|
|
@ -0,0 +1,4 @@
|
|||
subject: Se ha creado una factura electrónica
|
||||
title: Se ha creado una nueva factura electrónica para el cliente
|
||||
clientMail: El correo del cliente es
|
||||
ticketId: El ticket de la factura es
|
Loading…
Reference in New Issue