- PSGWI022 ; ; 04-JAN-1994
- ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
- Q:'DIFQ(58.3) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
- Q Q
- ;;^DD(58.32,1,21,0)
- ;;=^^2^2^2871009^^^
- ;;^DD(58.32,1,21,1,0)
- ;;=This contains the quantity backordered (Amount to be dispensed -
- ;;^DD(58.32,1,21,2,0)
- ;;=Actual Dispensed).
- ;;^DD(58.32,1,"DT")
- ;;=2850719
- ;;^DD(58.32,2,0)
- ;;=ORIGINAL BACKORDER^NJ6,0^^0;3^K:+X'=X!(X>999999)!(X<0)!(X?.E1"."1N.N) X
- ;;^DD(58.32,2,3)
- ;;=Type a whole number between 0 and 999999
- ;;^DD(58.32,2,5,1,0)
- ;;=58.32^1^1
- ;;^DD(58.32,2,21,0)
- ;;=^^2^2^2871009^
- ;;^DD(58.32,2,21,1,0)
- ;;=If the backorder quantity is partially filled, this stores the amount
- ;;^DD(58.32,2,21,2,0)
- ;;=of the original backorder.
- ;;^DD(58.32,2,"DT")
- ;;=2850110
- ;;^DD(58.32,3,0)
- ;;=DATE OF LAST CHG^D^^0;4^S %DT="ET" D ^%DT S X=Y K:Y<1 X
- ;;^DD(58.32,3,21,0)
- ;;=^^2^2^2871009^
- ;;^DD(58.32,3,21,1,0)
- ;;=This identifies the date that the backorder quantity was edited
- ;;^DD(58.32,3,21,2,0)
- ;;=or partially filled.
- ;;^DD(58.32,3,"DT")
- ;;=2850110
- ;;^DD(58.32,4,0)
- ;;=DATE FILLED^D^^0;5^S %DT="ET" D ^%DT S X=Y K:Y<1 X
- ;;^DD(58.32,4,1,0)
- ;;=^.1^^0
- ;;^DD(58.32,4,21,0)
- ;;=^^2^2^2871009^
- ;;^DD(58.32,4,21,1,0)
- ;;=This identifies the date that the backorder quantity was completely
- ;;^DD(58.32,4,21,2,0)
- ;;=filled.
- ;;^DD(58.32,4,"DT")
- ;;=2870817
- PSGWI022 ; ; 04-JAN-1994
- +1 ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
- +2 IF 'DIFQ(58.3)
- QUIT
- FOR I=1:2
- SET X=$TEXT(Q+I)
- IF X=""
- QUIT
- SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
- SET X=$EXTRACT(X,4,999)
- IF $ASCII(Y)=126
- SET I=I+1
- SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
- IF $ASCII(Y)=61
- SET Y=$EXTRACT(Y,2,999)
- XECUTE NO
- IF '$TEST
- SET @X=Y
- Q QUIT
- +1 ;;^DD(58.32,1,21,0)
- +2 ;;=^^2^2^2871009^^^
- +3 ;;^DD(58.32,1,21,1,0)
- +4 ;;=This contains the quantity backordered (Amount to be dispensed -
- +5 ;;^DD(58.32,1,21,2,0)
- +6 ;;=Actual Dispensed).
- +7 ;;^DD(58.32,1,"DT")
- +8 ;;=2850719
- +9 ;;^DD(58.32,2,0)
- +10 ;;=ORIGINAL BACKORDER^NJ6,0^^0;3^K:+X'=X!(X>999999)!(X<0)!(X?.E1"."1N.N) X
- +11 ;;^DD(58.32,2,3)
- +12 ;;=Type a whole number between 0 and 999999
- +13 ;;^DD(58.32,2,5,1,0)
- +14 ;;=58.32^1^1
- +15 ;;^DD(58.32,2,21,0)
- +16 ;;=^^2^2^2871009^
- +17 ;;^DD(58.32,2,21,1,0)
- +18 ;;=If the backorder quantity is partially filled, this stores the amount
- +19 ;;^DD(58.32,2,21,2,0)
- +20 ;;=of the original backorder.
- +21 ;;^DD(58.32,2,"DT")
- +22 ;;=2850110
- +23 ;;^DD(58.32,3,0)
- +24 ;;=DATE OF LAST CHG^D^^0;4^S %DT="ET" D ^%DT S X=Y K:Y<1 X
- +25 ;;^DD(58.32,3,21,0)
- +26 ;;=^^2^2^2871009^
- +27 ;;^DD(58.32,3,21,1,0)
- +28 ;;=This identifies the date that the backorder quantity was edited
- +29 ;;^DD(58.32,3,21,2,0)
- +30 ;;=or partially filled.
- +31 ;;^DD(58.32,3,"DT")
- +32 ;;=2850110
- +33 ;;^DD(58.32,4,0)
- +34 ;;=DATE FILLED^D^^0;5^S %DT="ET" D ^%DT S X=Y K:Y<1 X
- +35 ;;^DD(58.32,4,1,0)
- +36 ;;=^.1^^0
- +37 ;;^DD(58.32,4,21,0)
- +38 ;;=^^2^2^2871009^
- +39 ;;^DD(58.32,4,21,1,0)
- +40 ;;=This identifies the date that the backorder quantity was completely
- +41 ;;^DD(58.32,4,21,2,0)
- +42 ;;=filled.
- +43 ;;^DD(58.32,4,"DT")
- +44 ;;=2870817