source: FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHED10.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1PRCHED10 ;WISC/TGH-IFCAP SEGMENT DL -(Partial's) ;1/30/92 3:41 PM
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;;
5DL(VAR1,PRCHPAR) ;Prism delivery Order Line
6 N A2,A3,DAT,DESCLN,SKU,X,Y,I0,I2,I4,ITEM
7 S (ITEM,ITEMCNT)=0,TOTAL=$P($G(^PRC(442,VAR1,2,0)),U,4)+7
8 S A2=2,A3="DE"
9 D NOW^%DTC S X=$P(%,".") D JD^PRCFDLN S DAT=$E(X,1,3)+1700_$E(Y,1,3)
10 F S ITEM=$O(^PRC(442,VAR1,2,ITEM)) K PRCHTP1 Q:ITEM'>0 D
11 .S I0=$G(^PRC(442,VAR1,2,ITEM,0))
12 .;S DESCLN=$G(^PRC(442,VAR1,2,ITEM,1,0)),DESCLN=$P(DESCLN,U,4)
13 .S I2=$G(^PRC(442,VAR1,2,ITEM,2))
14 .S I4=$G(^PRC(442,VAR1,2,ITEM,4))
15 .;
16 .S PRCHTP1(0,20)="|DL"
17 .;REC DATE
18 .;SKU TOTAL
19 .S PRCHTP1(0,2)=$P(I0,U,13) ;NSN
20 .S PRCHTP1(0,1)=$P(I0,U) ;ITEM LINE NO.
21 .S PRCHTP1(1,8)=$P(I2,U,2) ;CONTRACT #
22 .;STATUS
23 .S PRCHTP1(1,10)=0
24 .D
25 ..N I,J S (I,J)=""
26 ..S $P(^PRCF(423,PRCFA("CSDA"),52,0),U,3,4)=$P(^PRC(442,VAR1,2,0),U,3,4)
27 ..F S I=$O(PRCHTP1(I)) Q:I="" F S J=$O(PRCHTP1(I,J)) Q:J="" D
28 ...S $P(^PRCF(423,PRCFA("CSDA"),52,ITEM,I),U,J)=PRCHTP1(I,J)
29 ...Q
Note: See TracBrowser for help on using the repository browser.