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

PRCFFU9.m

Go to the documentation of this file.
  1. PRCFFU9 ;WISC/SJG-OBLIGATION PROCESSING UTILITIES, CON'T ;7/24/00 23:11
  1. V ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ; No Top Level Entry
  1. ;
  1. ; set PRCFA("MOMREQ")=1 if the edit needs to be sent to FMS or affects
  1. ; fiscal logs/files ('MOM')
  1. ;
  1. QUIT
  1. ;
  1. TAG20 ; SHIP TO Edit - not needed by 'MOM'
  1. S PRCFA("SHIP")="SHIP TO Edit"
  1. Q
  1. TAG21 ; LINE ITEM Add - change info from Node 22
  1. I PRCFA("DEL")]"" S PRCFA("MOMREQ")=1
  1. Q
  1. TAG22 ; LINE ITEM Delete - change info from Node 22
  1. Q
  1. TAG23 ; LINE ITEM Edit - change info from Node 22
  1. I PRCFA("DEL")]"" S PRCFA("MOMREQ")=1
  1. Q
  1. TAG24 ; SOURCE CODE Edit - not needed by 'MOM'
  1. S PRCFA("SOURCE")="SOURCE CODE Edit"
  1. Q
  1. TAG25 ; Edit MAIL INVOICE TO - not needed by 'MOM'
  1. S PRCFA("MAIL")="MAIL INVOICE TO Edit"
  1. Q
  1. TAG26 ; Edit METHOD OF PAYMENT - not needed by 'MOM
  1. S PRCFA("MOP")="Edit METHOD OF PAYMENT"
  1. Q
  1. TAG27 ; ADMINISTRATIVE CERTIFICATION Add - not needed by 'MOM'
  1. S PRCFA("ADMADD")="ADMINISTRATIVE CERTIFICATION Add"
  1. Q
  1. TAG28 ; ADMINISTRATIVE CERTIFICATION Delete - not needed by 'MOM'
  1. S PRCFA("ADMDEL")="ADMINISTRATIVE CERTIFICATION Delete"
  1. Q
  1. TAG29 ; EST. SHIPPING Edit
  1. S PRCFA("EST")=1,PRCFA("MOMREQ")=1
  1. Q
  1. TAG30 ; F.C.P. Edit
  1. S PRCFA("FCP")="",PRCFA("MOMREQ")=1
  1. D CANCEL^PRCFFU8(PRCFA("REF"),PRCFA("TT"))
  1. S PRCFA("FCP")=1
  1. Q
  1. TAG31 ; Change VENDOR"
  1. S PRCFA("MOMREQ")=1
  1. D CANCEL^PRCFFU8(PRCFA("REF"),PRCFA("TT"))
  1. S PRCFA("VEND")=1
  1. Q
  1. TAG32 ; REPLACE P.O. NUMBER
  1. S PRCFA("MOMREQ")=1
  1. D CANCEL^PRCFFU8(PRCFA("REF"),PRCFA("TT"))
  1. D GENDIQ^PRCFFU7(442,POIEN,"27;28","IEN","")
  1. S PRCFA("PODA")=+$G(PRCTMP(442,POIEN,28,"I"))
  1. S PRCFA("REF")=$G(PRCTMP(442,POIEN,28,"E"))
  1. S PRCFA("NEWREF")=PRCFA("REF"),PRCFA("NEWPODA")=PRCFA("PODA")
  1. S PRCFA("PO")=1
  1. Q
  1. TAG33 ; PROMPT PAYMENT Edit
  1. S PRCFA("PPT")=1,PRCFA("MOMREQ")=1
  1. Q
  1. TAG34 ; AUTHORITY Edit - not needed by 'MOM'
  1. S PRCFA("AUTH")="AUTHORITY Edit"
  1. Q
  1. TAG35 ; F.O.B. Point Edit
  1. S PRCFA("FOB")=1,PRCFA("MOMREQ")=1
  1. Q
  1. TAG36 ; ITEM DISCOUNT Add
  1. Q
  1. TAG37 ; ITEM DISCOUNT Delete
  1. Q
  1. TAG38 ; ITEM DISCOUNT Edit
  1. Q
  1. TAG98 ; DELIVERY DATE/DELIVERY SCHEDULE Change
  1. S PRCFA("DEL")=1,PRCFA("MOMREQ")=1
  1. Q
  1. TAG99 ; 'NET AMOUNT' of P.O. before amendment
  1. Q
  1. TAG0 ; BOC Edit
  1. S PRCFA("MOMREQ")=1
  1. D BOCSET,BOCDIQ
  1. F LOOP2=.01,1,2 S LOOP2=$O(NEW(SUB,ITEM,LOOP2)) D
  1. .S BOC=NEW(SUB,ITEM,.01,"I")
  1. .S NEWVAL=NEW(SUB,ITEM,1,"I")
  1. .S AMT=NEWVAL-OLDVAL D
  1. ..I AMT>0 S IDFLAG="I"
  1. ..I AMT<0 S IDFLAG="D"
  1. .S LIN=NEW(SUB,ITEM,2,"I")
  1. .Q:(BOC=0)&(LIN=991)
  1. .S PRCFCHG("BOC",BOC,LIN)=BOC_U_AMT_U_LIN_U_IDFLAG
  1. S PRCFA("BOC")=1
  1. Q
  1. TAGE ; Cancellation of PO by Authority 'E'
  1. S PRCFA("AUTHE")=1
  1. D CANCEL^PRCFFU8(PRCFA("REF"),PRCFA("TT"))
  1. Q
  1. BOCSET ; Set data values for call to DIQ1 for BOCs
  1. S FLDS=$P(OLD(LOOP),U,3),ITEM=$P(OLD(LOOP),U,4)
  1. S TOP=$P(FLDS,":",2),BOT=$P($P(FLDS,":",1),";",1),SUB=$P($P(FLDS,":",1),";",2)
  1. Q
  1. BOCDIQ ; Call DIQ1 for BOCs
  1. N DA S DIC=442,DR=TOP,DA=+POIEN,DIQ="NEW(",DIQ(0)="IEN"
  1. S DR(SUB)=".01;1;2",DA(SUB)=ITEM
  1. D EN^DIQ1
  1. Q
  1. DELSCH ; Set data values for cal to DIQ1 for Delivery Schedule
  1. S FLDS=$P(OLD(LOOP),U,3),DELCHG=$P(OLD(LOOP),U,7)
  1. S FLD=$P(FLDS,";"),FILE=$P($P(FLDS,":"),";",2)
  1. Q:FILE'=442.8 Q:FLD'=2
  1. S PRCFA("DELSCH")=1,PRCFA("MOMREQ")=1
  1. Q