Compare commits
35 Commits
4685-avail
...
master
Author | SHA1 | Date |
---|---|---|
|
293e74b3a5 | |
|
d070f36125 | |
|
d8eefdb956 | |
|
4734b78791 | |
|
d5a748b66c | |
|
a87051bc84 | |
|
446d454c69 | |
|
166c92b271 | |
|
69e8847cdc | |
|
13b8b1318b | |
|
7a02602691 | |
|
442027ae64 | |
|
3386ffa9e0 | |
|
dded9c8c43 | |
|
01f682fe4f | |
|
c2f5e72bcc | |
|
a143aa3ca2 | |
|
e74d7b7268 | |
|
741fb703f5 | |
|
b242cfefba | |
|
9212b4a704 | |
|
50ff440ab5 | |
|
64a883d223 | |
|
bffb9abd0d | |
|
c13f46b078 | |
|
dd6783b7b8 | |
|
ceb3ea6449 | |
|
7d7df16e65 | |
|
5a42978887 | |
|
33da940497 | |
|
90dfabe8e9 | |
|
ddf1d7cb9b | |
|
6976e20943 | |
|
87dcd8372e | |
|
5e085056bc |
|
@ -19,6 +19,7 @@ More info at https://github.com/nevill/zongji/issues/143
|
|||
git clone https://github.com/juan-ferrer-toribio/zongji.git
|
||||
cd zongji
|
||||
git checkout fix-143
|
||||
npm install
|
||||
```
|
||||
|
||||
Apply *zongji.sql* script into DB.
|
||||
|
@ -49,4 +50,4 @@ npm run consumer
|
|||
|
||||
* [Zongji](https://github.com/nevill/zongji)
|
||||
* [MySQL2](https://github.com/sidorares/node-mysql2#readme)
|
||||
* [RabbitMQ](https://www.rabbitmq.com/)
|
||||
* [RabbitMQ] (https://www.rabbitmq.com/)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mycdc",
|
||||
"version": "0.0.15",
|
||||
"version": "0.0.24",
|
||||
"author": "Verdnatura Levante SL",
|
||||
"description": "Asynchronous DB calculations reading the binary log",
|
||||
"license": "GPL-3.0",
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
query:
|
||||
client: CALL vn.ticket_setRisk(:id)
|
||||
includeSchema:
|
||||
vn:
|
||||
ticket:
|
||||
key: clientFk
|
||||
scope: client
|
||||
columns:
|
||||
- id
|
||||
- clientFk
|
||||
- shipped
|
||||
- totalWithVat
|
||||
- refFk
|
||||
receipt:
|
||||
key: clientFk
|
||||
scope: client
|
||||
columns:
|
||||
- payed
|
||||
- clientFk
|
||||
- amountPaid
|
||||
hedera:
|
||||
tpvTransaction:
|
||||
key: clientFk
|
||||
scope: client
|
||||
columns:
|
||||
- clientFk
|
||||
- amount
|
||||
- status
|
||||
- receiptFk
|
|
@ -1,22 +0,0 @@
|
|||
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
|
|
@ -0,0 +1,8 @@
|
|||
query:
|
||||
expedition: CALL vn.expedition_selfConsumptionPackaging(:id, 'add')
|
||||
includeSchema:
|
||||
vn:
|
||||
expedition:
|
||||
key: id
|
||||
columns:
|
||||
- id
|
|
@ -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
|
|
@ -1,76 +0,0 @@
|
|||
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
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,36 @@
|
|||
query:
|
||||
ticket: CALL vn.ticket_setProblemTooLittle(:id)
|
||||
item: CALL vn.ticket_setProblemTooLittleItemCost(:id)
|
||||
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
|
|
@ -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
|
|
@ -0,0 +1,17 @@
|
|||
query:
|
||||
ticket: CALL vn.ticket_setProblemRisk(:id)
|
||||
client: CALL vn.ticket_setProblemRiskByClient(:id)
|
||||
includeSchema:
|
||||
vn:
|
||||
ticket:
|
||||
key: id
|
||||
columns:
|
||||
- id
|
||||
- clientFk
|
||||
- risk
|
||||
client:
|
||||
key: id
|
||||
scope: client
|
||||
columns:
|
||||
- id
|
||||
- credit
|
|
@ -2,6 +2,7 @@ query:
|
|||
ticket: CALL vn.ticket_recalc(:id, NULL)
|
||||
client: CALL vn.ticket_recalcByScope('client', :id)
|
||||
address: CALL vn.ticket_recalcByScope('address', :id)
|
||||
item: CALL vn.ticket_recalcByScope('item', :id)
|
||||
includeSchema:
|
||||
vn:
|
||||
ticket:
|
||||
|
@ -40,3 +41,10 @@ includeSchema:
|
|||
key: id
|
||||
columns:
|
||||
- isEqualizated
|
||||
itemTaxCountry:
|
||||
key: itemFk
|
||||
scope: item
|
||||
columns:
|
||||
- itemFk
|
||||
- countryFk
|
||||
- taxClassFk
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
query:
|
||||
ticket: CALL vn.ticket_setVolume(:id)
|
||||
item: CALL vn.ticket_setVolumeItemCost(:id)
|
||||
includeSchema:
|
||||
vn:
|
||||
sale:
|
||||
key: ticketFk
|
||||
scope: ticket
|
||||
columns:
|
||||
- id
|
||||
- ticketFk
|
||||
- itemFk
|
||||
- quantity
|
||||
itemCost:
|
||||
key: itemFk
|
||||
scope: item
|
||||
columns:
|
||||
- itemFk
|
||||
- warehouseFk
|
||||
- cm3delivery
|
Loading…
Reference in New Issue