declarar o CARVÃO ANIMAL do @TODAY (10)
AJUSTAR O @TODAY = (SELETO
CONVERTER (VARCHAR (10), GETDATE (), 101) COMO [MM/DD/YYYY])
ATUALIZAR ICFSS
AJUSTAR 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 = converso (carvão animal (5), getdate (), 108), DATE_LAST_UPDT = converso (carvão animal (11), getdate (), 101)
DE PHYSICALINV PI, ICFSS SS
ONDE (PI.Stores_Code = SS.STORES_CODE) E (PI.Part_ID = SS.PART_ID) E (SS.PART_ID= “100-001135”) E (PI.QTY_VAR < 0="">
|