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 $$ DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`saleTracking_sectorCollectionAddPrevOK`( 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 vSectorCollectionFk INT
) )
sergiodt marked this conversation as resolved Outdated

Tabulación ) -1

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

Tabulación

Tabulación
isChecked,
workerFk,
stateFk
)
SELECT sgd.saleFk,
TRUE,
sc.userFk,
s.id
FROM sectorCollection sc FROM sectorCollection sc
JOIN sectorCollectionSaleGroup scsg ON scsg.sectorCollectionFk = sc.id JOIN sectorCollectionSaleGroup scsg ON scsg.sectorCollectionFk = sc.id
JOIN saleGroupDetail sgd ON sgd.saleGroupFk = scsg.saleGroupFk JOIN saleGroupDetail sgd ON sgd.saleGroupFk = scsg.saleGroupFk
sergiodt marked this conversation as resolved Outdated

Tabulación )

Tabulación )