From 5e085056bc31a35d168af66f7526ed081fa881b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Tue, 16 Apr 2024 17:52:05 +0200 Subject: [PATCH] feat: Turn problems into calculated columns refs#7213 --- config/queues.yml | 161 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) diff --git a/config/queues.yml b/config/queues.yml index c335982..bf4fd4f 100644 --- a/config/queues.yml +++ b/config/queues.yml @@ -105,3 +105,164 @@ stock: orderRow: query: CALL stock.log_refreshOrder(:table, :id) key: id +ticketRequest: + query: CALL vn.ticket_getRequestProblem(:id) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + ticket: + key: id + columns: + - id + ticketRequest: + key: ticketFk + columns: + - ticketFk + - isOk +ticketFreeze: + query: CALL vn.ticket_getFreezeProblem(:id) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + client: + key: id + columns: + - id + - isFreezed + events: + - updaterows + ticket: + key: clientFk + columns: + - id + - clientFk +ticketIsTaxDataChecked: + query: CALL vn.ticket_getTaxDataCheckedProblem(:id) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + client: + key: id + columns: + - id + - isTaxDataChecked + events: + - updaterows + ticket: + key: id + columns: + - id + - clientFk +ticketIsTooLittle: + query: CALL vn.ticket_getTooLittleProblem(:id) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + ticket: + key: id + columns: + - id + - totalWithoutVat + - warehouseFk + events: + - updaterows + sale: + key: ticketFk + columns: + - id + - ticketFk + - itemFk + - quantity +ticketIsTooLittleItemCost: + query: CALL vn.ticket_getTooLittleProblemItemCost(:itemFk) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + itemCost: + key: itemFk + columns: + - itemFk + - warehouseFk + - cm3delivery + events: + - updaterows +ticketIsTooLittleConfig: + query: CALL vn.ticket_getTooLittleProblemConfig() + mode: fk + flushInterval: 5000 + includeSchema: + vn: + volumeConfig: + columns: + - minTicketVolume + - minTicketValue +saleComponentLack: + query: CALL vn.sale_getComponentLackProblem(:id) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + sale: + key: id + columns: + - id + saleComponent: + key: saleFk + columns: + - id + - saleFk + - componentFk +saleComponentLackComponent: + query: CALL vn.sale_getComponentLackProblem(:id) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + component: + key: id + columns: + - isRequired +clientRisk: + query: CALL vn.client_risk(:clientFk) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + ticket: + key: clientFk + columns: + - id + - clientFk + - shipped + - totalWithtVat + - refFk + receipt: + key: clientFk + columns: + - payed + - clientFk + - amountPaid + hedera: + tpvTransaction: + key: clientFk + columns: + - clientFk + - amount + - status + - receiptFk +ticketRisk: + query: CALL vn.ticket_getRiskProblem(:clientFk) + mode: fk + flushInterval: 5000 + includeSchema: + vn: + ticket: + key: clientFk + columns: + - clientFk + - risk \ No newline at end of file