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

RCDPBTL1.m

Go to the documentation of this file.
  1. RCDPBTL1 ;WISC/RFJ-bill transaction options ;1 Jun 99
  1. ;;4.5;Accounts Receivable;**114**;Mar 20, 1995
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. Q
  1. ;
  1. ;
  1. BILLPROF ; bill profile
  1. D EN^VALM("RCDP BILL PROFILE")
  1. ;
  1. D INIT^RCDPBTLM
  1. S VALMBCK="R"
  1. ; fast exit
  1. I $G(RCDPFXIT) S VALMBCK="Q"
  1. Q
  1. ;
  1. ;
  1. TRANPROF ; transaction profile
  1. N INDEX,RCTRANDA,VALMBG,VALMLST,VALMY
  1. S VALMBCK="R"
  1. ;
  1. ; if no transactions, quit
  1. I '$O(^TMP("RCDPBTLM",$J,"IDX",0)) S VALMSG="There are NO transactions to profile." Q
  1. ;
  1. ; if only one transaction, select that one automatically
  1. I '$O(^TMP("RCDPBTLM",$J,"IDX",1)) S INDEX=1
  1. ;
  1. ; select the entry from the list
  1. I '$G(INDEX) D I 'INDEX Q
  1. . ; if not on first screen, make sure selection begins with 1
  1. . S VALMBG=1
  1. . ; if not on last screen, make sure selection ends with last
  1. . S VALMLST=$O(^TMP("RCDPBTLM",$J,"IDX",999999999),-1)
  1. . D EN^VALM2($G(XQORNOD(0)),"OS")
  1. . S INDEX=$O(VALMY(0))
  1. ;
  1. S RCTRANDA=+$G(^TMP("RCDPBTLM",$J,"IDX",INDEX,INDEX))
  1. D EN^VALM("RCDP TRANS PROFILE")
  1. ;
  1. D INIT^RCDPBTLM
  1. S VALMBCK="R"
  1. ; fast exit
  1. I $G(RCDPFXIT) S VALMBCK="Q"
  1. Q
  1. ;
  1. ;
  1. NEWBILL ; select a new bill
  1. D FULL^VALM1
  1. S VALMBCK="R"
  1. ;
  1. W !!,"This option will allow you to select a new bill to display."
  1. W ! S %=$$SELBILL^RCDPBTLM
  1. I %<1 Q
  1. S RCBILLDA=%
  1. ;
  1. ; if called from account profile, pick new account
  1. I $D(^TMP("RCDPAPLM",$J)) S RCDEBTDA=$P(^PRCA(430,RCBILLDA,0),"^",9)
  1. ;
  1. D INIT^RCDPBTLM
  1. Q