diff --git a/modules/item/front/descriptor/index.html b/modules/item/front/descriptor/index.html index a84f9eb95..68a7756d9 100644 --- a/modules/item/front/descriptor/index.html +++ b/modules/item/front/descriptor/index.html @@ -83,4 +83,10 @@ - \ No newline at end of file + + + diff --git a/modules/item/front/descriptor/index.js b/modules/item/front/descriptor/index.js index b5b2573b4..2791e960a 100644 --- a/modules/item/front/descriptor/index.js +++ b/modules/item/front/descriptor/index.js @@ -60,6 +60,11 @@ class Controller extends Descriptor { this.warehouseFk = null; this.quantity = null; } + + onCloneAccept() { + this.$http.post(`Items/${this.item.id}/clone`) + .then(res => this.$state.go('item.card.tags', {id: res.data.id})); + } } ngModule.vnComponent('vnItemDescriptor', { diff --git a/print/methods/closure.js b/print/methods/closure.js index 901dce790..b3ccb6430 100644 --- a/print/methods/closure.js +++ b/print/methods/closure.js @@ -23,7 +23,7 @@ module.exports = app => { for (const ticket of tickets) { try { - await db.rawSql(`CALL vn.ticketClosureTicket(:ticketId)`, { + await db.rawSql(`CALL vn.ticket_closeByTicket(:ticketId)`, { ticketId: ticket.id });