Compare commits

...

1 Commits

Author SHA1 Message Date
Juan Ferrer 9f960c2820 refs #4685 First working version 2024-08-12 11:55:15 +02:00
4 changed files with 100 additions and 2 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",

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