feat: problems in colums ticket and sale refs #7213
gitea/mycdc/pipeline/pr-master This commit looks good Details

This commit is contained in:
Carlos Andrés 2024-05-22 14:34:26 +02:00
parent 87dcd8372e
commit ddf1d7cb9b
10 changed files with 170 additions and 270 deletions

View File

@ -12,5 +12,11 @@ db:
password: password password: password
database: util database: util
pollQueues: pollQueues:
- queue1 - ticketFreeze
- queue2 - ticketIsTaxDataChecked
- ticketRequest
- ticketIsTooLittle
- clientRisk
- ticketRisk
- saleRounding
- saleComponentLack

View File

@ -1,268 +0,0 @@
orderTotal:
query: CALL hedera.order_recalc(:id)
mode: fk
flushInterval: 5000
includeSchema:
hedera:
order:
key: id
columns:
- id
- address_id
- company_id
- date_send
- customer_id
events:
- updaterows
orderRow:
key: orderFk
columns:
- id
- orderFk
- itemFk
- warehouseFk
- shipment
- amount
ticketTotal:
query: CALL vn.ticket_recalc(:id, NULL)
mode: fk
flushInterval: 5000
includeSchema:
vn:
ticket:
key: id
columns:
- id
- shipped
- warehouseFk
- clientFk
events:
- updaterows
sale:
key: ticketFk
columns:
- id
- ticketFk
- itemFk
- quantity
- price
stock:
mode: id
includeSchema:
vn:
travel:
query: CALL stock.log_refreshBuy(:table, :id)
key: id
entry:
query: CALL stock.log_refreshBuy(:table, :id)
key: id
columns:
- id
- travelFk
- isRaid
events:
- updaterows
buy:
query: CALL stock.log_refreshBuy(:table, :id)
key: id
columns:
- id
- entryFk
- itemFk
- quantity
- created
ticket:
query: CALL stock.log_refreshSale(:table, :id)
key: id
columns:
- id
- warehouseFk
- shipped
events:
- updaterows
sale:
query: CALL stock.log_refreshSale(:table, :id)
key: id
columns:
- id
- ticketFk
- itemFk
- quantity
- created
- isPicked
hedera:
order:
query: CALL stock.log_refreshOrder(:table, :id)
key: id
columns:
- id
- date_send
- address_id
- company_id
- customer_id
events:
- updaterows
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

30
queues/clientRisk.yml Normal file
View File

@ -0,0 +1,30 @@
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,38 @@
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
events:
- updaterows
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