feat: Turn problems into calculated columns refs#7213

This commit is contained in:
Carlos Andrés 2024-04-16 17:52:05 +02:00
parent 3b302dfd20
commit 5e085056bc
1 changed files with 161 additions and 0 deletions

View File

@ -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