diff --git a/client/ticket/src/sale/index.html b/client/ticket/src/sale/index.html
index e029e1065a..b39c5522e6 100644
--- a/client/ticket/src/sale/index.html
+++ b/client/ticket/src/sale/index.html
@@ -91,7 +91,7 @@
{{("000000"+sale.itemFk).slice(-6)}}
-
+
{{sale.quantity}}
{
ids.push(line.itemFk);
let filter = {
- fields: ['id'],
- where: {id: {inq: ids}},
- include: {
- relation: 'tags',
- scope: {
- fields: ['tagFk', 'value', 'priority'],
- where: {priority: {lte: 6}},
- order: 'priority',
- include: {
- relation: 'tag',
- scope: {
- fields: ['name']
- }
- }
- }
- }
+ fields: ['id', 'name', 'tag5', 'value5', 'tag6', 'value6', 'tag7', 'value7', 'tag8', 'value8', 'tag9', 'value9', 'tag10', 'value10'],
+ where: {id: {inq: ids}}
};
let items = await Self.app.models.Item.find(filter);
@@ -52,7 +38,7 @@ module.exports = Self => {
map[item.id] = item;
for (line of lines)
- line.item = {tags: map[line.itemFk].tags()};
+ line.tags = map[line.itemFk];
return lines;
};