fix: refs #6861 saleTrackingAdd #3121

Merged
sergiodt merged 4 commits from 6861-ReserveSaleTracking into master 2024-10-17 15:29:13 +00:00
1 changed files with 3 additions and 11 deletions
Showing only changes of commit 3463036086 - Show all commits

View File

@ -1,23 +1,15 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`saleTracking_sectorCollectionAddPrevOK`(
sergiodt marked this conversation as resolved Outdated

Salto de línea

Salto de línea
vSectorCollectionFk INT
)
)
sergiodt marked this conversation as resolved Outdated

Tabulación ) -1

Tabulación ) -1
BEGIN
/**
* Inserta los registros de sectorCollection con el estado PREVIA OK si la reserva está picked
*
* @param vSectorCollectionFk Identificador de vn.sectorCollection
*/
REPLACE saleTracking(
saleFk,
isChecked,
workerFk,
stateFk
)
SELECT sgd.saleFk,
TRUE,
sc.userFk,
s.id
REPLACE saleTracking(saleFk, isChecked, workerFk, stateFk)
SELECT sgd.saleFk, TRUE, sc.userFk, s.id
sergiodt marked this conversation as resolved Outdated

Tabulación

Tabulación
FROM sectorCollection sc
JOIN sectorCollectionSaleGroup scsg ON scsg.sectorCollectionFk = sc.id
JOIN saleGroupDetail sgd ON sgd.saleGroupFk = scsg.saleGroupFk
sergiodt marked this conversation as resolved Outdated

Tabulación )

Tabulación )