refs #4685 First working version

This commit is contained in:
Juan Ferrer 2024-08-12 11:55:15 +02:00
parent 5e01721f75
commit 9f960c2820
4 changed files with 100 additions and 2 deletions

View File

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

22
queues/comparative.yml Normal file
View File

@ -0,0 +1,22 @@
mode: changes
query: CALL vn.itemComparative_refresh(?, ?, ?)
includeSchema:
vn:
ticket:
key: id
columns:
- id
- shipped
- warehouseFk
- isDeleted
- clientFk
events:
- updaterows
sale:
key: id
columns:
- id
- ticketFk
- itemFk
- quantity
- priceFixed

76
queues/stock.yml Normal file
View File

@ -0,0 +1,76 @@
query:
travel: CALL stock.buyAvailable_refresh('travel', :id)
entry: CALL stock.buyAvailable_refresh('entry', :id)
buy: CALL stock.buyAvailable_refresh('buy', :id)
ticket: CALL stock.outbound_refresh('ticket', :id)
sale: CALL stock.outbound_refresh('sale', :id)
order: CALL stock.outbound_refresh('order', :id)
orderRow: CALL stock.outbound_refresh('orderRow', :id)
includeSchema:
vn:
travel:
key: id
columns:
- id
- landed
- shipped
- landingHour
- warehouseInFk
- warehouseOutFk
- isReceived
events:
- updaterows
entry:
key: id
columns:
- id
- travelFk
- isRaid
events:
- updaterows
buy:
key: id
columns:
- id
- entryFk
- itemFk
- quantity
- life
- isAlive
ticket:
key: id
columns:
- id
- warehouseFk
- shipped
events:
- updaterows
sale:
key: id
columns:
- id
- ticketFk
- itemFk
- quantity
- created
- isPicked
hedera:
order:
key: id
columns:
- id
- date_send
- address_id
- company_id
- customer_id
- confirmed
events:
- updaterows
orderRow:
key: id
columns:
- orderFk
- itemFk
- warehouseFk
- shipment
- amount