primer prototipo #2205
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2205
Loading…
Reference in New Issue
No description provided.
Delete Branch "6358-boxPicking_YellowZebra"
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,286 @@
DROP PROCEDURE IF EXISTS vn.boxPicking_print;
si es fa un drop es perden el privilegis, per això els procs a dia de hui tots tenen create or replace
@ -0,0 +2,4 @@
DELIMITER $$
$$
CREATE PROCEDURE vn.boxPicking_print(
el nom del proc ha de fer referencia a la taula principal amb la que treballa
jo mirant-ho veig que s'agafa una sale i es meneja a un altre ticket.
CREATE OR REPLACE PROCEDURE vn.sale_splitAndPrint
Encara que es molt probable que si en el futur alguna etiqueta no s'imprimeix necesitem separa la part d'imprimir, per a que ho valores.
@ -0,0 +64,4 @@
w1: WHILE vQuantity >= vPacking DO
SET vItemShelvingFk = 0;
vItemShelvingFk = NULL
@ -0,0 +163,4 @@
UPDATE itemShelving SET visible = visible - vPacking WHERE id = vItemShelvingFk;
SET vNewSaleFk = 0;
millor gastar null per a dir que no hi ha un valor real
@ -0,0 +266,4 @@
JOIN parking p ON p.id = sh.parkingFk
WHERE ish.id = vItemShelvingFk;
UPDATE dipole.expedition_PrintOut SET
SET en este cas votaria de linea
@ -0,0 +36,4 @@
s.itemFk,
s.concept
INTO vQuantity,
vRest,
el resto de les divisions es diu remainder
vRemainder
@ -0,0 +46,4 @@
IF vRest THEN
UPDATE sale SET quantity = quantity - vRest WHERE id = vSaleFk;
INSERT INTO vn.sale(ticketFk, itemFk, quantity, price, discount, concept)
sense vn.
Señale este pero hi ha mes.
@ -0,0 +68,4 @@
FROM vn.productionConfig pc
JOIN (
SELECT ish.id,
ish.visible - ifnull(SUM(iss.quantity),0) available,
IFNULL
@ -0,0 +242,4 @@
h.code,
vPackingSiteFk,
ps.monitorId,
IFNULL(vLastExpeditionTimeStamp, Now()),
NOW