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
|
git clone https://github.com/juan-ferrer-toribio/zongji.git
|
||||||
cd zongji
|
cd zongji
|
||||||
git checkout fix-143
|
git checkout fix-143
|
||||||
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
Apply *zongji.sql* script into DB.
|
Apply *zongji.sql* script into DB.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mycdc",
|
"name": "mycdc",
|
||||||
"version": "0.0.14",
|
"version": "0.0.24",
|
||||||
"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",
|
||||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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)
|
ticket: CALL vn.ticket_recalc(:id, NULL)
|
||||||
client: CALL vn.ticket_recalcByScope('client', :id)
|
client: CALL vn.ticket_recalcByScope('client', :id)
|
||||||
address: CALL vn.ticket_recalcByScope('address', :id)
|
address: CALL vn.ticket_recalcByScope('address', :id)
|
||||||
|
item: CALL vn.ticket_recalcByScope('item', :id)
|
||||||
includeSchema:
|
includeSchema:
|
||||||
vn:
|
vn:
|
||||||
ticket:
|
ticket:
|
||||||
|
@ -40,3 +41,10 @@ includeSchema:
|
||||||
key: id
|
key: id
|
||||||
columns:
|
columns:
|
||||||
- isEqualizated
|
- 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