Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PSGWI022

PSGWI022.m

Go to the documentation of this file.
  1. PSGWI022 ; ; 04-JAN-1994
  1. ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
  1. 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
  1. Q Q
  1. ;;^DD(58.32,1,21,0)
  1. ;;=^^2^2^2871009^^^
  1. ;;^DD(58.32,1,21,1,0)
  1. ;;=This contains the quantity backordered (Amount to be dispensed -
  1. ;;^DD(58.32,1,21,2,0)
  1. ;;=Actual Dispensed).
  1. ;;^DD(58.32,1,"DT")
  1. ;;=2850719
  1. ;;^DD(58.32,2,0)
  1. ;;=ORIGINAL BACKORDER^NJ6,0^^0;3^K:+X'=X!(X>999999)!(X<0)!(X?.E1"."1N.N) X
  1. ;;^DD(58.32,2,3)
  1. ;;=Type a whole number between 0 and 999999
  1. ;;^DD(58.32,2,5,1,0)
  1. ;;=58.32^1^1
  1. ;;^DD(58.32,2,21,0)
  1. ;;=^^2^2^2871009^
  1. ;;^DD(58.32,2,21,1,0)
  1. ;;=If the backorder quantity is partially filled, this stores the amount
  1. ;;^DD(58.32,2,21,2,0)
  1. ;;=of the original backorder.
  1. ;;^DD(58.32,2,"DT")
  1. ;;=2850110
  1. ;;^DD(58.32,3,0)
  1. ;;=DATE OF LAST CHG^D^^0;4^S %DT="ET" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(58.32,3,21,0)
  1. ;;=^^2^2^2871009^
  1. ;;^DD(58.32,3,21,1,0)
  1. ;;=This identifies the date that the backorder quantity was edited
  1. ;;^DD(58.32,3,21,2,0)
  1. ;;=or partially filled.
  1. ;;^DD(58.32,3,"DT")
  1. ;;=2850110
  1. ;;^DD(58.32,4,0)
  1. ;;=DATE FILLED^D^^0;5^S %DT="ET" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(58.32,4,1,0)
  1. ;;=^.1^^0
  1. ;;^DD(58.32,4,21,0)
  1. ;;=^^2^2^2871009^
  1. ;;^DD(58.32,4,21,1,0)
  1. ;;=This identifies the date that the backorder quantity was completely
  1. ;;^DD(58.32,4,21,2,0)
  1. ;;=filled.
  1. ;;^DD(58.32,4,"DT")
  1. ;;=2870817