Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: RCDPTAR

Package: Accounts Receivable

Routine: RCDPTAR


Information

RCDPTAR ;ALB/TJB - EFT TRANSACTION AUDIT REPORT ;1/02/15

Source Information

Source file <RCDPTAR.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; Main entry point for this report
; Ask Summary or Detail output
ASKSUM2() ; Ask the user if they want to display the summary report by Deposit Date
; or by Deposit Number
; Input: None
; Returns: -1 - User quit or timed out
; 1 - Display Summary report by Deposit Date
; 2 - Display Summary report by Deposit Number
DET ; Entry point for detailed report
; Input: variable RCREP defined and equal to "D"
; Output: Written to device
DET1 ; Prompt for user selection criteria
SHOWONE(STOP) ; Prompt for device and output data for one EFT
; Input: STOP - Initially set to 0
; Output: STOP - 1 user entered '^', 0 otherwise
RUN(RCDATA) ; Compile and output the report
; Input: RCDATA - see subroutine EFTDA for delimited list of fields
; Output: none
DN(RCDATA) ; Lookup by Deposit Number
; Input: RCDATA - null on entry
; Output: RCDATA - passed by refence - see subroutine EFTDATA for delimited list of fields
; Note variable RCDEFLUP is needed by LOOKUP^RCDPUDEP, which is called by the .01 field
DN2 ; Lookup Deposit Number ;PRCA*4.5*371 Added looping Tag
DT(RCDATA) ; Deposit Date
; Input: RCDATA - null on entry
; Output: RCDATA - passed by refence - see subroutine EFTDATA for delimited list of fields
DT1 ; Ask the user for the Deposit Date
DT2 ; Multiple entries found so prompt for the one that is wanted ;PRCA*4.5*371 Added looping Tag
TR(RCDATA) ; Lookup by Trace Number
; Input: RCDATA - null on entry
; Output: RCDATA - passed by refence - see subroutine EFTDATA for delimited list of fields
TR2 ; Use "F" index in EDI EFT Detail file ;PRCA*4.5*371 Added looping Tag
EFT(LOCKIEN) ; Select a single EFT Number
; Input: LOCKIEN - IEN for LOCKBOX DEPOSIT (#344.3)
; Return: LIST(Y) - Delimiter list of information as returned by suboutine EFTDATA
EFT1 ;
EFTDATA(EFTIEN) ; Get associated records for this EFT
; Input: EFTIEN - IEN for EFT [344.31]
; Returns: A1^A2^A3^A4^45
; where A1=ERAIEN - IEN for ERA (#344.4)
; A2=LOCKIEN - IEN for LOCKBOX DEPOSIT (#344.3)
; A3=EFTIEN - IEN for EFT (#344.31)
; A4=DEPIEN - IEN for AR DEPOSIT (#344.1)
; A5=BATCHIEN - IEN for AR BATCH PAYMENT (#344)
DISPLAY(EFTIEN,LOCKIEN) ; Display EFT detail during user selection process
; Input: EFTIEN - IEN for EFT (#344.31)
; LOCKIEN - IEN for LOCKBOX DEPOSIT (#344.3)
; Return: X1_" "_X2_" "_X3_" "_X4_" "_X5
; where X1=PAYER NAME
; X2=TRACE NUMBER
; X3=AMOUNT OF PAYMENT
; X4=DEPOSIT NUMBER
; X5=DEPOSIT DATE
COMPILE(RCDATA) ; Compile data for display
; Input: RCDATA - see subroutine EFTDA for delimited list of fields
; Output: ^TMP("RCDPTAR",$J)
REPORT(RCDATA) ; Print out the report
; Input: RCDATA - see subroutine EFTDA about for delimited list of fields
; Output: Write statements
HEADER(RCNOW,RCPG,RCHR,RCDATA) ; Print Header Section
; Input: RCNOW - DATE/TIME in external format
; RCPG - Current page number
; RCHR - Line of "-" to margin width
; RCDATA - See subroutine EFTDA about for delimited list of fields
; Output: Write statements
PAUSE() ; Pause at end of each page for user input
; Input: None
; Output: User response
CHKP(RCNOW,RCPG,RCHR,RCDATA,RCSCR,LINES) ; Check if we need to do a page break
; Input: RCNOW - DATE/TIME in external format
; RCPG - Current page number
; RCHR - Line of "-" to margin width
; RCDATA - See subroutine EFTDA about for delimited list of fields
; RCSCR - 1 - Output is going to the users screen, 0 - to printer
; LINES - Current line count
AGED(EFTIEN) ; Check if EFT is locked or stale
; Input
; EFTIEN: IEN of EDI THIRD PARTY EFT DETAIL (#344.31)
; Output
; "*" - Warning; "**" - Error; Null - Good

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !
  • Line Location: EN+4
Function Call: WRITE
  • Prompt: !,$S($D(ZTSK):"REQUEST QUEUED TASK="_ZTSK,1:"REQUEST CANCELLED")
  • Line Location: SHOWONE+15
Function Call: WRITE
  • Prompt: !
  • Line Location: DN2+1
Function Call: WRITE
  • Prompt: !!,"EFT NOT FOUND - please check Deposit"
  • Line Location: DN2+9
Function Call: WRITE
  • Prompt: !,"Date ",$$DATE^RCDPRU(RCDT)," does not have any valid deposits, please try again...",!
  • Line Location: DT1+30
Function Call: WRITE
  • Prompt: !!,"Deposits on ",$$DATE^RCDPRU(RCDT)
  • Line Location: DT2+1
Function Call: WRITE
  • Prompt: !," ",$P(DATA,U,3)
  • Line Location: DT2+9
Function Call: WRITE
  • Prompt: !
  • Line Location: DT2+12
Function Call: WRITE
  • Prompt: !
  • Line Location: TR2+1
Function Call: WRITE
  • Prompt: !!,"No EFT detail for this selection"
  • Line Location: EFT+4
Function Call: WRITE
  • Prompt: !!,"No EFT detail for this selection"
  • Line Location: EFT+12
Function Call: WRITE
  • Prompt: !,"No data found"
  • Line Location: REPORT+12
Function Call: WRITE
  • Prompt: !,$$DATE^RCDPRU(DATE,"2DZ"),?10,$P(DATA,U,1),?51,$P(DATA,U,2)
  • Line Location: REPORT+22
Function Call: WRITE
  • Prompt: !,?10,$P(DATA,U,3),?51,$P(DATA,U,4)
  • Line Location: REPORT+23
Function Call: WRITE
  • Prompt: !,@IOF
  • Line Location: REPORT+25
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: HEADER+10
Function Call: WRITE
  • Prompt: "EFT TRANSACTION AUDIT REPORT"
  • Line Location: HEADER+12
Function Call: WRITE
  • Prompt: ?(IOM-$L(LINE)),LINE
  • Line Location: HEADER+14
Function Call: WRITE
  • Prompt: !,"EFT#: ",$$AGED(+$P(RCDATA,U,3)),$$GET1^DIQ(344.31,$P(RCDATA,U,3)_",",.01,"E"),?19,"DEPOSIT#: ",$P($G(^RCY(344.3,+$P(RCDATA,U,2),0)),U,6),?42,"EFT TOTAL AMT: "_$S($P(EFTDATA,U,16)="D":"-",1:"")_$P(EFTDATA,U,7)
  • Line Location: HEADER+16
Function Call: WRITE
  • Prompt: !,"EFT TRACE#: ",$P(EFTDATA,U,4)
  • Line Location: HEADER+17
Function Call: WRITE
  • Prompt: !,"DATE RECEIVED: ",$$DATE^RCDPRU($P(EFTDATA,U,12)),?26,"PAYER/ID: "_$P(EFTDATA,U,2)_"/"_$P(EFTDATA,U,3)
  • Line Location: HEADER+18
Function Call: WRITE
  • Prompt: !,"DATE",?10,"ACTION/DETAILS",?51,"STATUS"
  • Line Location: HEADER+20
Function Call: WRITE
  • Prompt: !,RCHR
  • Line Location: HEADER+21

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^RCY(344 - [#344] GET1^DIQ
^RCY(344.1 - [#344.1] Classic Fileman Calls,  GET1^DIQ
^RCY(344.3 - [#344.3] GET1^DIQ,  GETS^DIQ
^RCY(344.31 - [#344.31] Classic Fileman Calls,  GET1^DIQ
344.314 GETS^DIQ
^RCY(344.4 - [#344.4] GET1^DIQ
^RCY(344.61 - [#344.61] GET1^DIQ
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call