final fix for ticket volume

This commit is contained in:
Carlos Jimenez 2018-04-10 14:41:56 +02:00
parent d3743e2548
commit 2c625a3b90
2 changed files with 3 additions and 2 deletions

View File

@ -19,9 +19,10 @@ class Controller extends FilterTicketList {
.then(response => {
if (response.data) {
this.$scope.index.model.instances.forEach(sale => {
response.data.volumes.forEach(volume => {
if (sale.id === volume.saleFk)
response.data.volumes[0].forEach(volume => {
if (sale.id === volume.saleFk) {
sale.volume = volume;
}
});
});
}