Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: RCDPUREC

Package: Accounts Receivable

Routine: RCDPUREC


Information

RCDPUREC ;WISC/RFJ - receipt utilities ;Jun 06, 2014@19:11:19

Source Information

Source file <RCDPUREC.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
VA FileMan 6 ^DIC  FILE^DICN  ^DIE  ^DIK  ($$GET1,GETS)^DIQ  ^DIR  
Accounts Receivable 3 ($$EDILBEV,$$LBEVENT)^RCDPEU  $$ASKEFT^RCDPEU2  EDIT4^RCDPURE1  
Generic Code Sheet 1 $$STATUS^GECSSGET  
Kernel 1 OWNSKEY^XUSRB  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 27

Package Total Caller Graph
Accounts Receivable 26 RCDPDPL1  RCDPDPLM  RCDPE8NZ  RCDPEAP  RCDPEM0  RCDPEM21  RCDPEMA  RCDPEREC  
RCDPEWL4  RCDPEWL5  RCDPEWL7  RCDPLPL1  RCDPLPL2  RCDPLPL4  RCDPLPLM  RCDPRLIS  
RCDPRPL1  RCDPRPL3  RCDPRPL4  RCDPRPLM  RCDPTAR  RCDPURE1  RCDPURET  RCDPUT  
RCDPXPAP  ^RCY(344  
Integrated Billing 1 IBJTTB1  

Entry Points

Name Comments DBIA/ICR reference
ADDRECT(TRANDATE,RCDEPTDA,PAYTYPDA) ; add a receipt
BLDRCPT(TRANDATE,RCDEPTDA,PAYTYPDA,RCDUZ) ; function, Build a receipt with/without deposit
; LAYGO new entry to AR BATCH PAYMENT file (#344)
; returns new IEN on success, else zero
NEXT(RECEIPT) ; function, get next 2 chars. in sequence 00 to ZZ for receipt
SELRECT(ADDNEW,RCDEPTDA) ; select a receipt
; if $g(addnew) allow adding a new receipt
; if $g(rcdeptda) allow selection of receipts for the deposit only
; if $g(addnew) and $g(rcdeptda) deposit number auto set for new receipt
; returns -1 for timeout or ^, 0 for no selection, or ien of receipt
DICW ; write identifier code for receipt lookup
LOOKUP ; special lookup on receipts, called from ^dd(344,.01,7.5)
; if rcreflup flag not set, do not use special lookup
EDITREC(DA,DR) ; edit the receipt (DR = string of fields to ask) in AR BATCH PAYMENT file (#344)
; RCBPYMNT - AR BATCH PAYMENT entry before edit
LBT(Y) ; Determine if Y should be set to @99 in DR string to skip field #.18 ERA REFERENCE
; DR(1,344,2)="I $P($G(^RCY(344,DA,0)),U,17) S Y=""@1001"";.06;@1001;D LBT^RCDPUREC(.Y);.18;@99"
; code below assumes DA,RCM3 are set
TYP(Y) ; Determine where to jump to in the 'type' edit of
; Y - passed by ref. from DR string logic
; DR(1,344,1)="@20;.04;S RCNO=0,RCN4=X D TYP^RCDPUREC(.Y);.17////^S X=RCNE;S Y=""@22"";@21;.04////^S X=RCO4;I RCOE="""" S Y=""@23"";.17////^S X=RCOE;@23;W !,*7,$S(RCO4=14:$S('RCNO:RCM1,1:RCM2),1:RCM) S Y=""@20"";@22"
; Assumes RCP,RCNO,RCN4,RCO4,DA defined
TYPQ ;
; If type changed to EDI LOCKBOX, must have an EFT reference
LASTEDIT(DA) ; set when receipt last edit
MARKPROC(DA,FMSDOCNO) ; mark receipt as processed, set receipt as closed,
; store fms document number if passed
FMSSTAT(RCRECTDA) ; return the fms cr document ^ status ^ if sent before lockbox
  • ICR #6851
    • Status: Active
    • Usage: Private
    ASK17(DA) ; function, Ask, return the EFT detail record IEN for a receipt
    ; Input: DA = the ien of the RECEIPT (file 344)
    ; Returns: IEN in EDI THIRD PARTY EFT DETAIL (#344.31) or zero
    G17 ; Reprompt for new EFT
    G1
    EFTKEY() ;Check if user has UNMATCH EFT key
    ; Input: None
    ; Returns; 1 if user owns RCDPEPP key ; otherwise 0.
    EFTUPD(DA,MATCH) ; Update EFT record if payment type is changed
    ; Input: DA = Internal entry number of EFT record.
    ; MATCH = New match status for the EFT
    ; Output: Notification to user screen, RCMSG.
    PAUSE ; Pause screen till user hits enter
    ; Input: None
    ; output: None
    DIC19 ;

    External References

    Name Field # of Occurrence
    ^DIC SELRECT+28
    FILE^DICN BLDRCPT+36
    ^DIE SELRECT+36, EDITREC+14, EDITREC+18, EDITREC+23, EDITREC+31, EDITREC+40, LASTEDIT+4, MARKPROC+6, EFTUPD+6
    ^DIK SELRECT+34
    $$GET1^DIQ TYP+15, TYP+25, ASK17+9, EFTUPD+7, EFTUPD+9
    GETS^DIQ ASK17+8
    ^DIR TYP+26, ASK17+18, PAUSE+4
    $$STATUS^GECSSGET FMSSTAT+6
    $$EDILBEV^RCDPEU EDITREC+18
    $$LBEVENT^RCDPEU SELRECT+22, LBT+5
    $$ASKEFT^RCDPEU2 G1
    EDIT4^RCDPURE1 EDITREC+9
    OWNSKEY^XUSRB EFTKEY+4

    Interaction Calls

    Name Line Occurrences
    Function Call: WRITE
    • Prompt: !,*7,"NO EFT REFERENCED - RECEIPT NOT ADDED"
    • Line Location: SELRECT+33
    Function Call: WRITE
    • Prompt: ?13,"by: ",$E($P($G(^VA(200,+$P(DATA,"^",2),0)),"^"),1,15)
    • Line Location: DICW+4
    Function Call: WRITE
    • Prompt: ?35," on: ",$E($P(DATA,"^",3),4,5),"/",$E($P(DATA,"^",3),6,7),"/",$E($P(DATA,"^",3),2,3)
    • Line Location: DICW+7
    Function Call: WRITE
    • Prompt: ?50," ",$E($P($G(^RC(341.1,+$P(DATA,"^",4),0)),"^"),1,18)
    • Line Location: DICW+9
    Function Call: WRITE
    • Prompt: ?70," ",$S($P(DATA,"^",14):"OPEN",1:"CLOSED")
    • Line Location: DICW+11
    Function Call: WRITE
    • Prompt: !,RCM3
    • Line Location: LBT+12
    Function Call: WRITE
    • Prompt: !
    • Line Location: TYP+26
    Function Call: WRITE
    • Prompt: !,"Existing EFT: "_$$GET1^DIQ(344.31,OLDEFT_",",.01,"E")_" "_RCARR(344.31,OLDEFT_",",.02)
    • Line Location: ASK17+9
    Function Call: WRITE
    • Prompt: " "_RCARR(344.31,OLDEFT_",",.04)_" "_RCARR(344.31,OLDEFT_",",.07)
    • Line Location: ASK17+10
    Function Call: WRITE
    • Prompt: !
    • Line Location: ASK17+11
    Function Call: WRITE
    • Prompt: !,*7,"Must have an EFT for an EDI Lockbox payment type"
    • Line Location: G1+3
    Function Call: WRITE
    • Prompt: !," "_RCMSG
    • Line Location: EFTUPD+11
    Function Call: WRITE
    • Prompt: !,G,!,@G
    • Line Location: DIC19+1
    Routine Call
    • DIC
    • Line Location:
      • SELRECT+28
    Routine Call
    • DIE
    • Line Location:
      • SELRECT+36
      • EDITREC+14
      • EDITREC+18
      • EDITREC+23
      • EDITREC+31
      • EDITREC+40
      • LASTEDIT+4
      • MARKPROC+6
      • EFTUPD+6
    Routine Call
    • DIR
    • Line Location:
      • TYP+26
      • ASK17+18
      • PAUSE+4

    FileMan Files Accessed Via FileMan Db Call

    FileNo Call Tags
    ^RC(341.1 - [#341.1] GET1^DIQ
    ^RCY(344 - [#344] Classic Fileman Calls
    ^RCY(344.31 - [#344.31] Classic Fileman Calls,  GET1^DIQ,  GETS^DIQ

    Global Variables Directly Accessed

    Name Line Occurrences  (* Changed,  ! Killed)
    ^PRCA(433 - [#433] BLDRCPT+21
    ^RC(341.1 - [#341.1] BLDRCPT+9, DICW+9
    ^RCY(344 - [#344] ADDRECT+8, BLDRCPT+20, BLDRCPT+25, BLDRCPT+37, NEXT+3, NEXT+7, NEXT+20, SELRECT+32, SELRECT+36, DICW+2
    , EDITREC+6, EDITREC+12, EDITREC+18, EDITREC+19, EDITREC+22, EDITREC+29, EDITREC+38, LBT+5, LBT+11, TYP+12
    , TYP+13*, TYP+18, TYP+21, TYP+27*, TYPQ+4, FMSSTAT+3, FMSSTAT+5, FMSSTAT+10, ASK17+4
    ^RCY(344.1 - [#344.1] SELRECT+14, FMSSTAT+5
    ^RCY(344.3 - [#344.3] SELRECT+11
    ^RCY(344.31 - [#344.31] TYPQ+4
    ^RCY(344.49 - [#344.49] LBT+9
    ^VA(200 - [#200] DICW+4

    Label References

    Name Line Occurrences
    $$ASK17 TYPQ+5
    $$BLDRCPT ADDRECT+11
    $$EFTKEY EDITREC+4
    $$NEXT BLDRCPT+18
    EFTUPD EDITREC+24, EDITREC+32, EDITREC+41, EDITREC+42
    G1 G1+2
    LASTEDIT EDITREC+46
    PAUSE EDITREC+25, EDITREC+33, EDITREC+43
    TYPQ TYP+6, TYP+10

    Naked Globals

    Name Field # of Occurrence
    ^(0 EDITREC+18, TYPQ+4

    Local Variables

    Legend:

    >> Not killed explicitly
    * Changed
    ! Killed
    ~ Newed

    Name Field # of Occurrence
    % BLDRCPT+28~, SELRECT+5~
    %DT BLDRCPT+28~, LASTEDIT+1~, MARKPROC+2~
    %Y SELRECT+5~
    ADDNEW SELRECT~, SELRECT+19
    C SELRECT+5~
    D EDITREC+2~, LASTEDIT+1~, MARKPROC+2~
    D0 BLDRCPT+28~, SELRECT+5~, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~
    DA ADDRECT+5~, ADDRECT+8*, ADDRECT+9, BLDRCPT+28~, SELRECT+5~, SELRECT+34*, SELRECT+36*, EDITREC~, EDITREC+3, EDITREC+12
    , EDITREC+23!*, EDITREC+30~, EDITREC+31*, EDITREC+39~, EDITREC+40*, LBT+5, LBT+9, LBT+11, TYP+12, TYP+13
    , TYP+18, TYP+21, TYP+27, TYPQ+4, TYPQ+5, LASTEDIT~, MARKPROC~, ASK17~, ASK17+4, EFTUPD~
    , EFTUPD+6, EFTUPD+7, EFTUPD+9
    DATA ADDRECT+5~, ADDRECT+8*, DICW+1~, DICW+2*, DICW+4, DICW+6*, DICW+7, DICW+9, DICW+11
    DD BLDRCPT+28~
    DG SELRECT+5~
    DI BLDRCPT+28~, SELRECT+5~, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~
    DIC BLDRCPT+28~, BLDRCPT+29*, SELRECT+5~, SELRECT+6*, EDITREC+2~, EDITREC+3*, LASTEDIT+1~, LASTEDIT+2*, MARKPROC+2~, MARKPROC+3*
    DIC("A" SELRECT+6*, SELRECT+14*, SELRECT+20*
    DIC("DR" BLDRCPT+33*, BLDRCPT+34*, SELRECT+22*, SELRECT+25*, SELRECT+26*, SELRECT+27*
    DIC("S" SELRECT+13*, LOOKUP+4*, LOOKUP+6*, LOOKUP+7!
    DIC("W" SELRECT+7*
    DIC(0 BLDRCPT+29*, SELRECT+6*, SELRECT+21*
    DIE BLDRCPT+28~, SELRECT+5~, SELRECT+36*, EDITREC+2~, EDITREC+3*, EDITREC+18*, EDITREC+23*, EDITREC+30~, EDITREC+31*, EDITREC+39~
    , EDITREC+40*, LASTEDIT+1~, LASTEDIT+2*, MARKPROC+2~, MARKPROC+3*, EFTUPD+4~, EFTUPD+5*
    DIGIT1 NEXT+5~, NEXT+8*, NEXT+14*, NEXT+15*, NEXT+17*, NEXT+20, NEXT+23
    DIGIT2 NEXT+5~, NEXT+8*, NEXT+10*, NEXT+12*, NEXT+14*, NEXT+17*, NEXT+20, NEXT+23
    DIK SELRECT+5~, SELRECT+34*
    >> DILOCKTM BLDRCPT+25
    DIR TYP+4~, TYP+24!, ASK17+3~, ASK17+7~, EFTUPD+4~, PAUSE+3~
    DIR("?" ASK17+14*, ASK17+15*, ASK17+16*, ASK17+17*
    DIR("A" TYP+25*, ASK17+13*, PAUSE+4*
    DIR("B" TYP+25*, ASK17+12*
    DIR(0 TYP+24*, ASK17+12*, PAUSE+4*
    DLAYGO BLDRCPT+28~, BLDRCPT+29*, SELRECT+5~, SELRECT+21*
    DO BLDRCPT+28~
    DQ BLDRCPT+28~, SELRECT+5~, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~
    DR BLDRCPT+28~, SELRECT+5~, SELRECT+36*, EDITREC~, EDITREC+5~, EDITREC+6*, EDITREC+8, EDITREC+9, EDITREC+10*, EDITREC+18*
    , EDITREC+23!*, EDITREC+30~, EDITREC+31*, EDITREC+39~, EDITREC+40*, LASTEDIT+1~, LASTEDIT+3*, MARKPROC+2~, MARKPROC+4*, MARKPROC+5*
    , EFTUPD+4~, EFTUPD+6*
    DR(1 EDITREC+10*
    DTOUT SELRECT+5~, SELRECT+30, ASK17+7~, ASK17+19
    DUOUT SELRECT+5~, SELRECT+30, ASK17+7~, ASK17+19
    DUZ BLDRCPT+33, SELRECT+22, LASTEDIT+3, MARKPROC+4, EFTKEY+4
    EFTKEY EDITREC+2~, EDITREC+4*, TYP+5, TYP+18, TYP+21, TYPQ+4
    FDA G17+1~
    FMSDOCNO MARKPROC~, MARKPROC+5, FMSSTAT+1~, FMSSTAT+3*, FMSSTAT+5*, FMSSTAT+6, FMSSTAT+10, FMSSTAT+13*, FMSSTAT+15
    >> G DIC19+1*
    GOTONE BLDRCPT+4~, BLDRCPT+7*, BLDRCPT+16, BLDRCPT+22*
    LAST NEXT+5~, NEXT+7*, NEXT+8
    MATCH EFTUPD~, EFTUPD+6
    MSG EFTKEY+3~, EFTKEY+4
    MSG(0 EFTKEY+5
    OLDEFT ASK17+3~, ASK17+4*, ASK17+6, ASK17+8, ASK17+9, ASK17+10
    PAYTYPDA ADDRECT~, ADDRECT+3, ADDRECT+8, ADDRECT+11, BLDRCPT~, BLDRCPT+9, BLDRCPT+34
    PRELOCK FMSSTAT+1~, FMSSTAT+5*, FMSSTAT+15
    QUIT ASK17+3~, ASK17+5*, ASK17+6, ASK17+19*
    RC1 SELRECT+5~, SELRECT+18*
    RC2 SELRECT+5~, SELRECT+18*
    RCARR ASK17+3~
    RCARR( ASK17+9, ASK17+10
    RCBPYMNT EDITREC+2~, EDITREC+12*
    RCBPYMNT(0 EDITREC+22, EDITREC+29, EDITREC+32, EDITREC+38, EDITREC+41
    RCCHANGE TYP+4~, TYP+9*, TYP+10
    RCDA EDITREC+2~, EDITREC+3*, EDITREC+6, EDITREC+9, EDITREC+18, EDITREC+19, EDITREC+22, EDITREC+23, EDITREC+29, EDITREC+31
    , EDITREC+38, EDITREC+40, EDITREC+46
    RCDE SELRECT+5~, SELRECT+11*, SELRECT+22, SELRECT+26
    RCDEPTDA ADDRECT~, ADDRECT+3, ADDRECT+8, ADDRECT+11, BLDRCPT~, BLDRCPT+10*, BLDRCPT+34, SELRECT~, SELRECT+11, SELRECT+12
    , SELRECT+14, SELRECT+16, SELRECT+26
    RCDPFLAG ADDRECT+5~, ADDRECT+8*, ADDRECT+9
    RCDR1 EDITREC+2~, EDITREC+9, EDITREC+10
    RCDR2 EDITREC+2~, EDITREC+9, EDITREC+10
    RCDR3 EDITREC+2~, EDITREC+9, EDITREC+10
    RCDUZ BLDRCPT~, BLDRCPT+33
    RCEFTSWP TYP+4~, TYP+5*, TYP+6
    RCLB SELRECT+5~
    >> RCM3 LBT+12
    RCMSG EFTUPD+4~, EFTUPD+9*, EFTUPD+10*, EFTUPD+11
    >> RCN4 TYP+5, TYP+6, TYP+9, TYP+12, TYP+21, TYP+23, TYP+25, TYP+28, TYP+30
    >> RCNE EDITREC+22, EDITREC+23, EDITREC+24, EDITREC+38, EDITREC+40, EDITREC+42, TYPQ+5*
    >> RCNO TYPQ+5*
    >> RCO4 TYP+5, TYP+6, TYP+9, TYP+12, TYP+13, TYP+15, TYP+18, TYP+23, TYP+27
    >> RCP TYP+6, TYP+12, TYP+18, TYP+21, TYP+27, TYP+28, TYP+30, TYPQ+4, TYPQ+5
    RCPROMPT G17+1~, G17+2*, G1
    RCRECTDA FMSSTAT~, FMSSTAT+3, FMSSTAT+5, FMSSTAT+10
    RCREFLUP SELRECT+5~, SELRECT+16*, LOOKUP+2
    RCREQ SELRECT+5~, SELRECT+31
    RCSCREEN G17+1~, G17+3*, G1
    RCY SELRECT+5~, SELRECT+29*, SELRECT+30*, SELRECT+31, SELRECT+32, SELRECT+34, SELRECT+35*, SELRECT+36, SELRECT+37
    RECEIPT ADDRECT+5~, BLDRCPT+4~, BLDRCPT+16, BLDRCPT+18*, BLDRCPT+19, BLDRCPT+20, BLDRCPT+21, BLDRCPT+25, BLDRCPT+35, BLDRCPT+37
    , NEXT~, NEXT+3, NEXT+7, NEXT+20, NEXT+21*, NEXT+23
    STATUS FMSSTAT+1~, FMSSTAT+6*, FMSSTAT+7*, FMSSTAT+10*, FMSSTAT+15
    TRANDATE ADDRECT~, ADDRECT+8, ADDRECT+11, BLDRCPT~, BLDRCPT+18, BLDRCPT+34
    TYPE ADDRECT+5~, BLDRCPT+4~, BLDRCPT+9*, BLDRCPT+10*, BLDRCPT+18
    U SELRECT+31, SELRECT+32, SELRECT+36, EDITREC+6, EDITREC+18, EDITREC+22, EDITREC+29, EDITREC+32, EDITREC+38, EDITREC+41
    , LBT+5, LBT+9, LBT+11, TYP+18, TYPQ+4, ASK17+4
    X BLDRCPT+28~, BLDRCPT+35*, SELRECT+5~, LOOKUP+4*, LOOKUP+6*, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~, ASK17+3~, ASK17+7~
    , EFTUPD+4~, PAUSE+3~
    Y BLDRCPT+28~, BLDRCPT+38, SELRECT+5~, SELRECT+29, DICW+2, EDITREC+2~, LBT~, LBT+9*, LBT+11*, TYP~
    , TYP+6*, TYP+10, TYP+12*, TYP+18*, TYP+21*, TYP+27*, TYP+28*, TYP+30*, TYPQ+2, TYPQ+4*
    TYPQ+5*, TYPQ+7*, LASTEDIT+1~, MARKPROC+2~, ASK17+3~, ASK17+7~, ASK17+19, G17+1~, G1*, G1+1
    G1+2, G1+5, EFTUPD+4~, EFTUPD+7*, EFTUPD+8, EFTUPD+9, PAUSE+3~
    Z LBT+3~, LBT+5*, LBT+11
    Z0 LBT+3~, LBT+5*, LBT+9
    Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All