refs #5652 feat:addressShortage #1828

Merged
sergiodt merged 2 commits from 5652_addressOption into dev 2023-11-08 15:08:18 +00:00
Member
No description provided.
sergiodt added 1 commit 2023-11-07 15:15:46 +00:00
gitea/salix/pipeline/head This commit looks good Details
d30c4e4463
refs #5652 feat:addressShortage
sergiodt requested review from jgallego 2023-11-07 15:15:52 +00:00
jgallego requested changes 2023-11-08 09:19:22 +00:00
@ -0,0 +1,97 @@
-- Place your SQL code here
ALTER TABLE `vn`.`productionConfig` ADD shortageAddressFk int(11) COMMENT 'Address por defecto para añadir un item de alta';
Owner

Consignatario si es castella

Consignatario si es castella
sergiodt marked this conversation as resolved
@ -0,0 +2,4 @@
-- Place your SQL code here
ALTER TABLE `vn`.`productionConfig` ADD shortageAddressFk int(11) COMMENT 'Address por defecto para añadir un item de alta';
ALTER TABLE `vn`.`productionConfig` ADD CONSTRAINT productionConfig_FK FOREIGN KEY (shortageAddressFk) REFERENCES vn.address(id) ON DELETE CASCADE ON UPDATE CASCADE;
Owner

aci el delete seria restric, perque si borres un consignatari..et borraria esta linea

aci el delete seria restric, perque si borres un consignatari..et borraria esta linea
sergiodt marked this conversation as resolved
@ -0,0 +35,4 @@
*/
DECLARE vTicketFk INT;
DECLARE vClientFk INT;
DECLARE vCompanyVnlFk INT;
Owner

si posem açò per a que siga la de per defecte, es me correcte posar vDefaultCompanyFk, perque podria ser que en les fixtures no fora vnl

si posem açò per a que siga la de per defecte, es me correcte posar vDefaultCompanyFk, perque podria ser que en les fixtures no fora vnl
sergiodt marked this conversation as resolved
@ -0,0 +45,4 @@
FROM vn.ticket LIMIT 1;
IF vAddressFk IS NULL THEN
SELECT pc.shortageAddressFk FROM productionConfig pc INTO vAddressShortage;
Owner

solem posar-ho
SELECT shortageAddressFk INTO vAddressShortage
FROM productionConfig;

solem posar-ho SELECT shortageAddressFk INTO vAddressShortage FROM productionConfig;
sergiodt marked this conversation as resolved
sergiodt added 1 commit 2023-11-08 10:51:31 +00:00
gitea/salix/pipeline/head This commit looks good Details
5751065e6a
refs #5652 feat:addressShortage
sergiodt requested review from jgallego 2023-11-08 10:52:38 +00:00
jgallego approved these changes 2023-11-08 15:03:03 +00:00
sergiodt merged commit 9f5cfd920f into dev 2023-11-08 15:08:18 +00:00
sergiodt deleted branch 5652_addressOption 2023-11-08 15:08:19 +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#1828
No description provided.