mycdc/queues/ticketTotal.yml

51 lines
926 B
YAML
Raw Normal View History

query:
ticket: CALL vn.ticket_recalc(:id, NULL)
2024-04-17 15:01:13 +00:00
client: CALL vn.ticket_recalcByScope('client', :id)
address: CALL vn.ticket_recalcByScope('address', :id)
item: CALL vn.ticket_recalcByScope('item', :id)
includeSchema:
vn:
ticket:
key: id
columns:
- id
- clientFk
- addressFk
- companyFk
- shipped
events:
- updaterows
ticketService:
key: ticketFk
scope: ticket
columns:
- ticketFk
- price
- quantity
sale:
key: ticketFk
scope: ticket
columns:
- id
- ticketFk
- itemFk
- quantity
- price
- discount
client:
key: id
columns:
- provinceFk
- isVies
address:
key: id
columns:
- isEqualizated
itemTaxCountry:
key: itemFk
scope: item
columns:
- itemFk
- countryFk
- taxClassFk