RCDPUREC ;WISC/RFJ - receipt utilities ;Jun 06, 2014@19:11:19
Source file <RCDPUREC.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Name | Comments | DBIA/ICR reference |
---|---|---|
ADDRECT(TRANDATE,RCDEPTDA,PAYTYPDA) | ;EP Add a receipt
; Input: TRANDATE - Deposit Date in fileman format ; RCDEPTDA - IEN in AR DEPOSIT file (#344.1) ; PAYTYPDA - AR Event Type IEN (#341.1) ; Returns: 0 - No receipt added or receipt IEN otherwise |
|
BLDRCPT(TRANDATE,RCDEPTDA,PAYTYPDA,RCDUZ) | ;EP Build a receipt with/without deposit
; LAYGO new entry to AR BATCH PAYMENT file (#344) ; Input: TRANDATE - Deposit Date in fileman format ; RCDEPTDA - IEN in AR DEPOSIT file (#344.1) ; PAYTYPDA - AR Event Type IEN (#341.1) ; RCDUZ - User IEN (#200) ; 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 |
|
EDITREC2(RCDA,OLDET,NEWEFT) | ;EP from RCDPRPL3@EDITREC
; Edit Receipt action for Recipts with a payment type of OGC-CHK |
|
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
|
|
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 | ;
|
|
ISCHMPVA(RCTYP) | ; Returns whether the given receipt type is CHAMPVA or not
|
Name | Field # of Occurrence |
---|---|
^DIC | SELRECT+33 |
FILE^DICN | BLDRCPT+43 |
^DIE | SELRECT+41, EDITREC+14, EDITREC+18, EDITREC+23, EDITREC+31, EDITREC+40, EDITREC2+4, LASTEDIT+4, MARKPROC+6, EFTUPD+6 |
^DIK | SELRECT+39 |
$$GET1^DIQ | TYP+17, TYP+24, TYP+34, ASK17+9, EFTUPD+7, EFTUPD+9 |
GETS^DIQ | ASK17+8 |
^DIR | TYP+35, ASK17+18, PAUSE+4 |
$$STATUS^GECSSGET | FMSSTAT+6 |
$$EDILBEV^RCDPEU | EDITREC+18 |
$$LBEVENT^RCDPEU | SELRECT+24, LBT+5 |
$$ASKEFT^RCDPEU2 | G1 |
EDIT4^RCDPURE1 | EDITREC+9 |
OWNSKEY^XUSRB | EFTKEY+4 |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
Routine Call |
|
Routine 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 |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^PRCA(433 - [#433] | BLDRCPT+28 |
^RC(341.1 - [#341.1] | BLDRCPT+14, DICW+9, ISCHMPVA+1 |
^RCY(344 - [#344] | BLDRCPT+27, BLDRCPT+32, BLDRCPT+44, NEXT+3, NEXT+7, NEXT+20, SELRECT+37, SELRECT+41, DICW+2, EDITREC+6 , EDITREC+12, EDITREC+18, EDITREC+19, EDITREC+22, EDITREC+29, EDITREC+38, LBT+5, LBT+11, TYP+14, TYP+15 , TYP+16*, TYP+21, TYP+22*, TYP+27, TYP+30, TYP+36*, TYPQ+4, FMSSTAT+3, FMSSTAT+5, FMSSTAT+10 , ASK17+4, G17+6, G17+8 |
^RCY(344.1 - [#344.1] | SELRECT+16, FMSSTAT+5 |
^RCY(344.3 - [#344.3] | SELRECT+13 |
^RCY(344.31 - [#344.31] | TYPQ+4 |
^RCY(344.4 - [#344.4] | TYP+14 |
^RCY(344.49 - [#344.49] | LBT+9 |
^VA(200 - [#200] | DICW+4 |
Name | Field # of Occurrence |
---|---|
^(0 | EDITREC+18, TYPQ+4 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | BLDRCPT+35~, SELRECT+5~ |
%DT | BLDRCPT+35~, LASTEDIT+1~, MARKPROC+2~ |
%Y | SELRECT+5~ |
ADDNEW | SELRECT~, SELRECT+21 |
C | SELRECT+5~ |
D | EDITREC+2~, LASTEDIT+1~, MARKPROC+2~ |
D0 | BLDRCPT+35~, SELRECT+5~, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~ |
DA | ADDRECT+9~, BLDRCPT+35~, SELRECT+5~, SELRECT+39*, SELRECT+41*, EDITREC~, EDITREC+3, EDITREC+12, EDITREC+23!*, EDITREC+30~ , EDITREC+31*, EDITREC+39~, EDITREC+40*, EDITREC2+2~, EDITREC2+3*, LBT+5, LBT+9, LBT+11, TYP+14, TYP+15 , TYP+16, TYP+21, TYP+22, TYP+27, TYP+30, TYP+36, TYPQ+4, TYPQ+5, LASTEDIT~, MARKPROC~ , ASK17~, ASK17+4, G17+6, G17+8, EFTUPD~, EFTUPD+6, EFTUPD+7, EFTUPD+9 |
DATA | ADDRECT+9~, DICW+1~, DICW+2*, DICW+4, DICW+6*, DICW+7, DICW+9, DICW+11 |
DD | BLDRCPT+35~ |
DG | SELRECT+5~ |
DI | BLDRCPT+35~, SELRECT+5~, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~ |
DIC | BLDRCPT+35~, BLDRCPT+36*, SELRECT+5~, SELRECT+8*, EDITREC+2~, EDITREC+3*, LASTEDIT+1~, LASTEDIT+2*, MARKPROC+2~, MARKPROC+3* |
DIC("A" | SELRECT+8*, SELRECT+16*, SELRECT+22* |
DIC("DR" | BLDRCPT+40*, BLDRCPT+41*, SELRECT+24*, SELRECT+29*, SELRECT+31*, SELRECT+32* |
DIC("S" | SELRECT+15*, LOOKUP+4*, LOOKUP+6*, LOOKUP+7! |
DIC("W" | SELRECT+9* |
DIC(0 | BLDRCPT+36*, SELRECT+8*, SELRECT+23* |
DIE | BLDRCPT+35~, SELRECT+5~, SELRECT+41*, EDITREC+2~, EDITREC+3*, EDITREC+18*, EDITREC+23*, EDITREC+30~, EDITREC+31*, EDITREC+39~ , EDITREC+40*, EDITREC2+2~, EDITREC2+3*, 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+39* |
>> DILOCKTM | BLDRCPT+32 |
DIR | TYP+4~, TYP+33!, ASK17+3~, ASK17+7~, EFTUPD+4~, PAUSE+3~ |
DIR("?" | ASK17+14*, ASK17+15*, ASK17+16*, ASK17+17* |
DIR("A" | TYP+34*, ASK17+13*, PAUSE+4* |
DIR("B" | TYP+34*, ASK17+12* |
DIR(0 | TYP+33*, ASK17+12*, PAUSE+4* |
DLAYGO | BLDRCPT+35~, BLDRCPT+36*, SELRECT+5~, SELRECT+23* |
DO | BLDRCPT+35~ |
DQ | BLDRCPT+35~, SELRECT+5~, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~ |
DR | BLDRCPT+35~, SELRECT+5~, SELRECT+41*, EDITREC~, EDITREC+5~, EDITREC+6*, EDITREC+8, EDITREC+9, EDITREC+10*, EDITREC+18* , EDITREC+23!*, EDITREC+30~, EDITREC+31*, EDITREC+39~, EDITREC+40*, EDITREC2+2~, EDITREC2+3*, LASTEDIT+1~, LASTEDIT+3*, MARKPROC+2~ , MARKPROC+4*, MARKPROC+5*, EFTUPD+4~, EFTUPD+6* |
DR(1 | EDITREC+10* |
DTOUT | SELRECT+5~, SELRECT+35, ASK17+7~, ASK17+19 |
DUOUT | SELRECT+5~, SELRECT+35, ASK17+7~, ASK17+19 |
DUZ | BLDRCPT+40, SELRECT+24, LASTEDIT+3, MARKPROC+4, EFTKEY+4 |
EFTKEY | EDITREC+2~, EDITREC+4*, TYP+6, TYP+27, TYP+30, 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+8~, BLDRCPT+11*, BLDRCPT+22, BLDRCPT+29* |
LAST | NEXT+5~, NEXT+7*, NEXT+8 |
MATCH | EFTUPD~, EFTUPD+6 |
MSG | EFTKEY+3~, EFTKEY+4 |
MSG(0 | EFTKEY+5 |
NEWEFT | EDITREC2~, EDITREC2+3, EDITREC2+6 |
OLDEFT | EDITREC2+5, ASK17+3~, ASK17+4*, ASK17+6, ASK17+8, ASK17+9, ASK17+10 |
OLDET | EDITREC2~ |
PAYTYPDA | ADDRECT~, ADDRECT+7, ADDRECT+17, BLDRCPT~, BLDRCPT+14, BLDRCPT+41 |
PRELOCK | FMSSTAT+1~, FMSSTAT+5*, FMSSTAT+15 |
QUIT | ASK17+3~, ASK17+5*, ASK17+6, ASK17+19* |
RC1 | SELRECT+6~, SELRECT+20* |
RC2 | SELRECT+6~, SELRECT+20* |
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+11*, TYP+12 |
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, EDITREC2~, EDITREC2+3, EDITREC2+7 |
RCDE | SELRECT+6~, SELRECT+13*, SELRECT+24, SELRECT+31 |
RCDEPTDA | ADDRECT~, ADDRECT+7, ADDRECT+17, BLDRCPT~, BLDRCPT+16*, BLDRCPT+41, SELRECT~, SELRECT+13, SELRECT+14, SELRECT+16 , SELRECT+18, SELRECT+31 |
RCDPFLAG | 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+40 |
RCEFTSWP | TYP+4~, TYP+6*, TYP+8 |
RCERA | TYP+4~, TYP+14* |
RCHMP | SELRECT+6~ |
RCLB | SELRECT+6~ |
>> RCM3 | LBT+12 |
RCMSG | EFTUPD+4~, EFTUPD+9*, EFTUPD+10*, EFTUPD+11 |
>> RCN4 | TYP+6, TYP+8, TYP+11, TYP+15, TYP+21, TYP+30, TYP+32, TYP+34, TYP+37, TYP+40 |
RCNE | EDITREC+2~, EDITREC+22, EDITREC+23, EDITREC+24, EDITREC+38, EDITREC+40, EDITREC+42, TYPQ+5* |
>> RCNO | TYPQ+5* |
>> RCO4 | TYP+6, TYP+8, TYP+11, TYP+16, TYP+21, TYP+22, TYP+24, TYP+27, TYP+32, TYP+36 |
>> RCP | TYP+8, TYP+15, TYP+21, TYP+27, TYP+30, TYP+36, TYP+37, TYP+40, TYPQ+4, TYPQ+5 |
RCPAYTYP | SELRECT+6~, SELRECT+7* |
RCPROMPT | G17+1~, G17+2*, G1 |
RCRECTDA | FMSSTAT~, FMSSTAT+3, FMSSTAT+5, FMSSTAT+10 |
RCREFLUP | SELRECT+6~, SELRECT+18*, LOOKUP+2 |
RCREQ | SELRECT+6~, SELRECT+36 |
RCSCREEN | G17+1~, G17+3*, G17+7*, G17+9*, G1 |
RCTRC | TYP+4~, TYP+5*, TYP+14*, TYP+15 |
RCTYP | ISCHMPVA~, ISCHMPVA+1 |
RCY | SELRECT+6~, SELRECT+34*, SELRECT+35*, SELRECT+36, SELRECT+37, SELRECT+39, SELRECT+40*, SELRECT+41, SELRECT+42 |
RECEIPT | ADDRECT+9~, BLDRCPT+8~, BLDRCPT+22, BLDRCPT+25*, BLDRCPT+26, BLDRCPT+27, BLDRCPT+28, BLDRCPT+32, BLDRCPT+42, BLDRCPT+44 , 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+17, BLDRCPT~, BLDRCPT+25, BLDRCPT+41 |
TYPE | ADDRECT+9~, BLDRCPT+8~, BLDRCPT+14*, BLDRCPT+15*, BLDRCPT+16*, BLDRCPT+25 |
U | SELRECT+36, SELRECT+37, SELRECT+41, EDITREC+6, EDITREC+18, EDITREC+22, EDITREC+29, EDITREC+32, EDITREC+38, EDITREC+41 , LBT+5, LBT+9, LBT+11, TYP+14, TYP+16, TYP+27, TYPQ+4, ASK17+4, ISCHMPVA+1 |
X | BLDRCPT+35~, BLDRCPT+42*, SELRECT+6~, LOOKUP+4*, LOOKUP+6*, EDITREC+2~, LASTEDIT+1~, MARKPROC+2~, ASK17+3~, ASK17+7~ , EFTUPD+4~, PAUSE+3~ |
Y | BLDRCPT+35~, BLDRCPT+45, SELRECT+6~, SELRECT+34, DICW+2, EDITREC+2~, LBT~, LBT+9*, LBT+11*, TYP~ , TYP+8*, TYP+12, TYP+15*, TYP+21*, TYP+27*, TYP+30*, TYP+36*, TYP+37*, TYP+40*, 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 |