6784-delete-clientTypeFk #2059

Merged
ivanm merged 6 commits from 6784-delete-clientTypeFk into dev 2024-02-23 08:25:42 +00:00
Member
No description provided.
ivanm added 3 commits 2024-02-21 11:25:42 +00:00
ivanm added 1 commit 2024-02-21 11:32:38 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
65cb2d45fd
refs #6784 Eliminate row in fixtures.before.sql
ivanm requested review from jgallego 2024-02-21 11:36:58 +00:00
jgallego requested changes 2024-02-21 14:05:19 +00:00
@ -48,3 +48,3 @@
JOIN ticket t ON t.id = s.ticketFk
JOIN client c ON c.id = t.clientFk
JOIN clientType ct ON ct.id = c.clientTypeFk
JOIN clientType ct ON ct.code = c.typeFk
Owner

este join ja sobra

este join ja sobra
Author
Member

Sí, es cert, ho canvie en els 3 casos i ho tinc en compte per a canviar-ho en els 2 de access.

Sí, es cert, ho canvie en els 3 casos i ho tinc en compte per a canviar-ho en els 2 de access.
@ -45,3 +45,3 @@
JOIN ticket t ON t.id = s.ticketFk
JOIN client c on c.id = t.clientFk
JOIN clientType ct ON ct.id = c.clientTypeFk
JOIN clientType ct ON ct.code = c.typeFk
Owner

este join ja sobra

este join ja sobra
@ -48,3 +47,4 @@
JOIN clientType ct ON ct.code = c.typeFk
WHERE t.shipped BETWEEN util.VN_CURDATE() AND util.dayend(util.VN_CURDATE())
AND st.saleFk IS NULL
AND ct.code IN ('normal', 'trust')
Owner

c.typeFk , tant ací com en els altres llocs

c.typeFk , tant ací com en els altres llocs
@ -45,4 +44,0 @@
include: {
relation: 'type',
scope: {
fields: ['code', 'description']
Owner

atencio ací perque al ser back cap la posibilitat de que quan ho puges t'obriguen un cau de que algu accedia a sale y consultaba la propietat description..

atencio ací perque al ser back cap la posibilitat de que quan ho puges t'obriguen un cau de que algu accedia a sale y consultaba la propietat description..
Author
Member

Es de veres, ahí m'he vingut amunt, he retornat la relació i els 2 camps i ha passat el test correctament. Quan ho tinga tot t'ho puje.

Es de veres, ahí m'he vingut amunt, he retornat la relació i els 2 camps i ha passat el test correctament. Quan ho tinga tot t'ho puje.
ivanm added 1 commit 2024-02-22 13:03:35 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
a0cb32ea10
refs #6784 Delete unnecessary JOINs
ivanm requested review from jgallego 2024-02-22 13:09:39 +00:00
jgallego approved these changes 2024-02-22 14:30:53 +00:00
ivanm added 1 commit 2024-02-23 08:24:15 +00:00
gitea/salix/pipeline/pr-dev This commit looks good Details
03fc7cfb4e
Merge branch 'dev' into 6784-delete-clientTypeFk
ivanm merged commit bf85aa1e9d into dev 2024-02-23 08:25:42 +00:00
ivanm deleted branch 6784-delete-clientTypeFk 2024-02-23 08:25:42 +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#2059
No description provided.