refs #7531 Modify zone_getAddresses #2675

Merged
guillermo merged 5 commits from 7531-Modify-zone_getAddresses into dev 2024-07-30 10:02:12 +00:00
Member
No description provided.
ivanm added 1 commit 2024-07-03 15:11:29 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
4bef3e9107
refs #7531 Modify zone_getAddresses
ivanm requested review from guillermo 2024-07-03 15:13:21 +00:00
guillermo requested changes 2024-07-04 05:18:00 +00:00
Dismissed
@ -3,2 +3,3 @@
vSelf INT,
vLanded DATE
vDated DATE,
vDepartment INT
Member

vDepartmentFk

vDepartmentFk
ivanm marked this conversation as resolved
@ -12,6 +13,7 @@ BEGIN
*
* @param vSelf Id de zona
* @param vDated Fecha de entrega
* @param vDepartment Departamento del trabajador
Member

vDepartmentFk Id de departamento

vDepartmentFk Id de departamento
ivanm marked this conversation as resolved
@ -22,34 +24,47 @@ BEGIN
WHERE id NOT IN (
Member

notHasTicket crec que te sobra

notHasTicket crec que te sobra
ivanm marked this conversation as resolved
@ -26,1 +27,4 @@
WHERE landed BETWEEN vDated AND util.dayEnd(vDated)
)
),
hasTicketShippedToday AS (
Member

hasTickets (today no es correcte perque li pots pasar una altra fetxa que no siga hui)

hasTickets (today no es correcte perque li pots pasar una altra fetxa que no siga hui)
ivanm marked this conversation as resolved
@ -26,1 +28,4 @@
)
),
hasTicketShippedToday AS (
SELECT clientFk,
Member

Aço queda mes net aixina:

		SELECT DISTINCT clientFk
			FROM vn.ticket
			WHERE shipped BETWEEN vDated AND util.dayEnd(vDated)
Aço queda mes net aixina: ``` SELECT DISTINCT clientFk FROM vn.ticket WHERE shipped BETWEEN vDated AND util.dayEnd(vDated) ```
ivanm marked this conversation as resolved
@ -27,0 +31,4 @@
SELECT clientFk,
IF (COUNT(*) > 0, TRUE, FALSE) hasTicketShipped
FROM vn.ticket
WHERE shipped BETWEEN vDated AND util.dayEnd(vDated)
Member

Si li preguntares i volia per shipped ok

Si li preguntares i volia per shipped ok
ivanm marked this conversation as resolved
@ -53,0 +42,4 @@
u.name username,
aai.invoiced,
cnb.lastShipped,
ht.hasTicketShipped
Member

IF(ht.clientFk, TRUE, FALSE) hasTicket

IF(ht.clientFk, TRUE, FALSE) hasTicket
ivanm marked this conversation as resolved
@ -53,0 +58,4 @@
LEFT JOIN vn.annualAverageInvoiced aai ON aai.clientFk = c.id
JOIN vn.clientType ct ON ct.code = c.typeFk
JOIN vn.businessType bt ON bt.code = c.businessTypeFk
LEFT JOIN hasTicketShippedToday ht ON ht.clientFk = c.id
Member

hasTickets

hasTickets
ivanm marked this conversation as resolved
@ -53,0 +63,4 @@
AND c.isActive
AND ct.code = 'normal'
AND bt.code <> 'worker'
AND d.id = vDepartment
Member

vDepartmentFk

vDepartmentFk
ivanm marked this conversation as resolved
ivanm added 1 commit 2024-07-16 16:56:10 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
50e2c03d3e
refs #7531 Requested modifications in redmine
ivanm added 1 commit 2024-07-16 16:57:54 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
350e4b4c53
Merge branch 'dev' into 7531-Modify-zone_getAddresses
ivanm requested review from guillermo 2024-07-16 17:00:42 +00:00
guillermo requested changes 2024-07-18 05:58:13 +00:00
Dismissed
@ -53,0 +50,4 @@
AND c.isActive
AND ct.code = 'normal'
AND bt.code <> 'worker'
AND d.id = vDepartmentFk
Member

Soporta que pueda ser null:
(d.id = vDepartmentFk OR NOT vDepartmentFk)

Soporta que pueda ser null: `(d.id = vDepartmentFk OR NOT vDepartmentFk)`
Author
Member

Cert, també demana els que no tinguen comercial/departament assignat. Ho modifique.

Cert, també demana els que no tinguen comercial/departament assignat. Ho modifique.
ivanm marked this conversation as resolved
ivanm added 1 commit 2024-07-18 13:22:10 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
a6e6f435f7
refs #7531 No assigned department
ivanm added 1 commit 2024-07-18 13:23:41 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
c44bf909b2
Merge branch 'dev' into 7531-Modify-zone_getAddresses
ivanm requested review from guillermo 2024-07-18 13:26:18 +00:00
guillermo approved these changes 2024-07-19 05:26:32 +00:00
guillermo merged commit bcf08db6d6 into dev 2024-07-30 10:02:12 +00:00
guillermo deleted branch 7531-Modify-zone_getAddresses 2024-07-30 10:02:12 +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#2675
No description provided.