Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
This commit is contained in:
commit
faf355fab8
|
@ -246,12 +246,11 @@ class Controller {
|
|||
sales: this.transfer.sales
|
||||
};
|
||||
|
||||
this.$scope.watcher.updateOriginalData();
|
||||
|
||||
const query = `/api/tickets/${this.ticket.id}/transferSales`;
|
||||
this.$http.post(query, params).then(res => {
|
||||
this.$scope.watcher.updateOriginalData();
|
||||
this.goToTicket(res.data.id);
|
||||
}).finally(() => {
|
||||
this.$scope.watcher.updateOriginalData();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -262,6 +261,10 @@ class Controller {
|
|||
ticketCreated: this.ticket.shipped
|
||||
};
|
||||
const sales = this.checkedLines();
|
||||
|
||||
if (this.newInstances().length === 0)
|
||||
this.$scope.watcher.updateOriginalData();
|
||||
|
||||
this.$http.post(`/api/Claims/createFromSales`, {claim: claim, sales: sales}).then(res => {
|
||||
this.$state.go('claim.card.basicData', {id: res.data.id});
|
||||
});
|
||||
|
@ -401,10 +404,9 @@ class Controller {
|
|||
|
||||
newOrderFromTicket() {
|
||||
this.$http.post(`/api/Orders/newFromTicket`, {ticketFk: this.ticket.id}).then(res => {
|
||||
const path = $state.href('order.card.catalog', {id: res.data});
|
||||
const path = this.$state.href('order.card.catalog', {id: res.data});
|
||||
window.open(path, '_blank');
|
||||
|
||||
// this.$state.go('order.card.catalog', {id: res.data});
|
||||
this.vnApp.showSuccess(this.$translate.instant('Order created'));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -32,12 +32,12 @@
|
|||
<section class="panel">
|
||||
<section class="header">{{$t('clientData')}}</section>
|
||||
<section class="body">
|
||||
<h3 class="uppercase">{{clientName}}</h3>
|
||||
<h3 class="uppercase">{{nickname}}</h3>
|
||||
<section>
|
||||
{{street}}
|
||||
</section>
|
||||
<section>
|
||||
{{postcode}}, {{city}} ({{province}})
|
||||
{{postalCode}}, {{city}} ({{province}})
|
||||
</section>
|
||||
<section>
|
||||
{{country}}
|
||||
|
|
|
@ -43,16 +43,19 @@ module.exports = {
|
|||
c.email AS recipient,
|
||||
c.socialName,
|
||||
c.name AS clientName,
|
||||
c.street,
|
||||
c.postcode,
|
||||
c.city,
|
||||
c.fi,
|
||||
a.city,
|
||||
a.postalCode,
|
||||
a.street,
|
||||
a.nickname,
|
||||
p.name AS province,
|
||||
ct.country
|
||||
FROM claim cl
|
||||
JOIN client c ON c.id = cl.clientFk
|
||||
JOIN account.user u ON u.id = c.id
|
||||
JOIN country ct ON ct.id = c.countryFk
|
||||
JOIN ticket t ON t.id = cl.ticketFk
|
||||
JOIN address a ON a.id = t.addressFk
|
||||
LEFT JOIN province p ON p.id = c.provinceFk
|
||||
WHERE cl.id = ?`, [claimFk]);
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
claimId: 'Reclamación',
|
||||
clientId: 'Cliente',
|
||||
date: 'Fecha',
|
||||
clientData: 'Datos del cliente',
|
||||
clientData: 'Dirección de recogida',
|
||||
quantity: 'Cantidad',
|
||||
claims: 'Reclama',
|
||||
reference: 'Referencia',
|
||||
|
|
Loading…
Reference in New Issue