7213-Pasar-problemas-a-columnas #2

Merged
juan merged 5 commits from 7213-Pasar-problemas-a-columnas into master 2024-06-06 15:29:37 +00:00
9 changed files with 159 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "mycdc",
"version": "0.0.14",
"version": "0.0.15",
"author": "Verdnatura Levante SL",
"description": "Asynchronous DB calculations reading the binary log",
"license": "GPL-3.0",

28
queues/clientRisk.yml Normal file
View File

@ -0,0 +1,28 @@
query:
ticket: CALL vn.ticket_setRisk(:clientFk)
includeSchema:
vn:
ticket:
key: clientFk
columns:
- id
- clientFk
- shipped
- totalWithVat
- refFk
receipt:
key: clientFk
scope: ticket
columns:
- payed
- clientFk
- amountPaid
hedera:
tpvTransaction:
key: clientFk
scope: ticket
columns:
- clientFk
- amount
- status
- receiptFk

View File

@ -0,0 +1,21 @@
query:
sale: CALL vn.sale_setProblemComponentLack(:id)
component: CALL vn.sale_setProblemComponentLackByComponent(:id)
includeSchema:
vn:
sale:
key: id
columns:
- id
saleComponent:
key: saleFk
scope: sale
columns:
- id
- saleFk
- componentFk
component:
key: id
columns:
- id
- isRequired

17
queues/saleRounding.yml Normal file
View File

@ -0,0 +1,17 @@
query:
ticket: CALL vn.ticket_setProblemRounding(:id)
sale: CALL vn.sale_setProblemRounding(:id)
includeSchema:
vn:
ticket:
key: id
columns:
- id
- warehouseFk
- shipped
sale:
key: id
columns:
- id
- quantity
- itemFk

15
queues/ticketFreeze.yml Normal file
View File

@ -0,0 +1,15 @@
query:
client: CALL vn.ticket_setProblemFreeze(:id)
includeSchema:
vn:
client:
key: id
columns:
- id
- isFreezed
ticket:
key: clientFk
scope: client
columns:
- id
- clientFk

View File

@ -0,0 +1,15 @@
query:
client: CALL vn.ticket_setProblemTaxDataChecked(:id)
includeSchema:
vn:
client:
key: id
columns:
- id
- isTaxDataChecked
ticket:
key: clientFk
scope: client
columns:
- id
- clientFk

View File

@ -0,0 +1,36 @@
query:
ticket: CALL vn.ticket_setProblemTooLittle(:id)
item: CALL vn.ticket_setProblemTooLittleItemCost(:itemFk)
config: CALL vn.ticket_setProblemTooLittleItemCost(NULL)
includeSchema:
vn:
ticket:
key: id
columns:
- id
- totalWithoutVat
- warehouseFk
events:
- updaterows
sale:
key: ticketFk
scope: ticket
columns:
- id
- ticketFk
- itemFk
- quantity
itemCost:
key: itemFk
scope: item
columns:
- itemFk
- warehouseFk
- cm3delivery
volumeConfig:
scope: config
columns:
- minTicketValue
- minTicketVolume
events:
- updaterows

16
queues/ticketRequest.yml Normal file
View File

@ -0,0 +1,16 @@
query:
ticket: CALL vn.ticket_setProblemRequest(:id)
includeSchema:
vn:
ticket:
key: id
columns:
- id
events:
- updaterows
ticketRequest:
key: ticketFk
scope: ticket
columns:
- ticketFk
- isOk

10
queues/ticketRisk.yml Normal file
View File

@ -0,0 +1,10 @@
query:
ticket: CALL vn.ticket_setProblemRisk(:id)
includeSchema:
vn:
ticket:
key: id
columns:
- id
- clientFk
- risk