diff --git a/modules/client/back/methods/client/confirmTransaction.js b/modules/client/back/methods/client/confirmTransaction.js index 997c3de7a..467a8627b 100644 --- a/modules/client/back/methods/client/confirmTransaction.js +++ b/modules/client/back/methods/client/confirmTransaction.js @@ -27,7 +27,7 @@ module.exports = Self => { let oldTpvTransaction = await Self.app.models.TpvTransaction.findById(id, null, options); - let confirm = await Self.rawSql('CALL hedera.tpvTransactionConfirmById(?)', [id], options); + let confirm = await Self.rawSql('CALL hedera.tpvTransaction_confirmById(?)', [id], options); let tpvTransaction = await Self.app.models.TpvTransaction.findById(id, null, options); diff --git a/modules/client/back/methods/client/specs/confirmTransaction.spec.js b/modules/client/back/methods/client/specs/confirmTransaction.spec.js index 3b5410231..5fe638001 100644 --- a/modules/client/back/methods/client/specs/confirmTransaction.spec.js +++ b/modules/client/back/methods/client/specs/confirmTransaction.spec.js @@ -5,7 +5,7 @@ describe('Client confirmTransaction', () => { afterAll(async done => { await app.models.Client.rawSql(` - CALL hedera.tpvTransactionUndo(?)`, [transactionId]); + CALL hedera.tpvTransaction_undo(?)`, [transactionId]); done(); }); diff --git a/modules/item/back/methods/item/specs/clone.spec.js b/modules/item/back/methods/item/specs/clone.spec.js index a1bd0f6c8..8ac228485 100644 --- a/modules/item/back/methods/item/specs/clone.spec.js +++ b/modules/item/back/methods/item/specs/clone.spec.js @@ -1,6 +1,6 @@ const app = require('vn-loopback/server/server'); -fdescribe('item clone()', () => { +describe('item clone()', () => { let nextItemId; beforeEach(async() => { diff --git a/modules/order/back/methods/order/filter.js b/modules/order/back/methods/order/filter.js index 1d9fe37ae..4a4fd2c85 100644 --- a/modules/order/back/methods/order/filter.js +++ b/modules/order/back/methods/order/filter.js @@ -140,7 +140,7 @@ module.exports = Self => { SELECT id AS orderFk FROM tmp.filter`); - stmts.push('CALL hedera.orderGetTotal()'); + stmts.push('CALL hedera.order_getTotal()'); let orderIndex = stmts.push(` SELECT f.*, ot.* diff --git a/modules/order/back/methods/order/getTaxes.js b/modules/order/back/methods/order/getTaxes.js index 72d91d23a..e7ffd467b 100644 --- a/modules/order/back/methods/order/getTaxes.js +++ b/modules/order/back/methods/order/getTaxes.js @@ -36,7 +36,7 @@ module.exports = Self => { SELECT ? AS orderFk`, [orderFk]); stmts.push(stmt); - stmts.push('CALL hedera.orderGetTax()'); + stmts.push('CALL hedera.order_getTax()'); let orderTaxIndex = stmts.push('SELECT * FROM tmp.orderAmount') - 1; diff --git a/modules/order/back/methods/order/getTotal.js b/modules/order/back/methods/order/getTotal.js index d4808054d..32d46f605 100644 --- a/modules/order/back/methods/order/getTotal.js +++ b/modules/order/back/methods/order/getTotal.js @@ -20,7 +20,7 @@ module.exports = Self => { }); Self.getTotal = async orderFk => { - let query = `SELECT hedera.orderGetTotal(?) total;`; + let query = `SELECT hedera.order_getTotal(?) total;`; let [total] = await Self.rawSql(query, [orderFk]); return total.total;