declarar el CARBÓN DE LEÑA del @TODAY (10)
FIJAR EL @TODAY = (SELECTO
CONVERTIR (VARCHAR (10), GETDATE (), 101) COMO [MM/DD/YYYY])
PONER AL DÍA ICFSS
FIJAR ISSUES_MTD = (ISSUES_MTD + PHYSICALINV.NEW_QTY), ISSUES_YTD = (ISSUES_YTD + PHYSICALINV.NEW_QTY),
ON_HAND_QTY = (ON_HAND_QTY + PHYSICALINV.QTY_VAR), DATE_LAST_ISSUE = @TODAY, DATE_LAST_ACT = @TODAY, OPERATOR_ID = “SYS.CD”,
TIME_LAST_UPDT = convertido (carbón de leña (5), getdate (), 108), DATE_LAST_UPDT = convertido (carbón de leña (11), getdate (), 101)
DE PHYSICALINV PI, ICFSS SS
DONDE (PI.Stores_Code = SS.STORES_CODE) Y (PI.Part_ID = SS.PART_ID) Y (SS.PART_ID= “100-001135”) Y (PI.QTY_VAR < 0="">
|