From 7370269e4de6f795f0bc4debe3ae6bee68f5faf3 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Wed, 16 Jun 2021 17:06:11 +0200 Subject: [PATCH] ticket.sale now shows Packing type --- modules/item/back/models/item.json | 3 +++ modules/ticket/back/methods/ticket/getSales.js | 3 ++- modules/ticket/front/sale/index.html | 4 ++++ modules/ticket/front/sale/locale/es.yml | 3 ++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/item/back/models/item.json b/modules/item/back/models/item.json index ee1f46e64..ce03ba1ea 100644 --- a/modules/item/back/models/item.json +++ b/modules/item/back/models/item.json @@ -117,6 +117,9 @@ "value10": { "type": "string" }, + "itemPackingTypeFk": { + "type": "string" + }, "compression": { "type": "number" }, diff --git a/modules/ticket/back/methods/ticket/getSales.js b/modules/ticket/back/methods/ticket/getSales.js index 7520e7270..7bd2eabbe 100644 --- a/modules/ticket/back/methods/ticket/getSales.js +++ b/modules/ticket/back/methods/ticket/getSales.js @@ -11,7 +11,7 @@ module.exports = Self => { http: {source: 'path'} }], returns: { - type: ['Object'], + type: ['object'], root: true }, http: { @@ -35,6 +35,7 @@ module.exports = Self => { fields: [ 'id', 'name', + 'itemPackingTypeFk', 'tag5', 'value5', 'tag6', diff --git a/modules/ticket/front/sale/index.html b/modules/ticket/front/sale/index.html index 276bcfe66..a66d8a4de 100644 --- a/modules/ticket/front/sale/index.html +++ b/modules/ticket/front/sale/index.html @@ -63,6 +63,7 @@ Id Quantity Item + Packing type Price Disc Amount @@ -168,6 +169,9 @@ + + {{::sale.item.itemPackingTypeFk == 'H' ? 'Horizontal' : (sale.item.itemPackingTypeFk == 'V' ? 'Vertical' : '-')}} +