Merge branch 'master' into 4685-available
gitea/mycdc/pipeline/pr-master This commit looks good Details

This commit is contained in:
Juan Ferrer 2025-02-26 17:07:24 +01:00
commit 04f256a936
11 changed files with 186 additions and 0 deletions

View File

@ -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.

29
queues/clientRisk.yml Normal file
View File

@ -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

View File

@ -0,0 +1,8 @@
query:
expedition: CALL vn.expedition_selfConsumptionPackaging(:id, 'add')
includeSchema:
vn:
expedition:
key: id
columns:
- id

View File

@ -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

15
queues/ticketFreeze.yml Normal file
View File

@ -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

View File

@ -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

View File

@ -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

16
queues/ticketRequest.yml Normal file
View File

@ -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

17
queues/ticketRisk.yml Normal file
View File

@ -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

View File

@ -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

20
queues/ticketVolume.yml Normal file
View File

@ -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