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
Print Page as PDF
Routine: RCDPCRR

Package: Accounts Receivable

Routine: RCDPCRR


Information

RCDPCRR ;ALB/TJB - CARC/RARC DATA TABLE REPORT ;11/03/14 1:00pm

Source Information

Source file <RCDPCRR.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; Entry point for Report
R1 ;
DT1 ; Check the date
ENQ ; Return here for queued print
REPORT ;
; Report
ARCQ ; Clean up and quit
GETCODES(CARC,RARC,STAT,RDT,ARRAY,DESC) ;
; CARC = CARC data to retrieve
; RARC = RARC data to retrieve
; CARC and RARC can be a single code, a list of codes, range or combination.
; STAT = Retrieve Active, Inactive or Both codes
; RDT = Report date (used to determine Active/Inactive status)
; ARRAY = Stuff the data into ARRAY passed for as a string for indirection
; DESC (optional) = Add description to ARRAY, second ^ is length, if
; undefined or less than 10 characters description
; length will be 10 characters, maximum is 250 characters
ELEM(TYPE,FILE,DAT,STAT,RDT,ARRAY,DESC) ;
STAT(INC,ZDT,SP,ST) ; Determine if this code should be included in report
; INC = Active, Inactive, Both; ZDT = Date of report ; ST = Start date of code ; SP = Stop Date of code
GCARC(RET) ; Get CARC data elements for report
C1
C2
LIST(FILE) ; Used for "??" to list the CARC or RARC code and 60 characters of the description
GRARC(RET) ; Get RARC data elements for report
G1
G2
GCD(RET,CS) ; Get CARC and/or RARC data elements for Quick Search report
GC1 ;if invalid code return here
DATE(X,F) ; date in external format See XLFDT1 for codes
HDR2(ST,RT,DT) ; Report header
HDR3() ; Fuction to return report column header lines, just used within this routine.
HDRP(Z,X,Z1) ; Print Header (Z=String, X=1 (line feed) X=0 (no LF), Z1 (page number right justified)
NEWPG(RCPG,RCNEW,RCSL) ; Check for new page needed, output header
; RCPG = Page number passwd by referece
; RCNEW = 1 to force new page
; RCSL = page length passed by reference
; Function returns 1 if user chooses to stop output
VAL(XF,CODE) ; Validate a range or list of CARC (345), RARC (346) or PLB (345.1) Codes
; If invalid code is found VAILD = 0 and CODE will contain the offending codes
UP(TEXT) ; Translate text to upper case

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"Error: No Codes selected for display...",!,"Please select either CARC and/or RARC to include on report",!
  • Line Location: R1+14
Function Call: WRITE
  • Prompt: !,"Invalid date entered, no records for report.",!,"Please select a date after 1/1/1995.",!
  • Line Location: DT1+5
Function Call: WRITE
  • Prompt: !
  • Line Location: DT1+7
Function Call: WRITE
  • Prompt: !!,$S($D(ZTSK):"Your task number"_ZTSK_" has been queued.",1:"Unable to queue this job.")
  • Line Location: DT1+17
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: REPORT+3
Function Call: WRITE
  • Prompt: !!
  • Line Location: REPORT+7
Function Call: WRITE
  • Prompt: $$HDR3(),!
  • Line Location: REPORT+8
Function Call: WRITE
  • Prompt: RCHR,!
  • Line Location: REPORT+9
Function Call: WRITE
  • Prompt: "CODE^START^STOP^MODIFIED^VDATE^TYPE^DESCRIPTION^NOTES",!
  • Line Location: REPORT+10
Function Call: WRITE
  • Prompt: EXLN,!
  • Line Location: REPORT+25
Function Call: WRITE
  • Prompt: ?(4-$L($P(ZN,U,1))),$P(ZN,U,1),?8,$$DATE($P(ZN,U,2))
  • Line Location: REPORT+27
Function Call: WRITE
  • Prompt: ?64,$$DATE($P($P(ZN,U,5),".",1))
  • Condition for execution: $P(ZN,U,4)'="" ?35,$$DATE($P(ZN,U,4)) W ?51,TY W:$P(ZN,U,5)'=""
  • Line Location: REPORT+28
Function Call: WRITE
  • Prompt: !
  • Line Location: REPORT+28
Function Call: WRITE
  • Prompt: !
  • Line Location: REPORT+37
Function Call: WRITE
  • Prompt: !!,"Code: "_RCODE_" not found. Please try again...",!
  • Line Location: C1+9
Function Call: WRITE
  • Prompt: !!,"Code: "_RCODE_" not found, Please reenter...",!
  • Line Location: C1+10
Function Call: WRITE
  • Prompt: !!,"Code: "_RCODE_" not found. Please try again...",!
  • Line Location: C2+8
Function Call: WRITE
  • Prompt: !!,"Code: "_RCODE_" not found. Please try again...",!
  • Line Location: G1+9
Function Call: WRITE
  • Prompt: !!,"Code: "_RCODE_" not found, Please try again...",!
  • Line Location: G1+10
Function Call: WRITE
  • Prompt: !!,"Code: "_RCODE_" not found, Please try again...",!
  • Line Location: G2+9
Function Call: WRITE
  • Prompt: !!,"Code: "_RCLIST_" not found. Please try again...",!
  • Line Location: GC1+8
Function Call: WRITE
  • Prompt: !!,"Code: "_CD_" not found. Please try again...",!
  • Line Location: GC1+11
Function Call: WRITE
  • Prompt: !
  • Line Location: HDRP+1
Function Call: WRITE
  • Prompt: ?(IOM-$L(Z)\2),Z
  • Line Location: HDRP+2
Function Call: WRITE
  • Prompt: ?(IOM-$L(Z1)),Z1
  • Condition for execution: $G(Z1)]""
  • Line Location: HDRP+2
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: NEWPG+8
Function Call: WRITE
  • Prompt: !!
  • Line Location: NEWPG+12
Function Call: WRITE
  • Prompt: $$HDR3(),!
  • Line Location: NEWPG+13
Function Call: WRITE
  • Prompt: RCHR,!
  • Line Location: NEWPG+14
Info |  Source |  Entry Points |  Interaction Calls