Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: BARDL4FX

BARDL4FX.m

Go to the documentation of this file.
BARDL4FX ; IHS/SD/LSL - DEBT LETER FIX
 ;;1.8;IHS ACCOUNTS RECEIVABLE;**23**;OCT 26, 2005
 ;P.OTT New routine 5-SEP-2012 for Debt Letter Management
 ;AUG 2013 P.OTTIS FIXED DL4
 ;==================================================
 ;"DATA",90052.03,LETTER#,1,LINE#,0)= If you have any questions, you may contact (Collection clerk) at BARPH.
 Q
FIXDL4 D FIXDL(1)
 Q
FIXDL(BARMODE) ;BARMODE=2 SILENT FIX: CALLED FROM BUILD INSTALLATION PROCESS
 I BARMODE=1 W !,"Fixing Debt letter text. Replacing '(Collection clerk)' with BARSTF."
 N BARDLNUM,BARDLLIN,BARDLTXT,BARDLDEL,BARFIX
 S BARFIX=0
 S BARDLDEL="(Collection clerk)"
 S BARDLNUM=0 F  S BARDLNUM=$O(^BAR(90052.03,BARDLNUM)) Q:+BARDLNUM=0  D
 . S BARDLLIN=0 F  S BARDLLIN=$O(^BAR(90052.03,BARDLNUM,1,BARDLLIN)) Q:+BARDLLIN=0  D
 . . S BARDLTXT=$G(^BAR(90052.03,BARDLNUM,1,BARDLLIN,0))
 . . I BARDLTXT["If you have any questions, you may contact (Collection clerk) at BARPH" D  Q
 . . . S BARDLTXT=$P(BARDLTXT,BARDLDEL,1)_"BARSTF"_$P(BARDLTXT,BARDLDEL,2)
 . . . S ^BAR(90052.03,BARDLNUM,1,BARDLLIN,0)=BARDLTXT,BARFIX=BARFIX+1
 I BARMODE=1 W "  ",BARFIX," ENTRIES FIXED."
 Q