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: PRCARPU

Package: Accounts Receivable

Routine: PRCARPU


Information

PRCARPU ;ALB/DRF-CREATE MULTIPLE ACCOUNT REPAYMENT DATE SCHEDULE FUNCTIONS;08/09/2016 4:40 PM

Source Information

Source file <PRCARPU.m>

Entry Points

Name Comments DBIA/ICR reference
DEBTOR() ;Look up debtor by name or bill #
ACCOUNTS(DEBTOR,ARRALL,ARRPLN,ARRNON,ACT) ;Find all active accounts for a debtor
; DEBTOR - Pointer to #340
; ARRALL - Name of array (passed by reference) that holds all the accounts for this debtor
; Ordered by date in the format ARRAY(1,xxxxxxx)="",ARRAY(2,xxxxxx)=""...
; ARRPLN - Name of array (passed by reference) that holds the accounts for this debtor
; that are part of a current payment plan
; Ordered by date in the format ARRAY(1,xxxxxxx)="",ARRAY(2,xxxxxx)=""...
; Check for ARRPLN>0 to see if there is an existing plan for this debtor
; ARRNON - Name of array (passed by reference) that holds the accounts for this debtor
; that are NOT part of a current payment plan
; Ordered by date in the format ARRAY(1,xxxxxxx)="",ARRAY(2,xxxxxx)=""...
; ACT - Variable that tracks the number of active accounts for the debtor. ARRALL displays
; Cross-Serviced accounts, but they are not active for the purposes of repayment plans
DISPLAY(ARR,NUM,QUIT) ;Display accounts in ARR
; ARR - An array of bills
; NUM - Display selection numbers in left column (defaults to no (0))
; QUIT - User requests exit = 1, default = 0
MDY(DATE,DEL) ;Return date format of mm-dd-yy
; DATE - Date in FileMan format
; DEL - Delimiter used to separate month, day, year
SELECT(ARR) ;Select items up to number ARR
; ARR - The upper limit that can be chosen
; This function will eliminate duplicates and return choices in numerical error
; regardless of input order.
; Returns: comma delimited list of pointers to file #430 in ascending date order
RPDIS(DEBTOR,PLN) ;Display Repayment Plan
; DEBTOR - Pointer to #340
; PLN - An array of bills
RPDEL(PLN,TRAN) ;Delete repayment plan
; PLN - An array of bills
DBTCOM(DEBTOR,TEXT) ;Add DEBTOR comments
; DEBTOR - Pointer to #340
; TEXT - Comment text
PLNDTL(ARR) ;Gather existing plan details
; ARR - An array of bills
SUMM(ARR,LIST,ADD) ;List bills from ARR to plan, new or existing
; ARR - An array of bills
; LIST - A comma delimited list of bills to be added
; ADD - An array of bills
CORRECT() ;Are you sure this is correct?
; Return: 1 for Yes
; 0 for No
INQPLAN(DUE,PLNDT) ;Prompt for plan details
; DUE - Total amount due for the current plan
; Returns: 1 if completed
DUEARR(ARR) ;Total outstanding balance for array ARR returned in PLNTDUE
; ARR - An array of bills
ADDPLAN(ADD,PRCAMT,PRCADAY,PRCAFPD,PRCADT,TRAN) ;Record plan on bills
; ADD - An array of bills to add to the repayment plan
; PRCAMT - Monthly amount the debtor will pay
; PRCADAY - Day of the month payment will be made
; PRCAFPD - Date of first payment
; PRCADT - Date plan is established
; TRAN - Flag to file a transaction for new plan
ADDTRAN(ADD)
IXDIK
TRAN
TRANDEL
PAYMENTS(AMT,FP,PAY) ;How many payments?
; AMT - TOTAL DUE ON BILL
; FP - FIRST PAYMENT AMOUNT
; PAY - AMOUNT DEBTOR AGREES TO MONTHLY
INCDATE(DATE,PRCADAY) ;Increment payment date
; DATE - Today's date in FileMan format
; PRCADAY - Day of the month payment is due
PAYDISP(DEBTOR,PLNDT,QUIT) ;Display all payments for Debtor since Repayment Plan effective date
; DEBTOR - Pointer to #340
; PLNDT - Effective date of repayment plan
; QUIT - User requests exit = 1, default = 0
PAYDISPP ;Display all payments for a patient debtor
PAYDISPO ;Display all payments for a vendor, employee, ex-employee or other debtor
MERGE(PLN,ADD) ;Add ADD to PLN
; PLN - An array of bills
; ADD - An array of bills
MULTI(PLN) ;Multiple Repayment Plans?
; PLN - An array of bills
PAUSE
CMTMULT(DEBTOR) ;Enter multiple line comment
; DEBTOR - Pointer to #340
CMTENTR(DEBTOR) ;Enter comments question
; DEBTOR - Pointer to #340
ADJ(DEBT,TYPE) ;Adjust an account for DEBT (340 entry)
EDT
Q2
OK(EVN)
DSMPLNS(DEBTOR,PLN) ;Display multiple plans
; DEBTOR - Pointer to #340
; PLN - An array of bills
SCRNCHK ;Check to see if we need to pause the screen

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: DEBTOR+2
Function Call: WRITE
  • Prompt: "Enter/Edit Repayment Plan",!!
  • Line Location: DEBTOR+3
Function Call: WRITE
  • Prompt: !
  • Line Location: DEBTOR+12
Function Call: WRITE
  • Prompt: !
  • Line Location: DISPLAY+15
Function Call: WRITE
  • Prompt: $S(NUM:I,1:""),?5,BILL,$S(PLN:"**",CS:"#",1:""),?24,PRCATN,?50,$$MDY(DOS,"-"),?61,STATN,?70,"$",$J(AMT,8,2),!
  • Line Location: DISPLAY+16
Function Call: WRITE
  • Prompt: !
  • Line Location: DISPLAY+18
Function Call: WRITE
  • Prompt: "** Bill is currently in Repayment Plan",!
  • Line Location: DISPLAY+19
Function Call: WRITE
  • Prompt: "# Bill is currently in Cross Servicing",!
  • Line Location: DISPLAY+20
Function Call: WRITE
  • Prompt: " Select bills using the following formats:(A)ll or (N)one or 1,2,3 and/or 1-3",!
  • Line Location: SELECT+8
Function Call: WRITE
  • Prompt: " "_ERR,!
  • Line Location: SELECT+30
Function Call: WRITE
  • Prompt: !,I_". "_$P(ARR(I,PRCABN),U,1)_" is in Cross Servicing"
  • Line Location: SELECT+33
Function Call: WRITE
  • Prompt: !,I_". "_$P(ARR(I,PRCABN),U,1)_" is in a Payment Plan"
  • Line Location: SELECT+34
Function Call: WRITE
  • Prompt: !,"Summary of Current Repayment Plan for AR Debtor: ",$P(DEBTOR,U,2),!
  • Line Location: RPDIS+5
Function Call: WRITE
  • Prompt: "------------------------------------------------------------------",!
  • Line Location: RPDIS+6
Function Call: WRITE
  • Prompt: "Monthly Repayment Amount:",?32,"$",$J(PLNAMT,0,2)
  • Line Location: RPDIS+7
Function Call: WRITE
  • Prompt: ?45,"Day of Month Payment Due:",?72,PLNDAY,!
  • Line Location: RPDIS+8
Function Call: WRITE
  • Prompt: "Number of Payments Remaining:",?32,PLNRMN
  • Line Location: RPDIS+9
Function Call: WRITE
  • Prompt: ?45,"Due Date of First Payment:",?72,PLNFRST,!
  • Line Location: RPDIS+10
Function Call: WRITE
  • Prompt: "Current Total Due:",?32,"$",$J(PLNTDUE,0,2)
  • Line Location: RPDIS+11
Function Call: WRITE
  • Prompt: ?45,"Last Payment Due:",?72,PLNLST,!
  • Line Location: RPDIS+12
Function Call: WRITE
  • Prompt: "Plan Date:",?32,$$MDY(PLNDT)
  • Line Location: RPDIS+13
Function Call: WRITE
  • Prompt: ?45,"Next Payment Due:",?72,$S(PLNNXT="00/00/00":"DEFAULT",1:PLNNXT),!!
  • Line Location: RPDIS+14
Function Call: WRITE
  • Prompt: "Bills in Repayment Plan:",!
  • Line Location: RPDIS+15
Function Call: WRITE
  • Prompt: !!,"Number of Payments will be ",NPAY,!
  • Line Location: INQPLAN+15
Function Call: WRITE
  • Prompt: "The number of payments cannot exceed 60. Please re-enter the payment amount.",!
  • Line Location: INQPLAN+17
Function Call: WRITE
  • Prompt: "The number of payments exceeds 36 payments. Ensure you have Supervisor Approval",!
  • Line Location: INQPLAN+19
Function Call: WRITE
  • Prompt: "and enter Supervisor approval in the Expanded Comment.",!
  • Line Location: INQPLAN+20
Function Call: WRITE
  • Prompt: " Enter the day of the month (1-28) that the payment will be due.",!
  • Line Location: INQPLAN+39
Function Call: WRITE
  • Prompt: "Payments Since Plan Date",!
  • Line Location: PAYDISP+6
Function Call: WRITE
  • Prompt: "None",!
  • Line Location: PAYDISP+7
Function Call: WRITE
  • Prompt: "None",!
  • Line Location: PAYDISP+8
Function Call: WRITE
  • Prompt: "None",!
  • Line Location: PAYDISP+9
Function Call: WRITE
  • Prompt: "None",!!
  • Line Location: PAYDISPP+3
Function Call: WRITE
  • Prompt: $$MDY($P(DAT,".",1),"/")," ",$$GET1^DIQ(433,TN,.03)," ",$J($P(TXD1,U,5),10,2),!
  • Line Location: PAYDISPP+9
Function Call: WRITE
  • Prompt: !
  • Line Location: PAYDISPP+10
Function Call: WRITE
  • Prompt: "None",!
  • Line Location: PAYDISPP+12
Function Call: WRITE
  • Prompt: $P(LN,U,1)," ",$P(LN,U,2)," ",$P(LN,U,3),!
  • Line Location: PAYDISPO+15
Function Call: WRITE
  • Prompt: !
  • Line Location: PAYDISPO+16
Function Call: WRITE
  • Prompt: "None",!
  • Line Location: PAYDISPO+17
Function Call: WRITE
  • Prompt: !!
  • Line Location: CMTENTR+7
Function Call: WRITE
  • Prompt: !,"Error (",ERR,") trying to open a new event",!
  • Line Location: ADJ+5
Function Call: WRITE
  • Prompt: !,"Reference number assigned: ",$P(^RC(341,EVN,0),"^"),!
  • Line Location: ADJ+6
Function Call: WRITE
  • Prompt: " ... Deleted",!
  • Line Location: EDT+1
Function Call: WRITE
  • Prompt: !,"Error ("_ERR_")",!,"... trying to close this event"
  • Line Location: EDT+3
Function Call: WRITE
  • Prompt: !
  • Line Location: OK+2
Function Call: WRITE
  • Prompt: !
  • Line Location: SCRNCHK+1

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^RCD(340 - [#340] Classic Fileman Calls
^RC(341 - [#341] Classic Fileman Calls
^PRCA(430 - [#430] Classic Fileman Calls
^PRCA(433 - [#433] Classic Fileman Calls,  GET1^DIQ
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call