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

PRCFFU3A.m

Go to the documentation of this file.
  1. PRCFFU3A ;WISC/SJG-FMS LIN,RCA,RCB,RCC SEGMENTS (AR TRANSACTION);4/27/94 1:39 PM
  1. V ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ;BUILD 'LIN' SEGMENT
  1. LIN S TMPLINE=TMPLINE+1
  1. S ^TMP($J,"PRCMO",INT,TMPLINE)="LIN^~"
  1. Q
  1. ;
  1. ;BUILD 'RCA' SEGMENT
  1. RCA N SEG,BOC,AMT,NUM,FOB
  1. S FOB=""
  1. I $D(PRCFA("FOB")),TYCODE'="M"!(PRCFA("FOB")]"") S FOB=$G(PRCTMP(442,+PO,6.4,"I")) I FOB="" S FOB="D"
  1. I PRCFA("MP")=21,TRCODE'="MO",TYCODE="M" D G MOASEG
  1. .S BOC=+$P(TRNODE(3),"^",6)
  1. .S AMT=$J($P(TRNODE(4),"^",8),0,2)
  1. .S NUM=$E("00"_NUMB,$L(NUMB),99)
  1. ; POs, MOs, orig 1358
  1. S AMT=$P(FMSNOD,U,2) I TYCODE="E" Q:AMT'>0
  1. S BOC=$P(FMSNOD,U),AMT=$J($P(FMSNOD,U,2),0,2),NUMB=$P(FMSNOD,U,3),NUM=$E("00"_NUMB,$L(NUMB),99)
  1. I TYCODE="E" I NUM=991 I (FOB="D")&(+AMT=0) Q
  1. I TYCODE="M",'$D(PRCFCHG("BOC",BOC,NUMB)) Q
  1. I TYCODE="M",$D(PRCFCHG("BOC",BOC,NUMB)) D
  1. .S AMT=$J($P(PRCFCHG("BOC",BOC,NUMB),U,2),0,2)
  1. .S IDFLAG=$P(PRCFCHG("BOC",BOC,NUMB),U,4)
  1. ;
  1. MOASEG S TMPLINE=TMPLINE+1,SEG=""
  1. I TYCODE="E" S $P(SEG,U,21)="01"
  1. S $P(SEG,U,19)=NUM,$P(SEG,U,20)=NUM,$P(SEG,U,22)=PRCBUD,$P(SEG,U,30)=BOC
  1. I $D(PRCFMO("JOB")),PRCFMO("JOB")="Y" S $P(SEG,U,32)=$P(PRCSTR,U,10)
  1. I $D(PRCFMO("RC")),PRCFMO("RC")="Y" S $P(SEG,U,33)=""
  1. S $P(SEG,U,34)=$FN(AMT,"-",2),$P(SEG,U,35)=IDFLAG
  1. I IDFLAG="D" S $P(SEG,U,36)="F"
  1. S ^TMP($J,"PRCMO",INT,TMPLINE)="LIN^~RCA^"_SEG_"^~"
  1. QUIT
  1. ;
  1. ;BUILD 'RCB' SEGMENT
  1. RCB N SEG
  1. S TMPLINE=TMPLINE+1,SEG=""
  1. S ^TMP($J,"PRCMO",INT,TMPLINE)="RCB^~"
  1. I SEG S ^TMP($J,"PRCMO",INT,TMPLINE)="RCB^"_SEG_"^~"
  1. Q
  1. ;
  1. ;BUILD 'RCC' SEGMENT
  1. RCC N SEG
  1. S TMPLINE=TMPLINE+1,SEG=""
  1. S ^TMP($J,"PRCMO",INT,TMPLINE)="RCC^~"
  1. I SEG S ^TMP($J,"PRCMO",INT,TMPLINE)="RCC^"_SEG_"^~"
  1. Q