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

PRCABIL4.m

Go to the documentation of this file.
  1. PRCABIL4 ;WIRMFO/RWT-DELETE BILL LEAVING AUDIT TRAIL
  1. V ;;4.5;Accounts Receivable;**67**;March 20, 1995
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. DELETE ;Deletes a Bill leaving an audit trail
  1. ;REQUIRES PRCABN=Bill IEN to delete
  1. ; PRCACOMM=Reason why this bill is being deleted
  1. N PRCACAT,PRCASTAT,PRCAID,B0,DIK,DIE,DA,DR
  1. I '$D(^PRCA(430,PRCABN,0)) Q
  1. S B0=$G(^PRCA(430,PRCABN,0))
  1. S PRCAID=$P(B0,U,1),PRCACAT=$P(B0,U,2),PRCASTAT=$P(B0,U,8)
  1. S DIK="^PRCA(430,",DA=PRCABN D ^DIK K DIK
  1. ;
  1. ; Now Add it back in w/ audit trails
  1. S X=PRCAID,DINUM=PRCABN,DIC="^PRCA(430,",DIC(0)="L",DLAYGO=430
  1. K DD,DO D FILE^DICN K DIC,DLAYGO,DO
  1. ;
  1. ; Ensure that the last entry number counter is correct
  1. S $P(^PRCA(430,0),U,3)=$O(^PRCA(430,"A"),-1)
  1. ;
  1. S DIE="^PRCA(430,",DR="[PRCA CREATE BILL STUB]",DA=PRCABN D ^DIE
  1. Q