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

RCXVDC8.m

Go to the documentation of this file.
  1. RCXVDC8 ;DAOU/ALA-AR Data Extraction Data Creation ;02-JUL-03
  1. ;;4.5;Accounts Receivable;**201,228**;Mar 20, 1995
  1. ;
  1. ; AR Batch Payment File (# 344)
  1. Q
  1. D344 ;
  1. N RCSITE
  1. S RCXVD=$G(^RCY(344,RCXVD0,0)) ;
  1. S RCXVP1=$P(RCXVD,U,6) ; PTR TO DEPOSIT TICKET
  1. I RCXVP1="" Q
  1. S RCXVD1=$G(^RCY(344.1,RCXVP1,0))
  1. ;
  1. S RCXVDA=$P(RCXVD,U,1)
  1. S RCXVDA=RCXVDA_RCXVU_$P(RCXVD1,U,1) ; Ticket # (P)
  1. S RCXVDA=RCXVDA_RCXVU_$E($$HLDATE^HLFNC($P(RCXVD,U,8)),1,8) ; Date/Time Proc
  1. S RCXVDA=RCXVDA_RCXVU_$P(RCXVD1,U,4) ; (344.1) Amt Deposit
  1. S RCXVDA=RCXVDA_RCXVU_$$RECTOTAL^RCDPURED(RCXVP1) ; Totl Amt of Receipts (Comp)
  1. S RCXVDA=RCXVDA_RCXVU_$$RECCOUNT^RCDPURED(RCXVP1) ; Totl Receipts (Comp)
  1. S RCSITE=$P($$SITE^VASITE(),U,3)
  1. S RCXVDA=RCXVDA_U_RCSITE
  1. S ^TMP($J,"RCXVDC8",RCXVD0)=RCXVDA
  1. W "REC:"_$P(RCXVDA,RCXVU,1),!
  1. W "344:"_$P(RCXVDA,RCXVU,2,7),!
  1. ;
  1. S RCXVI=""
  1. F S RCXVI=$O(^TMP($J,"7-162A",RCXVI)) Q:RCXVI="" D
  1. . W "162:"_$G(^TMP($J,"7-162A",RCXVI))
  1. . W !
  1. Q
  1. ;