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

ACRFRRP2.m

Go to the documentation of this file.
  1. ACRFRRP2 ;IHS/OIRM/DSD/AEF - DISPLAY RECEIVING REPORT REMARKS [ 11/01/2001 9:44 AM ]
  1. ;;2.1;ADMIN RESOURCE MGT SYSTEM;;NOV 05, 2001
  1. ;
  1. ;
  1. ;This routine displays the receiving report remarks when
  1. ;printing receiving reports.
  1. ;
  1. REM(ACRDOCDA,ACRRRDA) ;EP
  1. ;----- DISPLAY RECEIVING REPORT REMARKS
  1. ;
  1. ;If the Receiving Report Remarks field #170 in the FMS Document
  1. ;file contains data, then this data will be displayed. This is
  1. ;the old remarks field. If the Receiving Report Remarks field
  1. ;in the FMS Receiving Report file contains data, then this data
  1. ;will be displayed. This is the new remarks field. Both fields
  1. ;are evaluated in case old receiving reports that were created
  1. ;before the new field was placed in the FMS Receiving Reports
  1. ;file need to be printed. Called by print template [ACR
  1. ;RECEIVING REPORT]
  1. ;
  1. ; INPUT:
  1. ; ACRDOCDA = DOCUMENT NUMBER IEN FROM FMS DOCUMENT FILE
  1. ; ACRRRDA = RECEIVING REPORT IEN FROM FMS RECEIVING REPORT
  1. ; FILE
  1. ;
  1. I '$D(^ACRRR(+ACRRRDA,13)) D Q
  1. . I $D(^ACRDOC(+ACRDOCDA,17)) D DOC(+ACRDOCDA)
  1. I $D(^ACRRR(+ACRRRDA,13)) D RR(+ACRRRDA)
  1. Q
  1. DOC(D0) ;----- PRINT REMARKS FROM FMS DOCUMENT FILE
  1. ;
  1. N D1,DIWL,DIWR,X
  1. S D1=0
  1. F S D1=$O(^ACRDOC(D0,17,D1)) Q:'D1 D
  1. . S X=^ACRDOC(D0,17,D1,0)
  1. . S DIWL=10
  1. . S DIWR=75
  1. . D ^DIWP
  1. D ^DIWW
  1. Q
  1. RR(D0) ;----- PRINT REMARKS FROM FMS RECEIVING REPORT FILE
  1. ;
  1. N D1,DIWL,DIWR,X
  1. S D1=0
  1. F S D1=$O(^ACRRR(D0,13,D1)) Q:'D1 D
  1. . S X=^ACRRR(D0,13,D1,0)
  1. . S DIWL=10
  1. . S DIWR=75
  1. . D ^DIWP
  1. D ^DIWW
  1. Q