Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 3092-module_transactions
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
aae54b5707
|
@ -11,6 +11,7 @@ class Controller extends Dialog {
|
||||||
throw new Error(`The country can't be empty`);
|
throw new Error(`The country can't be empty`);
|
||||||
|
|
||||||
return this.$http.post(`bankEntities`, this.data)
|
return this.$http.post(`bankEntities`, this.data)
|
||||||
|
.then(res => this.data.id = res.data.id)
|
||||||
.then(() => super.responseHandler(response))
|
.then(() => super.responseHandler(response))
|
||||||
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')));
|
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')));
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,12 +27,13 @@ describe('Salix Component vnNewBankEntity', () => {
|
||||||
countryFk: 1
|
countryFk: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
$httpBackend.expectPOST('bankEntities', controller.data).respond(200);
|
$httpBackend.expectPOST('bankEntities', controller.data).respond({id: 1});
|
||||||
|
|
||||||
controller.responseHandler('accept');
|
controller.responseHandler('accept');
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!');
|
expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!');
|
||||||
|
expect(controller.data.id).toEqual(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -293,7 +293,7 @@
|
||||||
<vn-th field="id" number>Id</vn-th>
|
<vn-th field="id" number>Id</vn-th>
|
||||||
<vn-th field="nickname" expand>Nickname</vn-th>
|
<vn-th field="nickname" expand>Nickname</vn-th>
|
||||||
<vn-th field="agencyModeFk" expand>Agency</vn-th>
|
<vn-th field="agencyModeFk" expand>Agency</vn-th>
|
||||||
<vn-th field="routeFk" shrink>Route</vn-th>
|
<vn-th field="routeFk" expand>Route</vn-th>
|
||||||
<vn-th field="packages" shrink>Packages</vn-th>
|
<vn-th field="packages" shrink>Packages</vn-th>
|
||||||
<vn-th field="shipped" shrink-date>Date</vn-th>
|
<vn-th field="shipped" shrink-date>Date</vn-th>
|
||||||
<vn-th field="stateFk">State</vn-th>
|
<vn-th field="stateFk">State</vn-th>
|
||||||
|
|
|
@ -25,7 +25,7 @@ module.exports = {
|
||||||
throw err;
|
throw err;
|
||||||
}).finally(async() => {
|
}).finally(async() => {
|
||||||
await db.rawSql(`
|
await db.rawSql(`
|
||||||
INSERT INTO vn.mail (sender, replyTo, sent, subject, body, status)
|
INSERT INTO vn.mail (receiver, replyTo, sent, subject, body, status)
|
||||||
VALUES (?, ?, 1, ?, ?, ?)`, [
|
VALUES (?, ?, 1, ?, ?, ?)`, [
|
||||||
options.to,
|
options.to,
|
||||||
options.replyTo,
|
options.replyTo,
|
||||||
|
|
|
@ -29,7 +29,7 @@ services:
|
||||||
amount: Amount
|
amount: Amount
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Subtotal
|
subtotal: Subtotal
|
||||||
warning: Deposit packaging will be invoiced if they have not been returned after 30 days of their delivery
|
warning: Deposit packaging will be invoiced if they have not been returned after 30 days of their delivery.
|
||||||
packagings:
|
packagings:
|
||||||
title: Buckets and packaging
|
title: Buckets and packaging
|
||||||
theader:
|
theader:
|
||||||
|
|
|
@ -29,7 +29,7 @@ services:
|
||||||
amount: Importe
|
amount: Importe
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Subtotal
|
subtotal: Subtotal
|
||||||
warning: Los embalajes en depósito se facturarán si no han sido devueltos pasados 30 dias de su entrega
|
warning: Los embalajes en depósito se facturarán si no han sido devueltos pasados 30 dias de su entrega.
|
||||||
packagings:
|
packagings:
|
||||||
title: Cubos y embalajes
|
title: Cubos y embalajes
|
||||||
theader:
|
theader:
|
||||||
|
|
|
@ -29,7 +29,7 @@ services:
|
||||||
amount: Montant
|
amount: Montant
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Total partiel
|
subtotal: Total partiel
|
||||||
warning: Les emballages de consigne seront facturés s'ils n'ont pas été retournés après 30 jours de leur livraison
|
warning: Les emballages de consigne seront facturés s'ils n'ont pas été retournés après 30 jours de leur livraison.
|
||||||
packagings:
|
packagings:
|
||||||
title: Bacs et emballages
|
title: Bacs et emballages
|
||||||
theader:
|
theader:
|
||||||
|
|
|
@ -29,7 +29,7 @@ services:
|
||||||
amount: Quantia
|
amount: Quantia
|
||||||
tfoot:
|
tfoot:
|
||||||
subtotal: Subtotal
|
subtotal: Subtotal
|
||||||
warning: Os pacotes do armazém serão cobrados se não forem devolvidos 30 dias após a entrega
|
warning: As embalagens em depósito serão facturadas e cobradas se não são devolvidas 30 dias após a entrega.
|
||||||
packagings:
|
packagings:
|
||||||
title: Baldes e Embalagens
|
title: Baldes e Embalagens
|
||||||
theader:
|
theader:
|
||||||
|
|
Loading…
Reference in New Issue