Compare commits

...

31 Commits

Author SHA1 Message Date
Guillermo Bonet d5a748b66c Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/mycdc
gitea/mycdc/pipeline/head This commit looks good Details
2024-09-17 08:03:28 +02:00
Guillermo Bonet a87051bc84 Version increased 2024-09-17 08:03:27 +02:00
Guillermo Bonet 446d454c69 Merge pull request 'feat: refs #7564 Added ticketVolume' (#3) from 7564-ticketVolume into master
gitea/mycdc/pipeline/head This commit looks good Details
Reviewed-on: #3
Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
2024-09-17 06:02:12 +00:00
Guillermo Bonet 166c92b271 fix: refs #7213 delete saleRounding
gitea/mycdc/pipeline/head This commit looks good Details
2024-09-11 12:36:09 +02:00
Guillermo Bonet 69e8847cdc Upgrade version
gitea/mycdc/pipeline/head This commit looks good Details
2024-09-04 11:05:43 +02:00
Guillermo Bonet 13b8b1318b Merge pull request 'feat: refs #3199 Added one more scope ticketTotal' (#1) from 3199-itemTaxCountry into master
gitea/mycdc/pipeline/head This commit looks good Details
Reviewed-on: #1
2024-09-04 09:04:57 +00:00
Guillermo Bonet 7a02602691 Merge branch 'master' into 3199-itemTaxCountry
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-09-04 09:03:36 +00:00
Guillermo Bonet 442027ae64 fix: refs #7213 problem rounding
gitea/mycdc/pipeline/head This commit looks good Details
2024-09-03 14:13:21 +02:00
Guillermo Bonet 3386ffa9e0 Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/mycdc
gitea/mycdc/pipeline/head This commit looks good Details
2024-09-03 13:35:09 +02:00
Guillermo Bonet dded9c8c43 Upgrade version 2024-09-03 13:35:08 +02:00
Carlos Andrés 01f682fe4f Merge pull request 'fix: refs #7213 problem rounding' (#5) from 7213-Sale_setProblemRoundingByBuy into master
gitea/mycdc/pipeline/head This commit looks good Details
Reviewed-on: #5
Reviewed-by: Guillermo Bonet <guillermo@verdnatura.es>
2024-09-02 15:50:42 +00:00
Carlos Andrés c2f5e72bcc fix: refs #7213 problem rounding
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-08-30 17:13:07 +02:00
Carlos Andrés a143aa3ca2 fix: refs #7213 problem rounding
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-08-30 13:48:02 +02:00
Carlos Andrés e74d7b7268 fix: refs #7213 problem rounding
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-08-30 13:14:58 +02:00
Guillermo Bonet 741fb703f5 Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/mycdc
gitea/mycdc/pipeline/head This commit looks good Details
2024-08-27 15:10:06 +02:00
Guillermo Bonet b242cfefba Upgrade version 2024-08-27 15:10:05 +02:00
Carlos Andrés 9212b4a704 Merge pull request 'fix: refs #7829 Error al calcular problemas' (#4) from 7829-Error-al-calcular-problemas into master
gitea/mycdc/pipeline/head This commit looks good Details
Reviewed-on: #4
2024-08-02 09:43:59 +00:00
Carlos Andrés 50ff440ab5 fix: refs #7829 Error al calcular problemas
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-08-02 10:35:26 +02:00
Guillermo Bonet 64a883d223 Actualizar queues/clientRisk.yml
gitea/mycdc/pipeline/head This commit looks good Details
2024-07-12 07:19:15 +00:00
Guillermo Bonet bffb9abd0d Merge branch 'master' into 3199-itemTaxCountry
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-07-08 09:59:19 +00:00
Guillermo Bonet c13f46b078 Fix
gitea/mycdc/pipeline/head This commit looks good Details
2024-07-03 10:18:53 +00:00
Guillermo Bonet dd6783b7b8 feat: refs #7564 Changes ticketVolume
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-07-03 09:28:28 +02:00
Guillermo Bonet ceb3ea6449 feat: refs #7564 Added ticketVolume
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-07-02 09:29:37 +02:00
Guillermo Bonet 7d7df16e65 Actualizar queues/clientRisk.yml
gitea/mycdc/pipeline/head This commit looks good Details
2024-06-25 12:42:47 +00:00
Juan Ferrer 5a42978887 Merge pull request '7213-Pasar-problemas-a-columnas' (#2) from 7213-Pasar-problemas-a-columnas into master
gitea/mycdc/pipeline/head This commit looks good Details
Reviewed-on: #2
Reviewed-by: Juan Ferrer <juan@verdnatura.es>
2024-06-06 15:29:36 +00:00
Carlos Andrés 33da940497 Change version
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-06-06 17:25:48 +02:00
Carlos Andrés 90dfabe8e9 feat: problems in colums ticket and sale refs #7213
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-05-23 18:27:39 +02:00
Carlos Andrés ddf1d7cb9b feat: problems in colums ticket and sale refs #7213
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-05-22 14:34:26 +02:00
Guillermo Bonet 6976e20943 feat: refs #3199 Added one more scope ticketTotal
gitea/mycdc/pipeline/pr-master This commit looks good Details
2024-05-14 08:57:16 +02:00
Carlos Andrés 87dcd8372e Merge branch 'master' of https://gitea.verdnatura.es/juan/mycdc into 7213-Pasar-problemas-a-columnas 2024-05-13 12:39:17 +02:00
Carlos Andrés 5e085056bc feat: Turn problems into calculated columns refs#7213 2024-04-16 17:52:05 +02:00
11 changed files with 179 additions and 1 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 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.

View File

@ -1,6 +1,6 @@
{ {
"name": "mycdc", "name": "mycdc",
"version": "0.0.14", "version": "0.0.21",
"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",

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,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) 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

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