source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCFDCI1.m@ 1203

Last change on this file since 1203 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1PRCFDCI1 ;WISC@ALTOONA/CTB-APPROVE CHECKED IN INVOICE ;9/15/95 10:38
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4OUT K PRCFD("LOGIN"),PRCFDX("ED") D OUT^PRCFDE Q
5CERT ;CERTIFY ALREADY CHECKED IN DOCUMENT
6 S PRCFD("LOGIN")="",PRCFDX("ED")=""
7 S PRCF("X")="AS" D ^PRCFSITE Q:'%
8 S DIC("A")="Select/Barcode INVOICE TRACKING NUMBER: "
9C1 S DIC=421.5,DIC(0)="AEMNZ",DIC("S")="I $D(^(2)),+^(2)=10" D ^DIC K DIC G:Y<0 OUT
10 S (PRCF("CIDA"),DA)=+Y K PRCFD("RECERT")
11 W:$$CLSD1358^PRCFDE2($P(Y(0),U,7),1) !
12 S %A="Do you wish to edit any of the basic invoice information"
13 S %B="",%=2 D ^PRCFYN G OUT:%<0
14 I %=1 D PAT^PRCFDE W !! G:$D(PRCFD("^")) OUT
15 I $D(PRCF("CIDA")) D:'$D(PRCFD("RECERT")) DIE^PRCFDCI
16 S DIC("A")="Select/Barcode Next INVOICE TRACKING NUMBER: "
17 G OUT:$D(PRCFD("^")),C1
18VIEW ;VIEW INDIVIDUAL CERTIFIED INVOICE
19 S PRCF("X")="AS" D ^PRCFSITE G OUTV:'%
20 S DIC=421.5,DIC(0)="AEMNZ" D ^DIC G OUTV:Y<0
21 S DA=+Y,%H=$H D YX^%DTC S Y=$P(Y,"@")_" "_$P($P(Y,"@",2),":",1,2) K %H
22 S X="" S:$D(IOM) $P(X,"-",IOM)=""
23 W @IOF,!,"INVOICE TRACKING LIST",?43,Y," ","PAGE 1",!,X
24 K X,DR S DIC="^PRCF(421.5,",DIQ(0)="C",PRCF("VIEW")="" D EN^DIQ K DIQ
25 D OUTV G VIEW
26OUTV K DIC,DA,DR,PRCF,X,Y Q
27CANC ;CANCEL CERTIFIED RECORD
28 ;CURRENT STATUS MUST BE LESS THAN TRANSACTION COMPLETE
29 S PRCF("X")="AS" D ^PRCFSITE Q:'%
30 S DIC=421.5,DIC(0)="AEMN",DIC("S")="I $S('$D(^(2)):1,$P(^(2),U)<20:1,1:0)"
31 D ^DIC K DIC I +Y<0 D OUTV Q
32 S %A="Are you SURE that you want to cancel this record",%B="",%=2
33 D ^PRCFYN I %<0 D OUTV Q
34 I %=2 D OUTV G CANC
35 S (DA,PRCF("CIDA"))=+Y D WAIT^PRCFYN S X=$S($D(^PRCF(421.5,DA,2))'["0":$P(^(2),"^",6,8),1:"") S:X]"" $P(^(2),"^",6,8)="^^" S $P(^(0),"^",14,15)="0^0"
36 I $P(X,"^",3)]"" K ^PRCF(421.5,"AC",$P(X,"^",3),DA)
37 S X=25 D STATUS^PRCFDE1
38 S %A="Do you wish to cancel another Certified Invoice record",%B="",%=1
39 W ! D ^PRCFYN I %'=1 D OUTV Q
40 D OUTV G CANC
Note: See TracBrowser for help on using the repository browser.