final fix for ticket volume
This commit is contained in:
parent
d3743e2548
commit
2c625a3b90
|
@ -19,9 +19,10 @@ class Controller extends FilterTicketList {
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.$scope.index.model.instances.forEach(sale => {
|
this.$scope.index.model.instances.forEach(sale => {
|
||||||
response.data.volumes.forEach(volume => {
|
response.data.volumes[0].forEach(volume => {
|
||||||
if (sale.id === volume.saleFk)
|
if (sale.id === volume.saleFk) {
|
||||||
sale.volume = volume;
|
sale.volume = volume;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue