refactor: refs #6778 Migrated views of vn2008 to vn #1996

Merged
guillermo merged 14 commits from 6778-changeViewDependencesVn2008 into dev 2024-02-14 13:17:47 +00:00
Member
No description provided.
guillermo added 1 commit 2024-02-05 08:02:00 +00:00
guillermo added 1 commit 2024-02-05 08:02:06 +00:00
gitea/salix/pipeline/pr-dev There was a failure building this commit Details
80aaaf3fc5
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo requested review from carlosap 2024-02-05 13:11:23 +00:00
guillermo added 1 commit 2024-02-05 13:11:28 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
ea4f4e1636
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 1 commit 2024-02-06 08:23:21 +00:00
gitea/salix/pipeline/pr-dev There was a failure building this commit Details
8c13ebc5fc
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 1 commit 2024-02-06 13:02:32 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
c3174c0c38
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 1 commit 2024-02-07 06:09:26 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
c1789433f8
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 1 commit 2024-02-08 07:25:03 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
f6c9f799c5
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 1 commit 2024-02-08 13:55:02 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
18a27e032f
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 1 commit 2024-02-12 12:20:06 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
00109e86af
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 1 commit 2024-02-14 06:06:09 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
d83823ed0e
Merge branch 'dev' into 6778-changeViewDependencesVn2008
carlosap requested changes 2024-02-14 09:44:26 +00:00
@ -58,2 +56,2 @@
where Fecha <= datFEC
group by Id_Cliente
SELECT clientFk Id_Cliente, sum(amount) as Greuge
FROM vn2.greuge
Member

vn2

vn2
guillermo marked this conversation as resolved
@ -101,3 +101,2 @@
IF(MAX(Fecha) < DATE_FORMAT(TIMESTAMPADD(MONTH, - 1, vDate), '%Y- %m-01'), TRUE, FALSE) muerto
FROM vn2008.Facturas f
JOIN vn2008.Clientes c ON c.Id_cliente = f.Id_Cliente
FROM vn.invoiceOut f
Member

modificar alias

modificar alias
guillermo marked this conversation as resolved
@ -26,3 +26,1 @@
JOIN vn2008.Facturas f ON f.Id_Factura = t.Factura
WHERE year(f.Fecha) = vYear
AND month(f.Fecha) = vMonth;
JOIN vn.invoiceOut f ON f.id = t.Factura
Member

modificar alias

modificar alias
guillermo marked this conversation as resolved
@ -16,3 +16,1 @@
JOIN vn2008.Facturas f ON f.Id_Factura = t.Factura
WHERE year(f.Fecha) = vYear
AND month(f.Fecha) = vMonth;
JOIN vn.invoiceOut f ON f.id = t.Factura
Member

modificar alias

modificar alias
guillermo marked this conversation as resolved
@ -27,3 +27,1 @@
(SELECT DISTINCT tm.yearMonth, f.Id_Cliente , 1 as Compra
FROM vn2008.Facturas f
JOIN vn2008.time tm ON tm.date = f.Fecha
(SELECT DISTINCT tm.yearMonth, f.clientFk Id_Cliente , 1 as Compra
Member

alias f?

alias f?
guillermo marked this conversation as resolved
@ -36,3 +36,1 @@
(SELECT MIN(tm.yearMonth) firstMonth, f.Id_Cliente
FROM vn2008.Facturas f
JOIN vn2008.time tm ON tm.date = f.Fecha
(SELECT MIN(tm.yearMonth) firstMonth, f.clientFk Id_Cliente
Member

modificar alias

modificar alias
guillermo marked this conversation as resolved
@ -49,3 +49,1 @@
SELECT MAX(tm.yearMonth) firstMonth, f.Id_Cliente
FROM vn2008.Facturas f
JOIN vn2008.time tm ON tm.date = f.Fecha
SELECT MAX(tm.yearMonth) firstMonth, f.clientFk Id_Cliente
Member

modificar alias

modificar alias
guillermo marked this conversation as resolved
@ -51,2 +50,2 @@
FROM Facturas f
JOIN Clientes c using(Id_Cliente)
SELECT d.companyFk, f.clientFk Id_Cliente, - f.amount
FROM vn.invoiceOut f
Member

modificar alias

modificar alias
guillermo marked this conversation as resolved
@ -23,2 +21,2 @@
JOIN Clientes c ON f.Id_Cliente = c.Id_Cliente
WHERE f.Id_Cliente = vCustomer
SELECT vn.getDueDate(f.issued,c.Vencimiento), - Importe
FROM vn.invoiceOut f
Member

modificar alias

modificar alias
guillermo marked this conversation as resolved
guillermo added 1 commit 2024-02-14 10:38:24 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
18c10e2dd7
refactor: refs #6778 Requested changes
guillermo requested review from carlosap 2024-02-14 10:38:30 +00:00
guillermo added 1 commit 2024-02-14 10:38:37 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
2c82a64029
Merge branch 'dev' into 6778-changeViewDependencesVn2008
guillermo added 2 commits 2024-02-14 11:11:50 +00:00
carlosap approved these changes 2024-02-14 11:21:34 +00:00
guillermo merged commit a690401b33 into dev 2024-02-14 13:17:47 +00:00
guillermo deleted branch 6778-changeViewDependencesVn2008 2024-02-14 13:17:47 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#1996
No description provided.