mycdc/queues/ticketIsTooLittle.yml

36 lines
706 B
YAML
Raw Normal View History

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