refs #5652 feat:addressShortage #1828
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1828
Loading…
Reference in New Issue
No description provided.
Delete Branch "5652_addressOption"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -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';
Consignatario si es castella
@ -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;
aci el delete seria restric, perque si borres un consignatari..et borraria esta linea
@ -0,0 +35,4 @@
*/
DECLARE vTicketFk INT;
DECLARE vClientFk INT;
DECLARE vCompanyVnlFk INT;
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
@ -0,0 +45,4 @@
FROM vn.ticket LIMIT 1;
IF vAddressFk IS NULL THEN
SELECT pc.shortageAddressFk FROM productionConfig pc INTO vAddressShortage;
solem posar-ho
SELECT shortageAddressFk INTO vAddressShortage
FROM productionConfig;