Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (15 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCFACPS.m

    r628 r636  
    11PRCFACPS ;WISC@ALTOONA/CTB/DL-PURGE CODE SHEET CONTINUATION ;1/29/98 1300
    2 V ;;5.1;IFCAP;**114**;Oct 20, 2000;Build 4
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44DQ ;;PURGE CODE SHEETS AND TRANSMISSION RECORDS
    55 D:$D(ZTQUEUED) KILL^%ZTLOAD
    6  S PRCFNAME=$S(PRCFASYS["CLMCLIRRLOG":"FEE/FEN, Receiving Reports & LOG",PRCFASYS["CLM":"FEE/FEN",PRCFASYS["ISM":"ISM",PRCFASYS["IRS":"IRS",1:"LOG")
     6 S PRCFNAME=$S(PRCFASYS["CLM":"FEE/FEN",PRCFASYS["ISM":"ISM",PRCFASYS["IRS":"IRS",1:"LOG")
    77 L +^PRCF(423,0):5 I '$T S X="Code Sheet file unavailable - File lock timeout.*" D MSG^PRCFQ Q
    88 W:$D(IOF) @IOF W PRCFNAME_" CODE SHEET & TRANSMISSION RECORD DELETION TRANSCRIPT" D NOW^PRCFQ W ?IOM-$L(%X),%X
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCFALOG.m

    r628 r636  
    11PRCFALOG ;WISC/CTB-LOG CODE SHEETS ;11-27-92/08:20
    2 V ;;5.1;IFCAP;**114**;Oct 20, 2000;Build 4
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44A S PRCHLOG="",PRCFASYS="LOGDLA" Q
    55B K PRCHLOG,PRCFASYS Q
     
    2424PURGE ;PURGE CODE SHEETS
    2525 D A S PRCFASYS=PRCFASYS_"PHA" D EN^PRCFACPR,B Q
    26 PURGE2 ;PURGE ALL CODE SHEETS
    27  W !!,"** YOU MUST SELECT A DESIGNATED PRINTER FOR PURGE TO FUNCTION PROPERLY."
    28  W !,"** DEFAULTING TO HOME DEVICE (0) WILL NOT PURGE DATA SINCE THE OPTION WILL BE "
    29  W !,"** TASKED.",!
    30  S PRCFASYS="CLMCLIRRLOGDLAPHAGSA" D EN^PRCFACPR,B Q
    3126ADD ;ADD CODE SHEET TO PRINTED BATCH
    3227 D A,ADD^PRCFACR2,B Q
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHEF.m

    r628 r636  
    11PRCHEF ;ID/RSD,SF-ISC/TKW-EDIT ROUTINES FOR SUPPLY SYSTEM ;6/10/97 9:34
    2 V ;;5.1;IFCAP;**107**;Oct 20, 2000;Build 13
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;
    55EN80 ;DELETE A RECEIVING REPORT (CONT.FROM PRCHE)
     
    77 I $P($G(^PRC(442,PRCHPO,23)),U,11)="S"!($P($G(^(23)),U,11)="P") W !!,?5,"Please create an adjustment voucher to delete",!,?5,"receiving reports for purchase card orders.",! G EN80
    88 I $P($G(^PRC(442,PRCHPO,23)),U,11)="D" W !!,?5,"Please create an adjustment voucher to delete",!,?5,"receiving reports for delivery orders.",! G EN80
    9  I X<25!(X>33) W $C(7)," Receiving Report cannot be deleted, please create an adjustment voucher." G EN80
     9 I X<25!(X>33) W $C(7)," ??" G EN80
    1010 I '$O(^PRC(442,PRCHPO,11,0)) W !?3,"Order has no Receiving Reports !",$C(7) G EN80
    1111 D LCK1^PRCHE G:'$D(DA) EN80 S:$P(^PRC(442,PRCHPO,0),U,2)=8 PRCHNRQ=1
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHMA.m

    r628 r636  
    11PRCHMA ;WISC/AKS-Amend to PO, req ;6/10/96  14:07
    2  ;;5.1;IFCAP;**21,79,100,113**;Oct 20, 2000;Build 4
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
    4 REQ N PRCHREQ
     2 ;;5.1;IFCAP;**21,79,100**;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
     4REQ ;Req.
     5 N PRCHREQ
    56 S PRCHREQ=1
    6 PO N PRCF,RETURN,PRCHAM,PRCHPO,PRCHNEW,OUT,CAN,PRCHAU,PRCHER,PRCHON,A,B,ER,FL,FIS,DELIVER,PRCHAMDA,PRCHAV,PRCHL1,PRCHLN,PRCHRET,LCNT
    7  N PRCHL2,ROU,DIC,I,PRCHAMT,PRCHAREC,PRCHEDI,X,Y,PRCHN,PRCHO,SFUND,PRCHX,PRCHIMP,PRCHNRQ,PRCHP,REPO,PRCHNORE,%,%A,%B,D0,D1,J
     7PO ;PO
     8 N PRCF,RETURN,PRCHAM,PRCHPO,PRCHNEW,OUT,CAN,PRCHAU,PRCHER,PRCHON
     9 N A,B,ER,FL,FIS,DELIVER,PRCHAMDA,PRCHAV,PRCHL1,PRCHLN,PRCHRET,LCNT
     10 N PRCHL2,ROU,DIC,I,PRCHAMT,PRCHAREC,PRCHEDI,X,Y,PRCHN,PRCHO,SFUND
     11 N PRCHX,PRCHIMP,PRCHNRQ,PRCHP,REPO,PRCHNORE,%,%A,%B,D0,D1,J
    812 N PRCFL,MSG
    913LOOP D KILL^PRCHMA1 S PRCHNEW="",PRCHNORE=1,CAN=0
    10  ; See routine PRCHAMXA for information on variable PRCHNORE and undefined DIK, var PRCHPO is the basic premise of locks applied to amendments
     14 ;
     15 ; See routine PRCHAMXA for information on variable PRCHNORE and for
     16 ; incidence of undefined DIK variable errors.
     17 ; The var PRCHPO is the basic premise of locks applied to amendments.
     18 ; Anytime amend module is accessed add +lock & save po# in PRCENTRY.
     19 ;
    1120 S PRCF("X")="S" D ^PRCFSITE Q:'$D(PRC("SITE"))
    12  ; Lock simultaneous entry of users in amend. module for the same record.  Var Y is saved in PRCHPO at the end of GETPO subrtn, when we start
     21 ;
     22 ; Lock simultaneous entry of users in amend. module for the same record.
     23 ; Var Y is saved in PRCHPO at the end of GETPO subrtn, when we start
    1324 ; the process(AMENDNO) of amending the record we must have var PRCHPO.
     25 ;
    1426 S PRCFL=0
    1527 W !! D GETPO^PRCHAMU
    16  ; If no record is selected or time-out or up-arrow out then exit without unlocking a record.
     28 ; If no record is selected or time-out or up-arrow out then exit
     29 ; without unlocking a record.
    1730 I $D(DTOUT)!$D(DUOUT)!$G(OUT)=1 G EXIT1
    1831 I PRCFL=1 G LOOP
     
    3346 . I $G(PRCHAMDA)=31 D MSG^PRCHAMU Q
    3447 . I $G(PRCHAMDA)=24,$G(X)=2 D MSG1^PRCHAMU S SCE=1 Q
     48 ;
    3549 I $P(^PRC(443.6,PRCHPO,6,PRCHAM,0),U,4)=5!($P(^(0),U,4)=15) S CAN=1
    3650 I $D(DTOUT)!($D(DUOUT)) G EXIT
    3751 I $G(NOCAN)=1 G ASK
    3852 G:$P($G(^PRC(443.6,PRCHPO,6,PRCHAM,3,0)),U,4)'>1 EXIT
    39 CAN1 S BFLAG=0
    40  S:$P($G(^PRC(443.6,PRCHPO,1)),U,7)'=6 BFLAG=1
    41  I $P($G(^PRC(443.6,PRCHPO,1)),U,7)=6  D
    42  .S THISHLD=0
    43  .F  S THISHLD=$O(^PRC(443.6,PRCHPO,2,THISHLD)) Q:'THISHLD!(BFLAG=1)  D
    44  ..S:$P($G(^PRC(443.6,PRCHPO,2,THISHLD,2)),U,2)'="" BFLAG=1
    45  .Q:BFLAG=1
    46  .S THISHLD=0
    47  .F  S THISHLD=$O(^PRC(442,PRCHPO,2,THISHLD)) Q:'THISHLD!(BFLAG=1)  D
    48  ..S:$P($G(^PRC(442,PRCHPO,2,THISHLD,2)),U,2)'="" BFLAG=1
    49  W:BFLAG=0 !,"This is now a contract order.  You must add a contract to this orders item(s)",!,"before approving the amendment.",!
    50  G:BFLAG=0 EXIT
    51  D:BFLAG=1 UPDATE^PRCHAMU G:$D(Y) EXIT
     53CAN1 D UPDATE^PRCHAMU G:$D(Y) EXIT
    5254CHK I '$$VERIFY^PRCHES5(PRCHPO) W !!,?5,"This purchase order has been tampered with.",!,?5,"Please notify IFCAP APPLICATION COORDINATOR." G EXIT
    5355 I $P($G(^PRC(443.6,PRCHPO,6,PRCHAM,1)),U,4)']"" W !!,?5,"There is no Amendment Status." D
     
    6668 ...S J=0 S J=$O(^PRC(443.6,PRCHPO,2,PRCH,1,J)) I J'>0 D:LCNT>END TOP W !!,?5,"Line item ",+$P(PRCHLN,U)," is missing its description!",$C(7) S PRCHER="",LCNT=LCNT+2
    6769 ...I $P($G(^PRC(442,PRCHPO,23)),U,11)="D",$P($G(^PRC(443.6,PRCHPO,2,PRCH,2)),U,2)="" D:LCNT>END TOP W !!,?5,"Line item ",+$P(PRCHLN,U)," is missing contract number.",$C(7) S PRCHER="",LCNT=LCNT+2
    68  ...; PRC*5.1*79 - Check line items of PC orders with source code=6 to make sure that a contract number is entered
     70 ...; PRC*5.1*79 - Check line items of PC orders with source code=6 to
     71 ...; make sure that a contract number is entered
    6972 ...D PCD^PRCHMA1
    7073 ...Q
     
    7275 .I $D(PRCHER) I LCNT>END N DIR S DIR(0)="E" D ^DIR S LCNT=1
    7376 .Q
     77 ;PRC*5.1*100: check line items without an FSC or PSC
    7478 D EN106^PRCHNPO7 I $G(ERROR)=1 G EXIT
    7579 I $P($G(^PRC(443.6,PRCHPO,0)),U,13)>0 I $P($G(^PRC(443.6,PRCHPO,23)),U)="" W !!,?5,"This amendment has Est. Shipping and/or Handling charges without any",!,?5,"Est. Shipping BOC." S PRCHER=""
    7680 I $P($G(^PRC(443.6,PRCHPO,6,PRCHAM,0)),U,4)=5!($P($G(^(0)),U,4)=15) S CAN=1
    7781 I $G(CAN)'=1 D CHECK^PRCHAMDF(PRCHPO,PRCHAM,.PRCHER)
     82 ;
     83 ; Change below to allow checks for monthly limits in file #440.5 before
     84 ; completion of the amendment.
     85 ;
    7886 I $G(PRCHAUTH)=1!($P($G(^PRC(443.6,PRCHPO,0)),U,2)=25) S FILE=443.6 D  I $G(ERROR) S PRCHER="" K ERROR,FILE
    7987 .D ^PRCHSF3
     
    107115 .D REMOVE^PRCSC2(PP410),ENCODE^PRCSC2(PP410,DUZ,.MESSAGE) K MESSAGE
    108116 .I '$G(PRCPROST) W !?3,"SEND TO SUPPLY " S PRCHQ="^PRCHPAM",D0=PRCHPO,D1=PRCHAM D ^PRCHQUE
    109  .; Update file #440.5 after amendment has been approved. Consider orders created and amended in the same month and year and the user either
    110  .; cancels the order or enters other type of amendment that changes the final amount of the order. No credit is given for orders from a
     117 .;
     118 .; Update file #440.5 after amendment has been approved. Consider orders
     119 .; created and amended in the same month and year and the user either
     120 .; cancels the order or enters other type of amendment that changes the
     121 .; final amount of the order. No credit is given for orders from a
    111122 .; previous month and year. DT is the current date, system-supplied.
     123 .;
    112124 .S PRCHCD=$P($G(^PRC(442,PRCHPO,23)),U,8)
    113125 .S PRCNODE=$G(^PRC(442,PRCHPO,6,0)),PRCAMD=$P(PRCNODE,U,3)
     
    132144 S SFUND="" I $P($G(^PRC(443.6,PRCHPO,0)),U,19)=2 D SUPP^PRCFFM2M S SFUND=1
    133145 I SFUND=1 W !?3,"SEND TO SUPPLY " S PRCHQ="^PRCHPAM",D0=PRCHPO,D1=PRCHAM D ^PRCHQUE
     146 ;
    134147 D SOURCE^PRCHAMU:$G(SCE)
    135148 G EXIT
    136 ENC S ER=0
     149 ;
     150ENC ;Can
     151 S ER=0
    137152 D CAN^PRCHMA3
    138153 I $G(NOCAN)=1 W !?5,$S($D(PRCHREQ):"REQUISITION",1:"PURCHASE ORDER")_" HAS BEEN RECEIVED, CANNOT CANCEL !",$C(7) S ER=1 Q
     
    149164 S PRCHAMT=-$P(^PRC(443.6,PRCHPO,0),U,15) W !
    150165 QUIT
    151 APP S %A="   Approve Amendment number "_PRCHAM_": ",%B="",%=$S($G(PRCPROST):1,1:2) D ^PRCFYN
     166APP ;App,pr
     167 S %A="   Approve Amendment number "_PRCHAM_": ",%B="",%=$S($G(PRCPROST):1,1:2) D ^PRCFYN
    152168 Q
    153 REV N PRCH
     169REV ;Rev
     170 N PRCH
    154171 S %=1,%B="",%A="   Review Amendment " D ^PRCHSF3 W ! D ^PRCFYN
    155172 I %=1 S D0=PRCHPO,D1=PRCHAM,PRCH="^PRC(443.6," D ^PRCHDAM
    156173 Q
    157 EXIT L -^PRC(442,PRCENTRY)
     174EXIT ;Ex
     175 L -^PRC(442,PRCENTRY)
    158176EXIT1 K ERROR,FIS,REPO,DEL
    159177 QUIT:$G(PRCPROST)
    160178 I $G(OUT)'=1 G LOOP
    161179 QUIT
    162 FLAG I $G(FLAG)=1 K FLAG Q
     180 ;
     181FLAG ;
     182 I $G(FLAG)=1 K FLAG Q
    163183 Q
    164 NOSIGN S $P(^PRC(443.6,PRCHPO,6,PRCHAM,0),U,4)=PRCHAU
     184NOSIGN ;
     185 S $P(^PRC(443.6,PRCHPO,6,PRCHAM,0),U,4)=PRCHAU
    165186NOSIGN1 S DA(1)=PRCHPO,DIE="^PRC(443.6,"_DA(1)_",6,",DA=PRCHAM,DR="9///@"
    166187 D ^DIE K DIE,DA,DR
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHNPO3.m

    r628 r636  
    11PRCHNPO3 ;WISC/RSD/RHD/SC-CONT. OF NEW PO ; 4/23/99 1:39pm
    2 V ;;5.1;IFCAP;*112*;Oct 20, 2000;Build 2
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;
    55 S PRCHSZ=1
     
    3535 D SPRMK^PRCHNPO6
    3636 ;
    37 N Q:'PRCHSZ  K ^TMP($J,"PRCHS"),PRCHSIT S J=0,K=1,PRCHSIT(K)="" G:$D(PRCHPOST) 1
    38  W !?3,"Line Items: " R PRCHX:DTIME G Q:PRCHX["^"!(PRCHX=""),HLP:$E(PRCHX)="?",1:"Aa"[$E(PRCHX)
    39  F  Q:'$F(PRCHX,",,")  S PRCHX=$P(PRCHX,",,",1)_","_$P(PRCHX,",,",2,99) ; *112 remove consecutive commas
    40  S:$E(PRCHX)="," PRCHX=$E(PRCHX,2,$L(PRCHX)) ; *112 remove leading comma
    41  S:$E(PRCHX,$L(PRCHX))="," PRCHX=$E(PRCHX,1,$L(PRCHX)-1) ; *112 remove trailing comma
     37N Q:'PRCHSZ  K ^TMP($J,"PRCHS"),PRCHSIT S J=0,K=1,PRCHSIT(K)="" G:$D(PRCHPOST) 1 W !?3,"Line Items: " R PRCHX:DTIME G Q:PRCHX["^"!(PRCHX=""),HLP:$E(PRCHX)="?",1:"Aa"[$E(PRCHX)
    4238 F I=1:1 S X=$P(PRCHX,",",I) Q:X=""  I +X'=X S X(1)=$P(X,":",1),X(2)=$P(X,":",2) K:+X(1)'=X(1)!(+X(2)'=X(2))!'(X(1)<X(2)) PRCHX Q:'$D(PRCHX)  S $P(PRCHX,",",I)=X(1)_":1:"_X(2)
    4339 I '$D(PRCHX) W " ??",$C(7) G N
    44  X "F I="_PRCHX_" D IT Q:'$O(^TMP($J,""PRCHS"",0))" G:'$O(^TMP($J,"PRCHS",0)) N S ^(0)=J
     40 S:$E(PRCHX,$L(PRCHX))="," PRCHX=$E(PRCHX,1,$L(PRCHX)-1) X "F I="_PRCHX_" D IT Q:'$O(^TMP($J,""PRCHS"",0))" G:'$O(^TMP($J,"PRCHS",0)) N S ^(0)=J
    4541 ;
    46423 G 2:J=+^PRCS(410,PRCHSY,10),Q:'$O(^TMP($J,"PRCHS",0)) W !,"A new 2237 will now be created with the following items: " F K=0:0 S K=$O(PRCHSIT(K)) Q:'K  W !?3,PRCHSIT(K)
     
    8985 Q
    9086 ;
    91 VENMSG ;message to alert users that vendors don't match and that IMF will
     87VENMSG ;mesasge to alert users that vendors don't match and that IMF will
    9288 ;be updated.
    9389 W !!,"NOTE-Vendors on PO and 2237 don't match.  If you proceed IMF info"," will be used.  If there is no IMF entry for the item for this vendor one will ","be created."
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHNPO5.m

    r628 r636  
    11PRCHNPO5 ;WISC/RSD,RHD/DL-INPUT TRANSFORM FOR FILE 440,441,442 ;9/5/00  10:59
    2 V ;;5.1;IFCAP;**113**;Oct 20, 2000;Build 4
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;
    55EN1 ;FILE 442, FCP #1
     
    1717 S PRC("APP")="",X=Z0,PRC("BBFY")=$$BBFY^PRCSUT(PRC("SITE"),PRC("FY"),+X) I PRC("BBFY")="" Q
    1818 S PRC("APP")=$P($$ACC^PRC0C(PRC("SITE"),+X_"^"_PRC("FY")_"^"_PRC("BBFY")),U,11) K Z0,Z1
    19  I $P($G(^PRC(420,PRC("SITE"),1,+X,0)),U,19)=1 W !,"Sorry, this FCP is inactive!",! K X Q
    2019 Q
    2120 ;
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHNPO8.m

    r628 r636  
    11PRCHNPO8 ;WISC/RHD/DL-MISCELLANEOUS ROUTINES FROM P.O.ADD/EDIT 443.6 ;9/5/00  12:30
    2 V ;;5.1;IFCAP;**113**;Oct 20, 2000;Build 4
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;
    55EN1 ;FILE 443.6, FCP #1
     
    1515 S PRC("APP")="",X=Z0,PRC("BBFY")=$$BBFY^PRCSUT(PRC("SITE"),PRC("FY"),+X) I PRC("BBFY")="" Q
    1616 S PRC("APP")=$P($$ACC^PRC0C(PRC("SITE"),+X_"^"_PRC("FY")_"^"_PRC("BBFY")),U,11) K Z0,Z1
    17  I $P($G(^PRC(420,PRC("SITE"),1,+X,0)),U,19)=1 W !,"Sorry, this FCP is inactive!",! K X Q
    1817 Q
    1918 ;
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHPCAR.m

    r628 r636  
    11PRCHPCAR ;WISC/AKS-Front End questions for Purchase Card processes ;6/9/96  21:40
    2  ;;5.1;IFCAP;**113**;Oct 20, 2000;Build 4
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2 ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44ASKPO ;Ask If they are processing a purchase or a requisition
    55 N DIR,Y,PRCHPR,PRCHNE
     
    8383 K DA,%A,%B,%
    8484 QUIT
    85 AOCANPC ;Approving Official Cancel a purchase card order
    86  N DIC,Y,NREC,X
    87  W ! S DIC="^PRC(442,",DIC(0)="AEQM"
    88  S DIC("A")="Select PURCHASE CARD ORDER NUMBER: "
    89  S DIC("S")="I $P($G(^(7)),U,2)<9,$P($G(^(0)),U,2)=25,($P($G(^(23)),U,11)=""P""!($P($G(^(23)),U,11)=""S""))"
    90  D ^DIC Q:+Y<0  K DIC
    91  S %A="Are sure you want to cancel this order",%B="",%=2
    92  D ^PRCFYN I %<1!(%=2) K %A,%B,% Q
    93  S DA=+Y,DIE="^PRC(442,",DR=".5///^S X=45" D ^DIE K DIE,DR
    94  D C2237^PRCH442A
    95  K DA,%A,%B,%
    96  QUIT
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHQ4.m

    r628 r636  
    11PRCHQ4 ;WOIFO/LKG-RFQ Set up Transmission Records ;7/25/05  15:27
    2  ;;5.1;IFCAP;**63,114**;Oct 20, 2000;Build 4
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2 ;;5.1;IFCAP;**63**;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44HE ;Set up Heading segment
    55 N PRCN0,PRCN1,PRCA,PRCB,PRCZ,DA,DIC,DR,DIQ,X,Y
     
    9595 . S PRCD=$G(^PRC(444,PRCDA,2,PRCA,1)),PRCG=$P(PRCB,U)
    9696 . S PRCY="IT^"_PRCG_"^"_$S($P(PRCB,U,6)]"":$P(PRCB,U,6),$P(PRCB,U,5)>0:$P($G(^PRC(441.2,$P(PRCB,U,5),0)),U),1:"")_"^^^",PRCCNT=PRCCNT+1
    97  . I $P($G(^PRC(444,PRCDA,5,0)),U,4)=1,$P($G(^PRC(444,PRCDA,1)),U,8)'="y" S $P(PRCY,U,5)=$P($G(^PRC(444,PRCDA,2,PRCA,5)),U,2)
     97 . I $P($G(^PRC(444,PRCDA,5,0)),U,4)=1,$P($G(^PRC(444,PRCDA,1)),U,8)'="y" S $P(PRCY,U,5)=$P($G(^PRC(444,PRCDA,5)),U,2)
    9898 . S PRCY=PRCY_$P(PRCB,U,9)_"^"_$P(PRCB,U,8)_"^"_($P(PRCB,U,2)*100)_"^^"
    9999 . S PRCE=$P(PRCB,U,3) S:PRCE?1.N PRCH=$P($G(^PRCD(420.5,PRCE,0)),U),$P(PRCY,U,9)=PRCH
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCPLO2A.m

    r628 r636  
    11PRCPLO2A ;WOIFO/DAP-stock status report (cont) ; 1/26/06 12:00pm
    2 V ;;5.1;IFCAP;**83,98,112**;Oct 20, 2000;Build 2
     2V ;;5.1;IFCAP;**83,98**;Oct 20, 2000;Build 37
    33 ;Per VHA Directive 2004-038, this routine should not be modified.
    4  ;External reference to $$GET1^DIQ(4, is supported by ICR# 10090
    5  ; *112 changes by: VMP, Holloway,T.
    64 ;
    75ENT ;*83 Building ^TMP with total result data, totaling logic pulled from PRCPRSS0
     
    105103 ;
    106104 S %=($G(^TMP($J,1,"ISS","TOTAL"))*365)/DAYS,%=$S('TOTCLOS:0,1:-%/TOTCLOS)
    107  S $P(^TMP($J,"PRCPSSR4",STA,INV),U,1)=$J(%,0,2)
     105 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     106 S $P(^TMP($J,"PRCPSSR4",STA,INV),U,1)=%
    108107 ;Std. Turnover
    109108 S %=($G(^TMP($J,2,"ISS","TOTAL"))*365)/DAYS,%=$S('TOTCLO1:0,1:-%/TOTCLO1)
    110  S $P(^TMP($J,"PRCPSSR4",STA,INV),U,2)=$J(%,0,2)
     109 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     110 S $P(^TMP($J,"PRCPSSR4",STA,INV),U,2)=%
    111111 ;ODI Turnover
    112112 S %=($G(^TMP($J,3,"ISS","TOTAL"))*365)/DAYS,%=$S('TOTCLO2:0,1:-%/TOTCLO2)
    113  S $P(^TMP($J,"PRCPSSR4",STA,INV),U,3)=$J(%,0,2)
     113 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     114 S $P(^TMP($J,"PRCPSSR4",STA,INV),U,3)=%
    114115 ;All Turnover
    115116 S $P(^TMP($J,"PRCPSSR4",STA,INV),U,4)=+$G(^TMP($J,1,"INACTN","TOTAL"))
     
    127128 ;
    128129 S %=$S('$G(^TMP($J,1,"VALUE","TOTAL")):0,1:$G(^TMP($J,1,"INACT","TOTAL"))/$G(^TMP($J,1,"VALUE","TOTAL")))
    129  I %="" S %=0
    130  S $P(^TMP($J,"PRCPSSR4",STA,INV),U,10)=$J(%,0,2)
     130 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     131 I %="" S %=0
     132 S $P(^TMP($J,"PRCPSSR4",STA,INV),U,10)=%
    131133 ;Std. Inactive %
    132134 S %=$S('$G(^TMP($J,2,"VALUE","TOTAL")):0,1:$G(^TMP($J,2,"INACT","TOTAL"))/$G(^TMP($J,2,"VALUE","TOTAL")))
    133  I %="" S %=0
    134  S $P(^TMP($J,"PRCPSSR4",STA,INV),U,11)=$J(%,0,2)
     135 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     136 I %="" S %=0
     137 S $P(^TMP($J,"PRCPSSR4",STA,INV),U,11)=%
    135138 ;ODI Inactive %
    136139 S %=$S('$G(^TMP($J,3,"VALUE","TOTAL")):0,1:$G(^TMP($J,3,"INACT","TOTAL"))/$G(^TMP($J,3,"VALUE","TOTAL")))
    137  I %="" S %=0
    138  S $P(^TMP($J,"PRCPSSR4",STA,INV),U,12)=$J(%,0,2)
     140 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     141 I %="" S %=0
     142 S $P(^TMP($J,"PRCPSSR4",STA,INV),U,12)=%
    139143 ;All Inactive %
    140144 ;
     
    158162 ;
    159163 S %=$S('$G(^TMP($J,1,"VALUE","TOTAL")):0,1:$G(^TMP($J,1,"LONG","TOTAL"))/$G(^TMP($J,1,"VALUE","TOTAL")))
    160  I %="" S %=0
    161  S $P(^TMP($J,"PRCPSSR5",STA,INV),U,7)=$J(%,0,2)
     164 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     165 I %="" S %=0
     166 S $P(^TMP($J,"PRCPSSR5",STA,INV),U,7)=%
    162167 ;Std. Long Supply %
    163168 S %=$S('$G(^TMP($J,2,"VALUE","TOTAL")):0,1:$G(^TMP($J,2,"LONG","TOTAL"))/$G(^TMP($J,2,"VALUE","TOTAL")))
    164  I %="" S %=0
    165  S $P(^TMP($J,"PRCPSSR5",STA,INV),U,8)=$J(%,0,2)
     169 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     170 I %="" S %=0
     171 S $P(^TMP($J,"PRCPSSR5",STA,INV),U,8)=%
    166172 ;ODI Long Supply %
    167173 S %=$S('$G(^TMP($J,3,"VALUE","TOTAL")):0,1:$G(^TMP($J,3,"LONG","TOTAL"))/$G(^TMP($J,3,"VALUE","TOTAL")))
    168  I %="" S %=0
    169  S $P(^TMP($J,"PRCPSSR5",STA,INV),U,9)=$J(%,0,2)
     174 I $P(%,".",2) S %=$P(%,".",1)_"."_$E($P(%,".",2),1,2)
     175 I %="" S %=0
     176 S $P(^TMP($J,"PRCPSSR5",STA,INV),U,9)=%
    170177 ;All Long Supply %
    171178 S $P(^TMP($J,"PRCPSSR5",STA,INV),U,10)=+$G(^TMP($J,1,"CNT","TOTAL"))
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCPUSEL.m

    r628 r636  
    11PRCPUSEL ;WISC/RFJ/DAP-utilities: setup inventory variables ;14 Feb 91
    2 V ;;5.1;IFCAP;**1,83,110**;Oct 20, 2000;Build 7
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;**1,83**;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;  enter distribution point--input variables:
    55 ;  prcp("dptype")=distribution point type code [W,P,S]
     
    2020 I % S PRCF("X")="S" D ^PRCFSITE I '+$G(PRC("SITE")) K PRC,PRCP Q
    2121 ;
    22  S %=0 F I="DPTYPE","HIS","I","IN","INV" I '$G(PRCP(I)) S %=1 Q
     22 S %=0 F I="DPTYPE","HIS","I","IN","INV" I '$D(PRCP(I)) S %=1 Q
    2323 I '% D DISPLAY Q
    2424 ;
     
    101101 ;
    102102 ;
    103 PARAM(INVPT) ;  set up parameters for inventory point
     103PARAM(INVPT)       ;  set up parameters for inventory point
    104104 K PRCP
    105105 N DATA
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCSD122.m

    r628 r636  
    11PRCSD122 ;WISC/SAW-CONTROL POINT ACT. 2237 TERM. DISP. CON'T ;4/21/93  08:46
    2 V ;;5.1;IFCAP;**107**;Oct 20, 2000;Build 13
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 I IOSL-$Y<5 D NEWP^PRCSD121 Q:Z1=U
    55 W !,"JUSTIFICATION OF NEED OR TURN-IN"
     
    1515 W !,?37 K P1 S:$P(^PRCS(410,DA,7),U,3)'="" (P,P1)=$P(^(7),U,3) I $D(P1),$P(^(7),U,6)'="" W "/ES/",$$DECODE^PRCSC1(DA)
    1616 N PRSHLB S PRSHLB=^DD(410,40,0) W ?69,! I $P(^PRCS(410,DA,7),U)'="" S (P,P2)=$P(^(7),U) I $P(PRSHLB,"^",2)[200,$D(^VA(200,P,20)),$P(^(20),U,2)]"" W $E($P(^(20),U,2),1,28)
    17  I $D(P2),$P(PRSHLB,"^",2)[200,$D(^VA(200,+P2,.13)),$L($P(^(.13),U,2))'>5 W " (",$P(^(.13),U,2),")"
     17 I $D(P2),$P(PRSHLB,"^",2)[200,$D(^VA(200,+P2,.13)),$L($P(^(.13),U,2))'>4 W " (",$P(^(.13),U,2),")"
    1818 N PRSHLC S PRSHLC=^DD(410,42,0) K P2 W ?37 I $D(P1),$P(PRSHLC,"^",2)[200,$D(^VA(200,P1,20)),$P(^(20),U,2)]"" W $E($P(^(20),U,2),1,30)
    1919 W ?69,! W:$P(^PRCS(410,DA,7),U,2)'="" $P(^(7),U,2) W ?37 W:$P(^(7),U,4)'="" $P(^(7),U,4) W ?69 I $P(^(7),U,5)'="" S Y=$P(^(7),U,5) D DD^%DT W Y
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCSP122.m

    r628 r636  
    11PRCSP122 ;WISC/SAW-CONTROL POINT ACTIVITY 2237 PRINTOUT CON'T ;4/21/93  08:53
    2 V ;;5.1;IFCAP;**95,107**;Oct 20, 2000;Build 13
     2V ;;5.1;IFCAP;**95**;Oct 20, 2000
    33 ;Per VHA Directive 2004-038, this routine should not be modified.
    44 I '$D(^PRCS(410,DA,"RM",0)) G DEL
     
    2424 K P1 W !,?39,"|" S:$P(^PRCS(410,DA,7),U,3)'="" (P,P1)=$P(^(7),U,3) I $D(P1) W "/ES/",$$DECODE^PRCSC1(DA)
    2525 N PRSHLE S PRSHLE=^DD(410,40,0) W ?72,"|",! I $P(^PRCS(410,DA,7),U)'="" S (P,P2)=$P(^(7),U) I $P(PRSHLE,"^",2)[200,$D(^VA(200,P,20)),$P(^(20),U,2)]"" W $E($P(^(20),U,2),1,31)
    26  I $D(P2),$P(^DD(410,40,0),"^",2)[200,$D(^VA(200,+P2,.13)),$L($P(^(.13),U,2))'>5 W " (",$P(^(.13),U,2),")"
     26 I $D(P2),$P(^DD(410,40,0),"^",2)[200,$D(^VA(200,+P2,.13)),$L($P(^(.13),U,2))'>4 W " (",$P(^(.13),U,2),")"
    2727 K P2 W ?39,"|" I $D(P1),$P(^DD(410,42,0),"^",2)[200,$D(^VA(200,P1,20)),$P(^(20),U,2)]"" W $E($P(^(20),U,2),1,33)
    2828 W ?72,"|",! W:$P(^PRCS(410,DA,7),U,2)'="" $P(^(7),U,2) W ?39,"|" W:$P(^(7),U,4)'="" $P(^(7),U,4) W ?72,"|" S Y=$S($P(^(7),U,7):$P(^(7),U,7),1:$P(^(7),U,5)) I Y D DD^%DT W Y
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCSP1A.m

    r628 r636  
    11PRCSP1A ;WISC/SAW/BGJ-CONTROL POINT ACTIVITY PRINT OPTIONS CON'T ;5/1/92  9:20 AM [2/18/99 9:02am]
    2 V ;;5.1;IFCAP;**90**;Oct 20, 2000
     2 ;;5.1;IFCAP;**90**;Oct 20, 2000;Build 4
     3 ;Modified from FOIA VISTA,
     4 ;Copyright 2008 WorldVistA.  Licensed under the terms of the GNU
     5 ;General Public License See attached copy of the License.
     6 ;
     7 ;This program is free software; you can redistribute it and/or modify
     8 ;it under the terms of the GNU General Public License as published by
     9 ;the Free Software Foundation; either version 2 of the License, or
     10 ;(at your option) any later version.
     11 ;
     12 ;This program is distributed in the hope that it will be useful,
     13 ;but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 ;GNU General Public License for more details.
     16 ;
     17 ;You should have received a copy of the GNU General Public License along
     18 ;with this program; if not, write to the Free Software Foundation, Inc.,
     19 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
    320 ;Per VHA Directive 10-93-142, this routine should not be modified.
    421CPB ;CP BAL
     
    6077HDR2 S P=P+1 W @IOF,"CONTROL POINT BALANCE - ",Z(0)_" "_$P(PRC("CP")," ",2),?50,TDATE,?73,"PAGE ",P,! Q
    6178HOLD G HDR:$E(IOST,1,2)'="C-"
    62 CRT W !,"Press return to continue, uparrow (^) to exit: " R Z1:DTIME S:'$T Z1=U I ((Z1'=U)&&('$D(C1)))  D HDR
     79CRT W !,"Press return to continue, uparrow (^) to exit: " R Z1:DTIME S:'$T Z1=U I ((Z1'=U)&('$D(C1)))  D HDR
    6380 Q
    6481CTR ;CEILING TRANS
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCSRIG1.m

    r628 r636  
    11PRCSRIG1 ;WISC/SAW/KMB/LJP/SC-GENERATE REQUESTS FROM REPETITIVE ITEM LIST FILE (CON'T) ;3-3-93/14:30 ; 3/31/05 3:48pm
    2 V ;;5.1;IFCAP;**13,81,101,110**;Oct 20, 2000;Build 7
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
     2V ;;5.1;IFCAP;**13,81,101**;Oct 20, 2000
     3 ;Per VHA Directive 10-93-142, this routine should not be modified.
    44 ;
    55 ;PRC*5.1*81, RIL that originated thru DynaMed is NOT allowed to be
     
    3333SV ;
    3434 I (IO'=IO(0))!($D(ZTQUEUED)) D ^%ZISC
     35 G EXIT:$D(ZTQUEUED)
    3536 ;patch *81 -DynaMed trx. is not allowed to be re-used
    3637 N PRCVSY,PRCVID
     
    3839 I PRCVSY=1 S PRCVID=$$ITDMID(PRCSRID0)
    3940 I PRCVSY=1,PRCVID=1 G CHK1
    40  G EXIT:$D(ZTQUEUED)
    4141 U IO(0) S %=2 W !,"Do you wish to re-use this list " D YN^DICN G:%=1 JMP G:%=0 SV
    4242CHK1 I PRCSCT=PRCSCT(1) S DIK="^PRCS(410.3,",DA=PRCSRID0 D ^DIK G CLS
  • FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCST5.m

    r628 r636  
    1 PRCST5 ; GENERATED FROM 'PRCS APPROVE REQUEST' PRINT TEMPLATE (#299) ; 11/15/05 ; (FILE 410, MARGIN=80)
     1PRCST5 ; GENERATED FROM 'PRCS APPROVE REQUEST' PRINT TEMPLATE (#299) ; 04/11/06 ; (FILE 410, MARGIN=80)
    22 G BEGIN
    33N W !
Note: See TracChangeset for help on using the changeset viewer.